Update to maven 3
- Remove rpm bug workaround
This commit is contained in:
parent
7f3020a044
commit
199a5e273b
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
Name: %{parent}-%{subname}
|
Name: %{parent}-%{subname}
|
||||||
Version: 2.4
|
Version: 2.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Plexus Classworlds Classloader Framework
|
Summary: Plexus Classworlds Classloader Framework
|
||||||
License: ASL 2.0 and Plexus
|
License: ASL 2.0 and Plexus
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -48,7 +48,7 @@ BuildArch: noarch
|
|||||||
BuildRequires: jpackage-utils
|
BuildRequires: jpackage-utils
|
||||||
BuildRequires: apache-commons-logging
|
BuildRequires: apache-commons-logging
|
||||||
BuildRequires: xml-commons-jaxp-1.3-apis
|
BuildRequires: xml-commons-jaxp-1.3-apis
|
||||||
BuildRequires: maven2
|
BuildRequires: maven
|
||||||
BuildRequires: maven-compiler-plugin
|
BuildRequires: maven-compiler-plugin
|
||||||
BuildRequires: maven-install-plugin
|
BuildRequires: maven-install-plugin
|
||||||
BuildRequires: maven-jar-plugin
|
BuildRequires: maven-jar-plugin
|
||||||
@ -64,9 +64,6 @@ BuildRequires: maven-surefire-maven-plugin
|
|||||||
BuildRequires: maven-surefire-provider-junit
|
BuildRequires: maven-surefire-provider-junit
|
||||||
BuildRequires: plexus-utils
|
BuildRequires: plexus-utils
|
||||||
|
|
||||||
Requires(post): jpackage-utils
|
|
||||||
Requires(postun): jpackage-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Classworlds is a framework for container developers
|
Classworlds is a framework for container developers
|
||||||
who require complex manipulation of Java's ClassLoaders.
|
who require complex manipulation of Java's ClassLoaders.
|
||||||
@ -95,52 +92,36 @@ done
|
|||||||
sed -i 's:<groupId>ant</groupId>:<groupId>org.apache.ant</groupId>:' pom.xml
|
sed -i 's:<groupId>ant</groupId>:<groupId>org.apache.ant</groupId>:' pom.xml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
mvn-rpmbuild -e install javadoc:javadoc
|
||||||
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
||||||
mkdir -p $MAVEN_REPO_LOCAL
|
|
||||||
|
|
||||||
mvn-jpp -e \
|
|
||||||
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
||||||
install javadoc:javadoc
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
install -Dpm 644 target/%{name}-%{version}.jar \
|
install -Dpm 644 target/%{name}-%{version}.jar \
|
||||||
$RPM_BUILD_ROOT%{_javadir}/plexus/%{subname}.jar
|
$RPM_BUILD_ROOT%{_javadir}/plexus/%{subname}.jar
|
||||||
%add_to_maven_depmap org.codehaus.plexus %{name} %{version} JPP/%{parent} %{subname}
|
|
||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{parent}-%{subname}.pom
|
install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{parent}-%{subname}.pom
|
||||||
|
%add_maven_depmap JPP.%{parent}-%{subname}.pom plexus/%{subname}.jar
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%pre javadoc
|
|
||||||
# workaround for rpm bug, can be removed in F-17
|
|
||||||
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
||||||
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
|
||||||
|
|
||||||
%post
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_javadir}/%{parent}/*
|
%{_javadir}/%{parent}/*
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/*
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/*
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4-4
|
||||||
|
- Update to maven 3
|
||||||
|
- Remove rpm bug workaround
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user