Summary: The zlib compression and decompression library. Name: zlib Version: 1.2.2.2 Release: 3 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 URL: http://www.gzip.org/zlib/ License: BSD Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Zlib is a general-purpose, patent-free, lossless data compression library which is used by many different programs. %package devel Summary: Header files and libraries for Zlib development. Group: Development/Libraries Requires: zlib = %{version} %description devel The zlib-devel package contains the header files and libraries needed to develop programs that use the zlib compression and decompression library. %prep %setup -q %patch0 -p1 -b .make-test %build CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix} mv Makefile Makefile.shared # now build the static lib CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} mv Makefile Makefile.static %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_prefix} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3 make -f Makefile.shared install prefix=${RPM_BUILD_ROOT}%{_prefix} make -f Makefile.static install prefix=${RPM_BUILD_ROOT}%{_prefix} install -m644 zutil.h ${RPM_BUILD_ROOT}%{_includedir}/zutil.h if [ "%{_prefix}/lib" != "%{_libdir}" ]; then mkdir -p ${RPM_BUILD_ROOT}%{_libdir} mv ${RPM_BUILD_ROOT}%{_prefix}/lib/* ${RPM_BUILD_ROOT}%{_libdir} rmdir ${RPM_BUILD_ROOT}%{_prefix}/lib fi %check make -f Makefile.shared %{?_smp_mflags} test make -f Makefile.static %{?_smp_mflags} test %clean rm -rf ${RPM_BUILD_ROOT} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc README %{_libdir}/libz.so.* %files devel %defattr(-,root,root) %doc ChangeLog algorithm.txt minigzip.c example.c %{_libdir}/*.a %{_libdir}/*.so %{_includedir}/* %{_mandir}/man3/zlib.3* %changelog * Wed Mar 30 2005 Ivana Varekova 1.2.2.2-3 - fix bug 122408 - zlib build process runs configure twice * Fri Mar 4 2005 Jeff Johnson 1.2.2.2-2 - rebuild with gcc4. * Sat Jan 1 2005 Jeff Johnson 1.2.2.2-1 - upgrade to 1.2.2.2. * Fri Nov 12 2004 Jeff Johnson 1.2.2.1-1 - upgrade to 1.2.2.1. * Sun Sep 12 2004 Jeff Johnson 1.2.1.2-1 - update to 1.2.1.2 to fix 2 DoS problems (#131385). * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Sun Jan 18 2004 Jeff Johnson 1.2.1.1-1 - upgrade to zlib-1.2.1.1. * Sun Nov 30 2003 Florian La Roche - update to 1.2.1 release * Mon Oct 13 2003 Jeff Johnson 1.2.0.7-3 - unrevert zlib.h include constants (#106291), rejected upstream. * Wed Oct 8 2003 Jeff Johnson 1.2.0.7-2 - fix: gzeof not set when reading compressed file (#106424). - fix: revert zlib.h include constants for now (#106291). * Tue Sep 23 2003 Jeff Johnson 1.2.0.7-1 - update to 1.2.0.7, penultimate 1.2.1 release candidate. * Tue Jul 22 2003 Jeff Johnson 1.2.0.3-0.1 - update to release candidate. * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon May 19 2003 Jeff Johnson 1.1.4-9 - rebuild, revert from 1.2.0.1. * Mon Feb 24 2003 Jeff Johnson 1.1.4-8 - fix gzprintf buffer overrun (#84961). * Wed Jan 22 2003 Tim Powers 1.1.4-7 - rebuilt * Thu Nov 21 2002 Elliot Lee 1.1.4-6 - Make ./configure use $CC to ease cross-compilation * Tue Nov 12 2002 Jeff Johnson 1.1.4-5 - rebuild from cvs. * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Fri Apr 26 2002 Jakub Jelinek 1.1.4-2 - remove glibc patch, it is no longer needed (zlib uses gcc -shared as it should) - run tests and only build the package if they succeed * Thu Apr 25 2002 Trond Eivind Glomsrød 1.1.4-1 - 1.1.4 * Wed Jan 30 2002 Trond Eivind Glomsrød 1.1.3-25.7 - Fix double free * Sun Aug 26 2001 Trond Eivind Glomsrød 1.1.3-24 - Add example.c and minigzip.c to the doc files, as they are listed as examples in the README (#52574) * Mon Jun 18 2001 Trond Eivind Glomsrød - Updated URL - Add version dependency for zlib-devel - s/Copyright/License/ * Wed Feb 14 2001 Trond Eivind Glomsrød - bumped version number - this is the old version without the performance enhancements * Fri Sep 15 2000 Florian La Roche - add -fPIC for shared libs (patch by Fritz Elfert) * Thu Sep 7 2000 Jeff Johnson - on 64bit systems, make sure libraries are located correctly. * Thu Aug 17 2000 Jeff Johnson - summaries from specspo. * Thu Jul 13 2000 Prospector - automatic rebuild * Sun Jul 02 2000 Trond Eivind Glomsrød - rebuild * Tue Jun 13 2000 Jeff Johnson - FHS packaging to build on solaris2.5.1. * Wed Jun 07 2000 Trond Eivind Glomsrød - use %%{_mandir} and %%{_tmppath} * Fri May 12 2000 Trond Eivind Glomsrød - updated URL and source location - moved README to main package * Mon Feb 7 2000 Jeff Johnson - compress man page. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) * Wed Sep 09 1998 Cristian Gafton - link against glibc * Mon Jul 27 1998 Jeff Johnson - upgrade to 1.1.3 * Fri May 08 1998 Prospector System - translations modified for de, fr, tr * Wed Apr 08 1998 Cristian Gafton - upgraded to 1.1.2 - buildroot * Tue Oct 07 1997 Donnie Barnes - added URL tag (down at the moment so it may not be correct) - made zlib-devel require zlib * Thu Jun 19 1997 Erik Troan - built against glibc