fix the libz.so symlink
This commit is contained in:
parent
31641b08e8
commit
c680fe78e1
@ -80,9 +80,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
mkdir $RPM_BUILD_ROOT/%{_lib}
|
mkdir $RPM_BUILD_ROOT/%{_lib}
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/libz.so.* $RPM_BUILD_ROOT/%{_lib}/
|
mv $RPM_BUILD_ROOT%{_libdir}/libz.so.* $RPM_BUILD_ROOT/%{_lib}/
|
||||||
|
|
||||||
reldir=$(echo %{_libdir} | sed 's,/$,,;s,/[^/]\+,../,g')
|
reldir=$(echo %{_libdir} | sed 's,/$,,;s,/[^/]\+,../,g')%{_lib}
|
||||||
oldlink=$(readlink $RPM_BUILD_ROOT%{_libdir}/libz.so)
|
oldlink=$(readlink $RPM_BUILD_ROOT%{_libdir}/libz.so)
|
||||||
ln -sf $reldir$(basename $oldlink) $RPM_BUILD_ROOT%{_libdir}/libz.so
|
ln -sf $reldir/$(basename $oldlink) $RPM_BUILD_ROOT%{_libdir}/libz.so
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user