adenilson / rpms / zlib

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