adenilson / rpms / zlib

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