2004-09-09 15:16:25 +00:00
|
|
|
|
Summary: The zlib compression and decompression library.
|
|
|
|
|
Name: zlib
|
|
|
|
|
Version: 1.1.3
|
2004-09-09 15:18:28 +00:00
|
|
|
|
Release: 25.7
|
2004-09-09 15:16:25 +00:00
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Source: ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-%{version}.tar.gz
|
|
|
|
|
Patch0: zlib-1.1.3-glibc.patch
|
2004-09-09 15:18:28 +00:00
|
|
|
|
Patch1: zlib-1.1.3-sec.patch
|
2004-09-09 15:17:26 +00:00
|
|
|
|
URL: http://www.gzip.org/zlib/
|
|
|
|
|
License: BSD
|
2004-09-09 15:16:25 +00:00
|
|
|
|
Prefix: %{_prefix}
|
2004-09-09 15:17:26 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 15:16:25 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 15:17:48 +00:00
|
|
|
|
Zlib is a general-purpose, patent-free, lossless data compression
|
|
|
|
|
library which is used by many different programs.
|
2004-09-09 15:16:25 +00:00
|
|
|
|
|
|
|
|
|
%package devel
|
2004-09-09 15:17:48 +00:00
|
|
|
|
Summary: Header files and libraries for Zlib development.
|
2004-09-09 15:16:25 +00:00
|
|
|
|
Group: Development/Libraries
|
2004-09-09 15:17:26 +00:00
|
|
|
|
Requires: zlib = %{version}
|
2004-09-09 15:16:25 +00:00
|
|
|
|
|
|
|
|
|
%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 .glibc
|
2004-09-09 15:18:28 +00:00
|
|
|
|
%patch1 -p1 -b .free
|
2004-09-09 15:16:25 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
2004-09-09 15:16:39 +00:00
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix}
|
2004-09-09 15:16:25 +00:00
|
|
|
|
make
|
|
|
|
|
# now build the static lib
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --shared --prefix=%{_prefix}
|
|
|
|
|
make install prefix=${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
|
|
|
|
|
make install prefix=${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
|
|
|
|
|
|
install -m644 zutil.h ${RPM_BUILD_ROOT}%{_includedir}/zutil.h
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3
|
|
|
|
|
install -m644 zlib.3 ${RPM_BUILD_ROOT}%{_mandir}/man3
|
|
|
|
|
|
2004-09-09 15:16:39 +00:00
|
|
|
|
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
|
|
|
|
|
|
2004-09-09 15:16:25 +00:00
|
|
|
|
%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)
|
2004-09-09 15:17:48 +00:00
|
|
|
|
%doc ChangeLog algorithm.txt minigzip.c example.c
|
2004-09-09 15:16:25 +00:00
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_mandir}/man3/zlib.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 15:18:28 +00:00
|
|
|
|
* Wed Jan 30 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.1.3-25.7
|
|
|
|
|
- Fix double free
|
|
|
|
|
|
2004-09-09 15:17:48 +00:00
|
|
|
|
* Sun Aug 26 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 1.1.3-24
|
|
|
|
|
- Add example.c and minigzip.c to the doc files, as
|
|
|
|
|
they are listed as examples in the README (#52574)
|
|
|
|
|
|
2004-09-09 15:17:26 +00:00
|
|
|
|
* Mon Jun 18 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Updated URL
|
|
|
|
|
- Add version dependency for zlib-devel
|
|
|
|
|
- s/Copyright/License/
|
|
|
|
|
|
2004-09-09 15:16:39 +00:00
|
|
|
|
* Wed Feb 14 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- bumped version number - this is the old version without the performance enhancements
|
|
|
|
|
|
|
|
|
|
* Fri Sep 15 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
|
- add -fPIC for shared libs (patch by Fritz Elfert)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- on 64bit systems, make sure libraries are located correctly.
|
|
|
|
|
|
2004-09-09 15:16:25 +00:00
|
|
|
|
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- summaries from specspo.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jul 02 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- FHS packaging to build on solaris2.5.1.
|
|
|
|
|
|
|
|
|
|
* Wed Jun 07 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- use %%{_mandir} and %%{_tmppath}
|
|
|
|
|
|
|
|
|
|
* Fri May 12 2000 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- updated URL and source location
|
|
|
|
|
- moved README to main package
|
|
|
|
|
|
|
|
|
|
* Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- compress man page.
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- auto rebuild in the new build environment (release 5)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- link against glibc
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 1998 Jeff Johnson <jbj@redhat.com>
|
|
|
|
|
- upgrade to 1.1.3
|
|
|
|
|
|
|
|
|
|
* Fri May 08 1998 Prospector System <bugs@redhat.com>
|
|
|
|
|
- translations modified for de, fr, tr
|
|
|
|
|
|
|
|
|
|
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
|
|
|
|
|
- upgraded to 1.1.2
|
|
|
|
|
- buildroot
|
|
|
|
|
|
|
|
|
|
* Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
|
|
|
|
|
- added URL tag (down at the moment so it may not be correct)
|
|
|
|
|
- made zlib-devel require zlib
|
|
|
|
|
|
|
|
|
|
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
|
|
|
|
|
- built against glibc
|