arrfab / rpms / zlib

Forked from rpms/zlib 5 years ago
Clone

Blame SPECS/zlib.spec

c598f4
Summary: The compression and decompression library
c598f4
Name: zlib
c598f4
Version: 1.2.7
c598f4
Release: 18%{?dist}
c598f4
# /contrib/dotzlib/ have Boost license
c598f4
License: zlib and Boost
c598f4
Group: System Environment/Libraries
c598f4
URL: http://www.zlib.net/
c598f4
Source: http://www.zlib.net/zlib-%{version}.tar.bz2
c598f4
c598f4
Patch0: zlib-1.2.5-minizip-fixuncrypt.patch
c598f4
# resolves: #805113
c598f4
Patch1: zlib-1.2.7-optimized-s390.patch
c598f4
# resolves: #844791
c598f4
Patch2: zlib-1.2.7-z-block-flush.patch
c598f4
# resolves: #1127330
c598f4
Patch3: zlib-1.2.7-fix-serious-but-very-rare-decompression-bug-in-inftr.patch
c598f4
# resolves: #1337441
c598f4
Patch4: zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch
c598f4
c598f4
BuildRequires: automake, autoconf, libtool
c598f4
c598f4
%description
c598f4
Zlib is a general-purpose, patent-free, lossless data compression
c598f4
library which is used by many different programs.
c598f4
c598f4
%package devel
c598f4
Summary: Header files and libraries for Zlib development
c598f4
Group: Development/Libraries
c598f4
Requires: %{name} = %{version}-%{release}
c598f4
c598f4
%description devel
c598f4
The zlib-devel package contains the header files and libraries needed
c598f4
to develop programs that use the zlib compression and decompression
c598f4
library.
c598f4
c598f4
%package static
c598f4
Summary: Static libraries for Zlib development
c598f4
Group: Development/Libraries
c598f4
Requires: %{name}-devel = %{version}-%{release}
c598f4
c598f4
%description static
c598f4
The zlib-static package includes static libraries needed
c598f4
to develop programs that use the zlib compression and
c598f4
decompression library.
c598f4
c598f4
%package -n minizip
c598f4
Summary: Library for manipulation with .zip archives
c598f4
Group: System Environment/Libraries
c598f4
Requires: %{name} = %{version}-%{release}
c598f4
c598f4
%description -n minizip
c598f4
Minizip is a library for manipulation with files from .zip archives.
c598f4
c598f4
%package -n minizip-devel
c598f4
Summary: Development files for the minizip library
c598f4
Group: Development/Libraries
c598f4
Requires: minizip = %{version}-%{release}
c598f4
Requires: %{name}-devel = %{version}-%{release}
c598f4
Requires: pkgconfig
c598f4
c598f4
%description -n minizip-devel
c598f4
This package contains the libraries and header files needed for
c598f4
developing applications which use minizip.
c598f4
c598f4
%prep
c598f4
%setup -q
c598f4
%patch0 -p1 -b .fixuncrypt
c598f4
%ifarch s390 s390x
c598f4
%patch1 -p1 -b .optimized-deflate
c598f4
%endif
c598f4
%patch2 -p1 -b .z-flush
c598f4
iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp
c598f4
mv ChangeLog.tmp ChangeLog
c598f4
c598f4
%patch3 -p1
c598f4
%patch4 -p1
c598f4
c598f4
%build
c598f4
%ifarch ppc64 ppc64le
c598f4
export CFLAGS="$RPM_OPT_FLAGS -O3"
c598f4
%else
c598f4
export CFLAGS="$RPM_OPT_FLAGS"
c598f4
%endif
c598f4
c598f4
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
c598f4
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
c598f4
make %{?_smp_mflags}
c598f4
c598f4
cd contrib/minizip
c598f4
autoreconf --install
c598f4
%configure --enable-static=no
c598f4
make %{?_smp_mflags}
c598f4
c598f4
%check
c598f4
make test
c598f4
c598f4
%install
c598f4
make install DESTDIR=$RPM_BUILD_ROOT
c598f4
c598f4
cd contrib/minizip
c598f4
make install DESTDIR=$RPM_BUILD_ROOT
c598f4
c598f4
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
c598f4
c598f4
%post -p /sbin/ldconfig
c598f4
c598f4
%postun -p /sbin/ldconfig
c598f4
c598f4
%post -n minizip -p /sbin/ldconfig
c598f4
c598f4
%postun -n minizip -p /sbin/ldconfig
c598f4
c598f4
%files
c598f4
%doc README ChangeLog FAQ
c598f4
%{_libdir}/libz.so.*
c598f4
c598f4
%files devel
c598f4
%doc README doc/algorithm.txt test/example.c
c598f4
%{_libdir}/libz.so
c598f4
%{_libdir}/pkgconfig/zlib.pc
c598f4
%{_includedir}/zlib.h
c598f4
%{_includedir}/zconf.h
c598f4
%{_mandir}/man3/zlib.3*
c598f4
c598f4
%files static
c598f4
%doc README
c598f4
%{_libdir}/libz.a
c598f4
c598f4
%files -n minizip
c598f4
%doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
c598f4
%{_libdir}/libminizip.so.*
c598f4
c598f4
%files -n minizip-devel
c598f4
%dir %{_includedir}/minizip
c598f4
%{_includedir}/minizip/*.h
c598f4
%{_libdir}/libminizip.so
c598f4
%{_libdir}/pkgconfig/minizip.pc
c598f4
c598f4
%changelog
c598f4
* Mon Jul 09 2018 Pavel Raiskup <praiskup@redhat.com> - 1.2.7-18
c598f4
- Link with -z now for full RELRO
c598f4
c598f4
* Thu May 19 2016 jchaloup <jchaloup@redhat.com> - 1.2.7-17
c598f4
- Fix writing empty files on gzopen()/gzclose()
c598f4
  resolves: #1337441
c598f4
c598f4
* Wed Apr 27 2016 jchaloup <jchaloup@redhat.com> - 1.2.7-16
c598f4
- Fix serious but very rare decompression bug in inftrees.c (upstream patch)
c598f4
  resolves: #1127330
c598f4
c598f4
* Tue May 12 2015 Peter Robinson <pbrobinson@redhat.com> 1.2.7-15
c598f4
- Rebuild for rhbz #1123500
c598f4
c598f4
* Thu Jul 31 2014 jchaloup <jchaloup@redhat.com> - 1.2.7-14
c598f4
- resolves: #1123500
c598f4
  recompiled with -O3 flag for ppc64le arch
c598f4
c598f4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.7-13
c598f4
- Mass rebuild 2014-01-24
c598f4
c598f4
* Fri Jan 10 2014 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-12
c598f4
- resolves: #1051079
c598f4
  recompiled with -O3 flag for ppc64 arch
c598f4
c598f4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.7-11
c598f4
- Mass rebuild 2013-12-27
c598f4
c598f4
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-10
c598f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c598f4
c598f4
* Thu Oct  4 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-9
c598f4
- updated patch optimizing deflate on s390(x) architectures
c598f4
c598f4
* Wed Aug 29 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-8
c598f4
- related: #832545
c598f4
  reverted changes for this bug, static libraries shouldn't be compiled with
c598f4
  -fPIC flag
c598f4
c598f4
* Mon Aug 27 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-7
c598f4
- resolves: #844791
c598f4
  rank Z_BLOCK flush below Z_PARTIAL_FLUSH only when last flush was Z_BLOCK
c598f4
- done some minor .spec file cleanup
c598f4
c598f4
* Mon Aug 13 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-6
c598f4
- added patch from IBM which optimizes deflate on s390(x) architectures
c598f4
c598f4
* Thu Aug 02 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-5
c598f4
- resolves: #832545
c598f4
  recompiled with -fPIC flag
c598f4
c598f4
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-4
c598f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c598f4
c598f4
* Mon Jun 11 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-3
c598f4
- moved /lib* to /usr/lib*
c598f4
c598f4
* Mon Jun 11 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-2
c598f4
- recompiled with -Wl,-z,relro flags
c598f4
c598f4
* Thu May 10 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.7-1
c598f4
- resolves: #785726
c598f4
- resolves: #805874
c598f4
  update to 1.2.7
c598f4
c598f4
* Tue Jan 10 2012 Peter Schiffer <pschiffe@redhat.com> - 1.2.5-6
c598f4
- resolves: #719139
c598f4
  Zlib fails to read zip64 files on 64-bit system
c598f4
c598f4
* Fri Nov 11 2011 Tom Callaway <spot@fedoraproject.org> - 1.2.5-5
c598f4
- fix minizip to permit uncrypt when NOUNCRYPT is not defined
c598f4
c598f4
* Wed Apr  6 2011 Ivana Hutarova Varekova <varekova@redhat.com> - 1.2.5-4
c598f4
- Resolves: #678603
c598f4
  zlib from minizip allowed NULL pointer parameter of function unzGetCurrentFileInfo 
c598f4
c598f4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-3
c598f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c598f4
c598f4
* Wed Jun 16 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.2.5-2
c598f4
- Resolves: #591317
c598f4
  pdfedit fails to compile on i686 with zlib.h errors
c598f4
c598f4
* Thu Apr 22 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.2.5-1
c598f4
- update to 1.2.5
c598f4
c598f4
* Mon Mar 29 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.2.4-1
c598f4
- update to 1.2.4
c598f4
  use the upstream make/configure files for zlib,
c598f4
  change additional makefile/configure file to be used only to minizip
c598f4
  add pkgconfig to zlib
c598f4
c598f4
* Mon Mar  8 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 1.2.3-25
c598f4
- add Boost license
c598f4
c598f4
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.2.3-24
c598f4
- Use bzipped upstream tarball.
c598f4
c598f4
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-23
c598f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c598f4
c598f4
* Wed Mar 18 2009 Stepan Kasal <skasal@redhat.com> - 1.2.3-22
c598f4
- fix the libz.so symlink
c598f4
c598f4
* Tue Mar 17 2009 Stepan Kasal <skasal@redhat.com> - 1.2.3-21
c598f4
- consolidate the autoconfiscation patches into one and clean it up
c598f4
- consequently, clean up the %%build and %%install sections
c598f4
- zconf.h includes unistd.h again (#479133)
c598f4
c598f4
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-20
c598f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c598f4
c598f4
* Mon Dec  1 2008 Ivana Varekova <varekova@redhat.com> - 1.2.3-19
c598f4
- fix 473490 - unchecked malloc
c598f4
c598f4
* Wed Feb 13 2008 Ivana Varekova <varekova@redhat.com> - 1.2.3-18
c598f4
- change license tag (226671#c29)
c598f4
c598f4
* Mon Feb 11 2008 Ivana Varekova <varekova@redhat.com> - 1.2.3-17
c598f4
- spec file changes
c598f4
c598f4
* Fri Nov 23 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-16
c598f4
- remove minizip headers to minizip-devel
c598f4
- spec file cleanup
c598f4
- fix minizip.pc file
c598f4
c598f4
* Wed Nov 14 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-15
c598f4
- separate static subpackage
c598f4
c598f4
* Wed Aug 15 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-14
c598f4
- create minizip subpackage
c598f4
c598f4
* Mon May 21 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-13
c598f4
- remove .so,.a
c598f4
c598f4
* Mon May 21 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-12
c598f4
- Resolves #240277
c598f4
  Move libz to /lib(64)
c598f4
c598f4
* Mon Apr 23 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-11
c598f4
- Resolves: 237295
c598f4
  fix Summary tag
c598f4
c598f4
* Fri Mar 23 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-10
c598f4
- remove zlib .so.* packages to /lib
c598f4
c598f4
* Fri Mar  9 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-9
c598f4
- incorporate package review feedback
c598f4
c598f4
* Wed Feb 21 2007 Adam Tkac <atkac redhat com> - 1.2.3-8
c598f4
- fixed broken version of libz
c598f4
c598f4
* Tue Feb 20 2007 Adam Tkac <atkac redhat com> - 1.2.3-7
c598f4
- building is now automatized
c598f4
- specfile cleanup
c598f4
c598f4
* Tue Feb 20 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-6
c598f4
- remove the compilation part to build section
c598f4
  some minor changes
c598f4
c598f4
* Mon Feb 19 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-5
c598f4
- incorporate package review feedback
c598f4
c598f4
* Mon Oct 23 2006 Ivana Varekova <varekova@redhat.com> - 1.2.3-4
c598f4
- fix #209424 - fix libz.a permissions
c598f4
c598f4
* Wed Jul 19 2006 Ivana Varekova <varekova@redhat.com> - 1.2.3-3
c598f4
- add cflags (#199379)
c598f4
c598f4
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.3-2
c598f4
- rebuild
c598f4
c598f4
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.3-1.2.1
c598f4
- bump again for double-long bug on ppc(64)
c598f4
c598f4
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.3-1.2
c598f4
- rebuilt for new gcc4.1 snapshot and glibc changes
c598f4
c598f4
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c598f4
- rebuilt
c598f4
c598f4
* Wed Aug 24 2005 Florian La Roche <laroche@redhat.com>
c598f4
- update to 1.2.3
c598f4
c598f4
* Fri Jul 22 2005 Ivana Varekova <varekova@redhat.com> 1.2.2.2-5
c598f4
- fix bug 163038 - CAN-2005-1849 - zlib buffer overflow
c598f4
c598f4
* Thu Jul 7  2005 Ivana Varekova <varekova@redhat.com> 1.2.2.2-4
c598f4
- fix bug 162392 - CAN-2005-2096 
c598f4
c598f4
* Wed Mar 30 2005 Ivana Varekova <varekova@redhat.com> 1.2.2.2-3
c598f4
- fix bug 122408 - zlib build process runs configure twice
c598f4
c598f4
* Fri Mar  4 2005 Jeff Johnson <jbj@redhat.com> 1.2.2.2-2
c598f4
- rebuild with gcc4.
c598f4
c598f4
* Sat Jan  1 2005 Jeff Johnson <jbj@jbj.org> 1.2.2.2-1
c598f4
- upgrade to 1.2.2.2.
c598f4
c598f4
* Fri Nov 12 2004 Jeff Johnson <jbj@jbj.org> 1.2.2.1-1
c598f4
- upgrade to 1.2.2.1.
c598f4
c598f4
* Sun Sep 12 2004 Jeff Johnson <jbj@redhat.com> 1.2.1.2-1
c598f4
- update to 1.2.1.2 to fix 2 DoS problems (#131385).
c598f4
c598f4
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c598f4
- rebuilt
c598f4
c598f4
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
c598f4
- rebuilt
c598f4
c598f4
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
c598f4
- rebuilt
c598f4
c598f4
* Sun Jan 18 2004 Jeff Johnson <jbj@jbj.org> 1.2.1.1-1
c598f4
- upgrade to zlib-1.2.1.1.
c598f4
c598f4
* Sun Nov 30 2003 Florian La Roche <Florian.LaRoche@redhat.de>
c598f4
- update to 1.2.1 release
c598f4
c598f4
* Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 1.2.0.7-3
c598f4
- unrevert zlib.h include constants (#106291), rejected upstream.
c598f4
c598f4
* Wed Oct  8 2003 Jeff Johnson <jbj@jbj.org> 1.2.0.7-2
c598f4
- fix: gzeof not set when reading compressed file (#106424).
c598f4
- fix: revert zlib.h include constants for now (#106291).
c598f4
c598f4
* Tue Sep 23 2003 Jeff Johnson <jbj@redhat.com> 1.2.0.7-1
c598f4
- update to 1.2.0.7, penultimate 1.2.1 release candidate.
c598f4
c598f4
* Tue Jul 22 2003 Jeff Johnson <jbj@redhat.com> 1.2.0.3-0.1
c598f4
- update to release candidate.
c598f4
c598f4
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
c598f4
- rebuilt
c598f4
c598f4
* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 1.1.4-9
c598f4
- rebuild, revert from 1.2.0.1.
c598f4
c598f4
* Mon Feb 24 2003 Jeff Johnson <jbj@redhat.com> 1.1.4-8
c598f4
- fix gzprintf buffer overrun (#84961).
c598f4
c598f4
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 1.1.4-7
c598f4
- rebuilt
c598f4
c598f4
* Thu Nov 21 2002 Elliot Lee <sopwith@redhat.com> 1.1.4-6
c598f4
- Make ./configure use $CC to ease cross-compilation
c598f4
c598f4
* Tue Nov 12 2002 Jeff Johnson <jbj@redhat.com> 1.1.4-5
c598f4
- rebuild from cvs.
c598f4
c598f4
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
c598f4
- automated rebuild
c598f4
c598f4
* Thu May 23 2002 Tim Powers <timp@redhat.com>
c598f4
- automated rebuild
c598f4
c598f4
* Fri Apr 26 2002 Jakub Jelinek <jakub@redhat.com> 1.1.4-2
c598f4
- remove glibc patch, it is no longer needed (zlib uses gcc -shared
c598f4
  as it should)
c598f4
- run tests and only build the package if they succeed
c598f4
c598f4
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.4-1
c598f4
- 1.1.4
c598f4
c598f4
* Wed Jan 30 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-25.7
c598f4
- Fix double free
c598f4
c598f4
* Sun Aug 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.1.3-24
c598f4
- Add example.c and minigzip.c to the doc files, as
c598f4
  they are listed as examples in the README (#52574)
c598f4
c598f4
* Mon Jun 18 2001 Trond Eivind Glomsrød <teg@redhat.com>
c598f4
- Updated URL
c598f4
- Add version dependency for zlib-devel
c598f4
- s/Copyright/License/
c598f4
c598f4
* Wed Feb 14 2001 Trond Eivind Glomsrød <teg@redhat.com>
c598f4
- bumped version number - this is the old version without the performance enhancements
c598f4
c598f4
* Fri Sep 15 2000 Florian La Roche <Florian.LaRoche@redhat.de>
c598f4
- add -fPIC for shared libs (patch by Fritz Elfert)
c598f4
c598f4
* Thu Sep  7 2000 Jeff Johnson <jbj@redhat.com>
c598f4
- on 64bit systems, make sure libraries are located correctly.
c598f4
c598f4
* Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com>
c598f4
- summaries from specspo.
c598f4
c598f4
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
c598f4
- automatic rebuild
c598f4
c598f4
* Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com>
c598f4
- rebuild
c598f4
c598f4
* Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com>
c598f4
- FHS packaging to build on solaris2.5.1.
c598f4
c598f4
* Wed Jun 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
c598f4
- use %%{_mandir} and %%{_tmppath}
c598f4
c598f4
* Fri May 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
c598f4
- updated URL and source location
c598f4
- moved README to main package
c598f4
c598f4
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
c598f4
- compress man page.
c598f4
c598f4
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
c598f4
- auto rebuild in the new build environment (release 5)
c598f4
c598f4
* Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
c598f4
- link against glibc
c598f4
c598f4
* Mon Jul 27 1998 Jeff Johnson <jbj@redhat.com>
c598f4
- upgrade to 1.1.3
c598f4
c598f4
* Fri May 08 1998 Prospector System <bugs@redhat.com>
c598f4
- translations modified for de, fr, tr
c598f4
c598f4
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
c598f4
- upgraded to 1.1.2
c598f4
- buildroot
c598f4
c598f4
* Tue Oct 07 1997 Donnie Barnes <djb@redhat.com>
c598f4
- added URL tag (down at the moment so it may not be correct)
c598f4
- made zlib-devel require zlib
c598f4
c598f4
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
c598f4
- built against glibc