source: spec/trunk/SPECS/zlib.spec@ 25

Last change on this file since 25 was 11, checked in by Yuri Dario, 15 years ago

spec: initial import for base .spec files.

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1Summary: The zlib compression and decompression library.
2Name: zlib
3Version: 1.2.5
4Release: 1
5License: BSD
6Group: System Environment/Libraries
7URL: http://www.zlib.net
8Source: %url/zlib-%version.tar.bz2
9Prefix: %_prefix
10BuildRoot: /override/%name-%version
11
12%description
13The zlib compression library provides in-memory compression and
14decompression functions, including integrity checks of the uncompressed
15data. This version of the library supports only one compression method
16(deflation), but other algorithms may be added later, which will have
17the same stream interface. The zlib library is used by many different
18system programs.
19
20%package devel
21Summary: Header files and libraries for developing apps which will use zlib.
22Group: Development/Libraries
23Requires: %name = %version-%release
24
25%description devel
26The zlib-devel package contains the header files and libraries needed to
27develop 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
37CFLAGS="%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}}
43rm -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
54rm -rf %buildroot
55mkdir -p %buildroot%_libdir
56mkdir -p %buildroot%_includedir
57mkdir -p %buildroot%_mandir/man3
58
59cp -a libz.* %buildroot%_libdir/
60install -p -m644 zlib.h zconf.h %buildroot%_includedir/
61install -p -m644 zlib.3 %buildroot%_mandir/man3/
62
63%define docdir %_docdir/%name-%version
64mkdir -p %buildroot%docdir
65install -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,
90including 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,
96patch 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,
100thanks to Bugtraq postings by Crazy Einstein, Richard Kettlewell, and
101Carlo 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
Note: See TracBrowser for help on using the repository browser.