Fix a couple broken symlinks

This commit is contained in:
Evgenii Shatokhin 2015-12-20 17:38:45 +03:00
parent aa9b11d7b5
commit ee7ddbdc98

View file

@ -18,7 +18,7 @@
Summary: Low Level Virtual Machine (LLVM) Summary: Low Level Virtual Machine (LLVM)
Name: llvm Name: llvm
Version: %{major_ver}.%{minor_ver} Version: %{major_ver}.%{minor_ver}
Release: 2 Release: 3
License: NCSA License: NCSA
Group: Development/Other Group: Development/Other
Url: http://llvm.org/ Url: http://llvm.org/
@ -151,6 +151,7 @@ This package contains the development files for LLVM.
%files -n %{devname} %files -n %{devname}
%{_bindir}/%{name}-config %{_bindir}/%{name}-config
%{_libdir}/libLLVM.so %{_libdir}/libLLVM.so
%{_libdir}/libLLVM-%{major}.%{minor_ver}.so
%{_includedir}/%{name} %{_includedir}/%{name}
%{_includedir}/%{name}-c %{_includedir}/%{name}-c
%dir %{_libdir}/%{name} %dir %{_libdir}/%{name}
@ -482,6 +483,7 @@ file %{buildroot}/%{_libdir}/llvm/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r
# move shared libraries to standard library path and add devel symlink (Anssi 11/2011) # move shared libraries to standard library path and add devel symlink (Anssi 11/2011)
mv %{buildroot}%{_libdir}/llvm/libLLVM-%{major}.so %{buildroot}%{_libdir} mv %{buildroot}%{_libdir}/llvm/libLLVM-%{major}.so %{buildroot}%{_libdir}
mv %{buildroot}%{_libdir}/llvm/libLLVM-%{major}.%{minor_ver}.so %{buildroot}%{_libdir}
ln -s libLLVM-%{major}.so %{buildroot}%{_libdir}/libLLVM.so ln -s libLLVM-%{major}.so %{buildroot}%{_libdir}/libLLVM.so
ln -s llvm/LLVMgold.so %{buildroot}%{_libdir}/ ln -s llvm/LLVMgold.so %{buildroot}%{_libdir}/
ln -s llvm/libLTO.so %{buildroot}%{_libdir}/ ln -s llvm/libLTO.so %{buildroot}%{_libdir}/
@ -497,6 +499,7 @@ done
%if %{with clang} %if %{with clang}
# Versionize libclang.so (patch0 makes the same change to soname) and move it to standard path. # Versionize libclang.so (patch0 makes the same change to soname) and move it to standard path.
mv %{buildroot}%{_libdir}/llvm/libclang.so %{buildroot}%{_libdir}/libclang-%{clang_major}.so mv %{buildroot}%{_libdir}/llvm/libclang.so %{buildroot}%{_libdir}/libclang-%{clang_major}.so
ln -sf libclang-%{clang_major}.so %{buildroot}%{_libdir}/libclang-%{clang_major}.%{minor_ver}.so
ln -s libclang-%{clang_major}.so %{buildroot}%{_libdir}/libclang.so ln -s libclang-%{clang_major}.so %{buildroot}%{_libdir}/libclang.so
ln -s ../libclang.so %{buildroot}%{_libdir}/llvm/libclang.so ln -s ../libclang.so %{buildroot}%{_libdir}/llvm/libclang.so