Remove custom symlink code
This commit is contained in:
parent
d267625818
commit
05285f3409
18
xmvn.spec
18
xmvn.spec
@ -103,23 +103,7 @@ done
|
|||||||
cp -r %{_datadir}/maven/lib/* %{buildroot}%{_datadir}/%{name}/lib/
|
cp -r %{_datadir}/maven/lib/* %{buildroot}%{_datadir}/%{name}/lib/
|
||||||
|
|
||||||
# possibly recreate symlinks that can be automated with xmvn-subst
|
# possibly recreate symlinks that can be automated with xmvn-subst
|
||||||
%{name}-subst %{buildroot}%{_datadir}/%{name}/
|
%{name}-subst -s %{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
for tool in subst resolver bisect installer;do
|
|
||||||
# sisu doesn't contain pom.properties. Manually replace with symlinks
|
|
||||||
pushd %{buildroot}%{_datadir}/%{name}/lib/$tool
|
|
||||||
rm org.eclipse.sisu*jar sisu-guice*jar
|
|
||||||
build-jar-repository . org.eclipse.sisu.inject \
|
|
||||||
org.eclipse.sisu.plexus \
|
|
||||||
guice/google-guice-no_aop
|
|
||||||
popd
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ `find %{buildroot}%{_datadir}/%{name}/lib -type f -name '*.jar' -not -name '*%{name}*' | wc -l` -ne 0 ]];then
|
|
||||||
echo "Some jar files were not symlinked during build. Aborting"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# /usr/bin/xmvn script
|
# /usr/bin/xmvn script
|
||||||
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user