mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 18:36:50 +00:00
Don't try to create versioned symlinks multiple times
This commit is contained in:
parent
38a1e8a0dd
commit
b9b6a9b62c
1 changed files with 4 additions and 18 deletions
|
@ -48,6 +48,9 @@ ln -s -t %{buildroot}%{_libdir}/bfd-plugins/ ../LLVMgold.so
|
||||||
# Add version suffix to binaries
|
# Add version suffix to binaries
|
||||||
for f in %{buildroot}/%{install_bindir}/*; do
|
for f in %{buildroot}/%{install_bindir}/*; do
|
||||||
filename=`basename $f`
|
filename=`basename $f`
|
||||||
|
if echo $filename | grep -e '%{maj_ver}'; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -155,16 +158,6 @@ rm -Rf %{buildroot}%{install_datadir}/clang/*.el
|
||||||
# Not sure what to do with man pages for the compat builds
|
# Not sure what to do with man pages for the compat builds
|
||||||
rm -Rf %{buildroot}%{install_prefix}/share/man/
|
rm -Rf %{buildroot}%{install_prefix}/share/man/
|
||||||
|
|
||||||
# Add version suffix to binaries
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
|
||||||
for f in %{buildroot}/%{install_bindir}/*; do
|
|
||||||
filename=`basename $f`
|
|
||||||
if echo $filename | grep -e '%{maj_ver}'; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename-%{maj_ver}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Add clang++-{version} symlink
|
# Add clang++-{version} symlink
|
||||||
ln -s ../../%{install_bindir}/clang++ %{buildroot}%{install_bindir}/clang++-%{maj_ver}
|
ln -s ../../%{install_bindir}/clang++ %{buildroot}%{install_bindir}/clang++-%{maj_ver}
|
||||||
|
|
||||||
|
@ -253,14 +246,7 @@ rm %{buildroot}%{install_bindir}/llvm-omp-kernel-replay
|
||||||
# Remove LLD's HTML documentation files
|
# Remove LLD's HTML documentation files
|
||||||
rm -Rvf %{buildroot}%{_docdir}/LLVM/lld/html
|
rm -Rvf %{buildroot}%{_docdir}/LLVM/lld/html
|
||||||
|
|
||||||
%if %{with compat_build}
|
%if %{without compat_build}
|
||||||
# Add version suffix to binaries
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
|
||||||
for f in %{buildroot}/%{install_bindir}/*; do
|
|
||||||
filename=`basename $f`
|
|
||||||
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename-%{maj_ver}
|
|
||||||
done
|
|
||||||
%else
|
|
||||||
# Required when using update-alternatives:
|
# Required when using update-alternatives:
|
||||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Alternatives/
|
||||||
touch %{buildroot}%{_bindir}/ld
|
touch %{buildroot}%{_bindir}/ld
|
||||||
|
|
Loading…
Reference in a new issue