Build with xmvn
This commit is contained in:
parent
37b111b141
commit
61da59ef4c
@ -1,6 +1,6 @@
|
||||
Name: plexus-interpolation
|
||||
Version: 1.15
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Plexus Interpolation API
|
||||
|
||||
Group: Development/Libraries
|
||||
@ -12,7 +12,7 @@ BuildArch: noarch
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: junit
|
||||
BuildRequires: maven
|
||||
BuildRequires: xmvn
|
||||
BuildRequires: maven-resources-plugin
|
||||
BuildRequires: maven-compiler-plugin
|
||||
BuildRequires: maven-jar-plugin
|
||||
@ -32,7 +32,6 @@ related projects.
|
||||
%package javadoc
|
||||
Group: Documentation
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: jpackage-utils
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
@ -41,34 +40,20 @@ API documentation for %{name}.
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
|
||||
%build
|
||||
mvn-rpmbuild install javadoc:javadoc
|
||||
%mvn_file : plexus/interpolation
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 0755 %{buildroot}%{_javadir}/plexus
|
||||
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
|
||||
# poms
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml \
|
||||
%{buildroot}%{_mavenpomdir}/JPP.%{name}.pom
|
||||
|
||||
%add_maven_depmap JPP.%{name}.pom plexus/interpolation.jar
|
||||
|
||||
# javadoc
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
|
||||
%files
|
||||
%{_javadir}/plexus/interpolation.jar
|
||||
%{_mavenpomdir}/JPP.%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
|
||||
%changelog
|
||||
* Thu Jan 17 2013 Michal Srb <msrb@redhat.com> - 1.15-4
|
||||
- Build with xmvn
|
||||
|
||||
* Mon Nov 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.15-3
|
||||
- Fix source URL to be stable
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user