From 31641b08e8e472190a4cd5fedb8b12937f45e3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= Date: Wed, 18 Mar 2009 09:01:37 +0000 Subject: [PATCH] - fix the libz.so symlink - zconf.h includes unistd.h again (#479133) --- zlib.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zlib.spec b/zlib.spec index 876ac4d..1f538bc 100644 --- a/zlib.spec +++ b/zlib.spec @@ -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 - 1.2.3-22 +- fix the libz.so symlink + * Tue Mar 17 2009 Stepan Kasal - 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 - 1.2.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild