| 1 | Summary: The zlib compression and decompression library.
|
|---|
| 2 | Name: zlib
|
|---|
| 3 | Version: 1.2.5
|
|---|
| 4 | Release: 1
|
|---|
| 5 | License: BSD
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | URL: http://www.zlib.net
|
|---|
| 8 | Source: %url/zlib-%version.tar.bz2
|
|---|
| 9 | Prefix: %_prefix
|
|---|
| 10 | BuildRoot: /override/%name-%version
|
|---|
| 11 |
|
|---|
| 12 | %description
|
|---|
| 13 | The zlib compression library provides in-memory compression and
|
|---|
| 14 | decompression functions, including integrity checks of the uncompressed
|
|---|
| 15 | data. This version of the library supports only one compression method
|
|---|
| 16 | (deflation), but other algorithms may be added later, which will have
|
|---|
| 17 | the same stream interface. The zlib library is used by many different
|
|---|
| 18 | system programs.
|
|---|
| 19 |
|
|---|
| 20 | %package devel
|
|---|
| 21 | Summary: Header files and libraries for developing apps which will use zlib.
|
|---|
| 22 | Group: Development/Libraries
|
|---|
| 23 | Requires: %name = %version-%release
|
|---|
| 24 |
|
|---|
| 25 | %description devel
|
|---|
| 26 | The zlib-devel package contains the header files and libraries needed to
|
|---|
| 27 | develop programs that use the zlib compression and decompression library.
|
|---|
| 28 |
|
|---|
| 29 | %prep
|
|---|
| 30 | %setup -q
|
|---|
| 31 |
|
|---|
| 32 | # Use optflags_lib for this package if defined.
|
|---|
| 33 | %{expand:%%define optflags %{?optflags_lib:%optflags_lib}%{!?optflags_lib:%optflags} -Wall}
|
|---|
| 34 |
|
|---|
| 35 | %build
|
|---|
| 36 | # first build and test static zlib
|
|---|
| 37 | CFLAGS="%optflags" \
|
|---|
| 38 | ./configure --prefix=/@unixroot/usr --static
|
|---|
| 39 |
|
|---|
| 40 | ! grep -wE 'NO_vsnprintf|HAS_vsprintf_void|HAS_vsnprintf_void|NO_snprintf|HAS_sprintf_void|HAS_snprintf_void' Makefile
|
|---|
| 41 | %__make
|
|---|
| 42 | %{!?_without_check:%{!?_without_test:%__make test}}
|
|---|
| 43 | rm -f *.s *.o
|
|---|
| 44 |
|
|---|
| 45 | # next build and test shared zlib
|
|---|
| 46 | #CFLAGS="%optflags -fPIC" ./configure --prefix=%_prefix --shared
|
|---|
| 47 | #! grep -wE 'NO_vsnprintf|HAS_vsprintf_void|HAS_vsnprintf_void|NO_snprintf|HAS_sprintf_void|HAS_snprintf_void' Makefile
|
|---|
| 48 | #%__make
|
|---|
| 49 | #%{!?_without_check:%{!?_without_test:%__make test}}
|
|---|
| 50 |
|
|---|
| 51 | #bzip2 -9fk ChangeLog FAQ algorithm.txt
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | rm -rf %buildroot
|
|---|
| 55 | mkdir -p %buildroot%_libdir
|
|---|
| 56 | mkdir -p %buildroot%_includedir
|
|---|
| 57 | mkdir -p %buildroot%_mandir/man3
|
|---|
| 58 |
|
|---|
| 59 | cp -a libz.* %buildroot%_libdir/
|
|---|
| 60 | install -p -m644 zlib.h zconf.h %buildroot%_includedir/
|
|---|
| 61 | install -p -m644 zlib.3 %buildroot%_mandir/man3/
|
|---|
| 62 |
|
|---|
| 63 | %define docdir %_docdir/%name-%version
|
|---|
| 64 | mkdir -p %buildroot%docdir
|
|---|
| 65 | install -p -m644 README \
|
|---|
| 66 | example.c minigzip.c %buildroot%docdir/
|
|---|
| 67 | # License {FAQ,ChangeLog,algorithm.txt}.bz2
|
|---|
| 68 |
|
|---|
| 69 | %files
|
|---|
| 70 | %defattr(-,root,root)
|
|---|
| 71 | #%_libdir/libz.so.*
|
|---|
| 72 | %dir %docdir
|
|---|
| 73 | #%docdir/License
|
|---|
| 74 | %docdir/README
|
|---|
| 75 |
|
|---|
| 76 | %files devel
|
|---|
| 77 | %defattr(-,root,root)
|
|---|
| 78 | %_libdir/*.a
|
|---|
| 79 | #%_libdir/*.so
|
|---|
| 80 | %_includedir/*
|
|---|
| 81 | %_mandir/man?/*
|
|---|
| 82 | %dir %docdir
|
|---|
| 83 | %docdir/*.c
|
|---|
| 84 | #%docdir/*.bz2
|
|---|
| 85 |
|
|---|
| 86 | %changelog
|
|---|
| 87 | * Sun Oct 23 2005 Dmitry V. Levin <ldv-at-owl.openwall.com> 1.2.3-owl1
|
|---|
| 88 | - Updated to 1.2.3.
|
|---|
| 89 | - Imported a bunch of patches from ALT's zlib-1.2.3-alt2 package,
|
|---|
| 90 | including versioning for exported symbols added after zlib-1.1.4.
|
|---|
| 91 | - Reviewed Owl patches, removed obsolete ones.
|
|---|
| 92 | - Updated URL per Mark Adler suggestion.
|
|---|
| 93 |
|
|---|
| 94 | * Thu May 15 2003 Solar Designer <solar-at-owl.openwall.com> 1.1.4-owl3
|
|---|
| 95 | - Do safer memory (de)allocation in gzio and gzerror() in particular,
|
|---|
| 96 | patch from Dmitry V. Levin, originally for ALT Linux.
|
|---|
| 97 |
|
|---|
| 98 | * Tue Feb 25 2003 Solar Designer <solar-at-owl.openwall.com>
|
|---|
| 99 | - Patched gzprintf() to use vsnprintf() and handle possible truncation,
|
|---|
| 100 | thanks to Bugtraq postings by Crazy Einstein, Richard Kettlewell, and
|
|---|
| 101 | Carlo Marcelo Arenas Belon.
|
|---|
| 102 |
|
|---|
| 103 | * Wed Mar 13 2002 Solar Designer <solar-at-owl.openwall.com>
|
|---|
| 104 | - Updated to 1.1.4.
|
|---|
| 105 | - Build with -Wall.
|
|---|
| 106 |
|
|---|
| 107 | * Mon Feb 11 2002 Solar Designer <solar-at-owl.openwall.com>
|
|---|
| 108 | - Error handling fixes for inflate from Mark Adler.
|
|---|
| 109 |
|
|---|
| 110 | * Sat Feb 02 2002 Solar Designer <solar-at-owl.openwall.com>
|
|---|
| 111 | - Enforce our new spec file conventions.
|
|---|
| 112 |
|
|---|
| 113 | * Sun Aug 06 2000 Alexandr D. Kanevskiy <kad-at-owl.openwall.com>
|
|---|
| 114 | - import from RH
|
|---|