- fix the libz.so symlink

- zconf.h includes unistd.h again (#479133)
This commit is contained in:
Štěpán Kasal 2009-03-18 09:01:37 +00:00
parent 9bfa9f1c87
commit 31641b08e8

View File

@ -1,7 +1,7 @@
Summary: The zlib compression and decompression library
Name: zlib
Version: 1.2.3
Release: 21%{?dist}
Release: 22%{?dist}
Group: System Environment/Libraries
Source: http://www.zlib.net/zlib-%{version}.tar.gz
Patch3: zlib-1.2.3-autotools.patch
@ -80,6 +80,10 @@ make install DESTDIR=$RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/%{_lib}
mv $RPM_BUILD_ROOT%{_libdir}/libz.so.* $RPM_BUILD_ROOT/%{_lib}/
reldir=$(echo %{_libdir} | sed 's,/$,,;s,/[^/]\+,../,g')
oldlink=$(readlink $RPM_BUILD_ROOT%{_libdir}/libz.so)
ln -sf $reldir$(basename $oldlink) $RPM_BUILD_ROOT%{_libdir}/libz.so
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
@ -125,9 +129,13 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/pkgconfig/minizip.pc
%changelog
* Wed Mar 18 2009 Stepan Kasal <skasal@redhat.com> - 1.2.3-22
- fix the libz.so symlink
* Tue Mar 17 2009 Stepan Kasal <skasal@redhat.com> - 1.2.3-21
- consolidate the autoconfiscation patches into one and clean it up
- consequently, clean up the %%build and %%install sections
- zconf.h includes unistd.h again (#479133)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild