Build with maven 3.x.
This commit is contained in:
parent
83e2a5ce1c
commit
fcd2adde03
@ -1,6 +1,6 @@
|
|||||||
Name: maven-antrun-plugin
|
Name: maven-antrun-plugin
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Maven AntRun Plugin
|
Summary: Maven AntRun Plugin
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -9,14 +9,13 @@ URL: http://maven.apache.org/plugins/maven-antrun-plugin/
|
|||||||
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
||||||
Patch0: fix-deps.patch
|
Patch0: fix-deps.patch
|
||||||
Patch1: fix-ant-1.8.2.patch
|
Patch1: fix-ant-1.8.2.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
BuildRequires: java-devel >= 1:1.6.0
|
||||||
BuildRequires: plexus-utils
|
BuildRequires: plexus-utils
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: maven2
|
BuildRequires: maven
|
||||||
BuildRequires: maven-install-plugin
|
BuildRequires: maven-install-plugin
|
||||||
BuildRequires: maven-compiler-plugin
|
BuildRequires: maven-compiler-plugin
|
||||||
BuildRequires: maven-plugin-plugin
|
BuildRequires: maven-plugin-plugin
|
||||||
@ -26,7 +25,7 @@ BuildRequires: maven-surefire-provider-junit
|
|||||||
BuildRequires: maven-jar-plugin
|
BuildRequires: maven-jar-plugin
|
||||||
BuildRequires: maven-javadoc-plugin
|
BuildRequires: maven-javadoc-plugin
|
||||||
Requires: ant
|
Requires: ant
|
||||||
Requires: maven2
|
Requires: maven
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
Requires: java
|
Requires: java
|
||||||
Requires(post): jpackage-utils
|
Requires(post): jpackage-utils
|
||||||
@ -53,16 +52,9 @@ API documentation for %{name}.
|
|||||||
%patch1
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
mvn-rpmbuild install javadoc:javadoc
|
||||||
mvn-jpp \
|
|
||||||
-e \
|
|
||||||
-Dmaven2.jpp.mode=true \
|
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
||||||
install javadoc:javadoc
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
# jars
|
# jars
|
||||||
install -d -m 0755 %{buildroot}%{_javadir}
|
install -d -m 0755 %{buildroot}%{_javadir}
|
||||||
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
@ -75,10 +67,8 @@ install -pm 644 pom.xml \
|
|||||||
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
%{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
|
||||||
rm -rf target/site/api*
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -86,23 +76,20 @@ rm -rf target/site/api*
|
|||||||
%postun
|
%postun
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/*
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc LICENSE NOTICE
|
%doc LICENSE NOTICE
|
||||||
%{_javadocdir}/%{name}-%{version}
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 1.6-4
|
||||||
|
- Build with maven 3.x.
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user