- incorporate package review feedback

This commit is contained in:
Ivana Varekova 2007-02-19 11:33:27 +00:00
parent b881aff8ae
commit efc80efeb7

View File

@ -1,25 +1,25 @@
Summary: The zlib compression and decompression library. Summary: The zlib compression and decompression library
Name: zlib Name: zlib
Version: 1.2.3 Version: 1.2.3
Release: 4 Release: 5%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
Source: ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-%{version}.tar.gz Source: http://www.zlib.net/zlib-%{version}.tar.gz
Patch0: zlib-1.1.4-make-test.patch Patch0: zlib-1.1.4-make-test.patch
Patch1: zlib-1.2.3-cflags.patch Patch1: zlib-1.2.3-cflags.patch
Patch2: zlib-1.2.3-lib.patch Patch2: zlib-1.2.3-lib.patch
URL: http://www.gzip.org/zlib/ URL: http://www.gzip.org/zlib/
License: BSD License: BSD
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description %description
Zlib is a general-purpose, patent-free, lossless data compression Zlib is a general-purpose, patent-free, lossless data compression
library which is used by many different programs. library which is used by many different programs.
%package devel %package devel
Summary: Header files and libraries for Zlib development. Summary: Header files and libraries for Zlib development
Group: Development/Libraries Group: Development/Libraries
Requires: zlib = %{version} Requires: zlib = %{version}-%{release}
%description devel %description devel
The zlib-devel package contains the header files and libraries needed The zlib-devel package contains the header files and libraries needed
@ -36,25 +36,15 @@ library.
CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix} CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix}
mv Makefile Makefile.shared mv Makefile Makefile.shared
# now build the static lib # created Makefile for the static lib
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
mv Makefile Makefile.static mv Makefile Makefile.static
%install %install
rm -rf ${RPM_BUILD_ROOT} 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.shared install prefix=${RPM_BUILD_ROOT}%{_prefix}
make -f Makefile.static 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 %check
make -f Makefile.shared %{?_smp_mflags} test make -f Makefile.shared %{?_smp_mflags} test
@ -68,23 +58,26 @@ rm -rf ${RPM_BUILD_ROOT}
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc README %doc README ChangeLog FAQ
%{_libdir}/libz.so.* %{_libdir}/libz.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root,-)
%doc ChangeLog algorithm.txt minigzip.c example.c %doc algorithm.txt minigzip.c example.c
%{_libdir}/*.a %{_libdir}/*.a
%{_libdir}/*.so %{_libdir}/*.so
%{_includedir}/* %{_includedir}/*
%{_mandir}/man3/zlib.3* %{_mandir}/man3/zlib.3*
%changelog %changelog
* Mon Oct 23 2006 Ivana Varekova <varekova@redhat.com> 1.2.3-4 * Mon Feb 19 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-5
- incorporate package review feedback
* Mon Oct 23 2006 Ivana Varekova <varekova@redhat.com> - 1.2.3-4
- fix #209424 - fix libz.a permissions - fix #209424 - fix libz.a permissions
* Wed Jul 19 2006 Ivana Varekova <varekova@redhat.com> 1.2.3-3 * Wed Jul 19 2006 Ivana Varekova <varekova@redhat.com> - 1.2.3-3
- add cflags (#199379) - add cflags (#199379)
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.3-2 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.3-2
@ -180,22 +173,22 @@ rm -rf ${RPM_BUILD_ROOT}
as it should) as it should)
- run tests and only build the package if they succeed - run tests and only build the package if they succeed
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.4-1 * Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.4-1
- 1.1.4 - 1.1.4
* Wed Jan 30 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-25.7 * Wed Jan 30 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-25.7
- Fix double free - Fix double free
* Sun Aug 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-24 * Sun Aug 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-24
- Add example.c and minigzip.c to the doc files, as - Add example.c and minigzip.c to the doc files, as
they are listed as examples in the README (#52574) they are listed as examples in the README (#52574)
* Mon Jun 18 2001 Trond Eivind Glomsrød <teg@redhat.com> * Mon Jun 18 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Updated URL - Updated URL
- Add version dependency for zlib-devel - Add version dependency for zlib-devel
- s/Copyright/License/ - s/Copyright/License/
* Wed Feb 14 2001 Trond Eivind Glomsrød <teg@redhat.com> * Wed Feb 14 2001 Trond Eivind Glomsrød <teg@redhat.com>
- bumped version number - this is the old version without the performance enhancements - bumped version number - this is the old version without the performance enhancements
* Fri Sep 15 2000 Florian La Roche <Florian.LaRoche@redhat.de> * Fri Sep 15 2000 Florian La Roche <Florian.LaRoche@redhat.de>
@ -210,16 +203,16 @@ rm -rf ${RPM_BUILD_ROOT}
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com> * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild - automatic rebuild
* Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com> * Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com>
- rebuild - rebuild
* Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com> * Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
- FHS packaging to build on solaris2.5.1. - FHS packaging to build on solaris2.5.1.
* Wed Jun 07 2000 Trond Eivind Glomsrød <teg@redhat.com> * Wed Jun 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
- use %%{_mandir} and %%{_tmppath} - use %%{_mandir} and %%{_tmppath}
* Fri May 12 2000 Trond Eivind Glomsrød <teg@redhat.com> * Fri May 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- updated URL and source location - updated URL and source location
- moved README to main package - moved README to main package