arrfab / rpms / zlib

Forked from rpms/zlib 5 years ago
Clone

Blame SPECS/zlib.spec

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