arrfab / rpms / zlib

Forked from rpms/zlib 5 years ago
Clone

Blame SPECS/zlib.spec

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