- fix #209424 - fix libz.a permissions

This commit is contained in:
Ivana Varekova 2006-10-23 09:25:42 +00:00
parent f00f7e8db1
commit b881aff8ae
2 changed files with 17 additions and 1 deletions

11
zlib-1.2.3-lib.patch Normal file
View File

@ -0,0 +1,11 @@
--- zlib-1.2.3/Makefile.in.lib 2006-10-09 14:50:05.000000000 +0200
+++ zlib-1.2.3/Makefile.in 2006-10-09 14:51:00.000000000 +0200
@@ -100,7 +100,7 @@
cp zlib.h zconf.h $(includedir)
chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
cp $(LIBS) $(libdir)
- cd $(libdir); chmod 755 $(LIBS)
+ cd $(libdir);
-@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
cd $(libdir); if test -f $(SHAREDLIBV); then \
rm -f $(SHAREDLIB) $(SHAREDLIBM); \

View File

@ -1,11 +1,12 @@
Summary: The zlib compression and decompression library.
Name: zlib
Version: 1.2.3
Release: 3
Release: 4
Group: System Environment/Libraries
Source: ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-%{version}.tar.gz
Patch0: zlib-1.1.4-make-test.patch
Patch1: zlib-1.2.3-cflags.patch
Patch2: zlib-1.2.3-lib.patch
URL: http://www.gzip.org/zlib/
License: BSD
Prefix: %{_prefix}
@ -29,6 +30,7 @@ library.
%setup -q
%patch0 -p1 -b .make-test
%patch1 -p1 -b .cflags
%patch2 -p1 -b .lib
%build
CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix}
@ -79,6 +81,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man3/zlib.3*
%changelog
* Mon Oct 23 2006 Ivana Varekova <varekova@redhat.com> 1.2.3-4
- fix #209424 - fix libz.a permissions
* Wed Jul 19 2006 Ivana Varekova <varekova@redhat.com> 1.2.3-3
- add cflags (#199379)