%global artifactId plexus-component-factories
Name: plexus-component-factories-pom
Version: 1.0
Release: 0.3.alpha11%{?dist}
Summary: Plexus Component Factories POM
BuildArch: noarch
Group: Development/Libraries
License: ASL 2.0
URL: http://plexus.codehaus.org/
Source0: http://repo1.maven.org/maven2/org/codehaus/plexus/%{artifactId}/%{version}-alpha-11/%{artifactId}-%{version}-alpha-11.pom
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: jpackage-utils
BuildRequires: maven
%description
This package provides Plexus Component Factories parent POM used by different
Plexus packages.
%prep
%setup -cT
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE
%pom_xpath_remove pom:modules
%check
mvn-rpmbuild verify
%install
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
# POM file
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
# depmap
%add_maven_depmap -a "plexus:%{artifactId}" JPP-%{name}.pom
%files
%doc LICENSE
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%changelog
* Thu Dec 13 2012 Michal Srb <msrb@redhat.com> - 1.0-0.3.alpha11
- Fixed artifactId
* Tue Dec 11 2012 Michal Srb <msrb@redhat.com> - 1.0-0.2.alpha11
- Use direct link in Source0
- Improved prep/setup section
- mvn-rpmbuild verify is now in check section
- More specific files section
- add_maven_depmap macro now with -a option
* Mon Dec 10 2012 Michal Srb <msrb@redhat.com> - 1.0-0.1.alpha11
- Initial packaging