Avoid subshell for build-jar-repository

This commit is contained in:
Michael Simacek 2017-03-01 15:03:48 +01:00
parent 57f382fdb1
commit a3dcc063b2

View File

@ -3,7 +3,7 @@
Name: maven
Epoch: 1
Version: 3.3.9
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Java project management and project comprehension tool
License: ASL 2.0
URL: http://maven.apache.org/
@ -219,8 +219,8 @@ cp -a $M2_HOME/bin/* %{buildroot}%{_datadir}/%{name}/bin
ln -sf $(build-classpath plexus/classworlds) \
%{buildroot}%{_datadir}/%{name}/boot/plexus-classworlds.jar
(cd %{buildroot}%{_datadir}/%{name}/lib
build-jar-repository -s -p . \
pushd %{buildroot}%{_datadir}/%{name}/lib
build-jar-repository -s -p . \
aether/aether-api \
aether/aether-connector-basic \
aether/aether-impl \
@ -256,8 +256,8 @@ ln -sf $(build-classpath plexus/classworlds) \
httpcomponents/httpcore \
commons-logging \
commons-codec \
objectweb-asm/asm \
)
objectweb-asm/asm
popd
%files lib -f .mfiles
@ -280,6 +280,9 @@ ln -sf $(build-classpath plexus/classworlds) \
%changelog
* Wed Mar 01 2017 Michael Simacek <msimacek@redhat.com> - 1:3.3.9-8
- Avoid subshell for build-jar-repository
* Thu Feb 16 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.3.9-7
- Conditionalize weak dependencies