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

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

spec: zlib, remove dll from devel package.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1Summary: The zlib compression and decompression library.
2Name: zlib
3Version: 1.2.5
4Release: 5%{?dist}
5License: BSD
6Group: System Environment/Libraries
7URL: http://www.zlib.net
8Source: %url/zlib-%version.tar.bz2
9Patch0: zlib-os2.diff
10Prefix: %_prefix
11BuildRoot: /override/%name-%version
12
13%description
14The zlib compression library provides in-memory compression and
15decompression functions, including integrity checks of the uncompressed
16data. This version of the library supports only one compression method
17(deflation), but other algorithms may be added later, which will have
18the same stream interface. The zlib library is used by many different
19system programs.
20
21%package devel
22Summary: Header files and libraries for developing apps which will use zlib.
23Group: Development/Libraries
24Requires: %name = %version-%release
25
26%description devel
27The zlib-devel package contains the header files and libraries needed to
28develop programs that use the zlib compression and decompression library.
29
30%package debug
31Summary: HLL debug data for exception handling support.
32
33%description debug
34HLL debug data for exception handling support.
35
36%prep
37%setup -q
38%patch0 -p0 -b .os2~
39
40# Use optflags_lib for this package if defined.
41%{expand:%%define optflags %{?optflags_lib:%optflags_lib}%{!?optflags_lib:%optflags} -Wall}
42
43%build
44# first build and test static zlib
45export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
46export TEST_LDFLAGS="-Zomf"
47CFLAGS="%optflags" \
48./configure --prefix=/@unixroot/usr --static
49
50! grep -wE 'NO_vsnprintf|HAS_vsprintf_void|HAS_vsnprintf_void|NO_snprintf|HAS_sprintf_void|HAS_snprintf_void' Makefile
51%__make
52%__make z.dll
53
54%{!?_without_check:%{!?_without_test:%__make test}}
55rm -f *.s *.o
56
57# next build and test shared zlib
58#CFLAGS="%optflags -fPIC" ./configure --prefix=%_prefix --shared
59#! grep -wE 'NO_vsnprintf|HAS_vsprintf_void|HAS_vsnprintf_void|NO_snprintf|HAS_sprintf_void|HAS_snprintf_void' Makefile
60#%__make
61#%{!?_without_check:%{!?_without_test:%__make test}}
62
63#bzip2 -9fk ChangeLog FAQ algorithm.txt
64
65%install
66rm -rf %buildroot
67mkdir -p %buildroot%_libdir
68mkdir -p %buildroot%_includedir
69mkdir -p %buildroot%_mandir/man3
70
71cp -a libz.a %buildroot%_libdir/
72cp -a libz_s.a %buildroot%_libdir/
73cp -a z.dll %buildroot%_libdir/
74
75install -p -m644 zlib.h zconf.h %buildroot%_includedir/
76install -p -m644 zlib.3 %buildroot%_mandir/man3/
77
78%define docdir %_docdir/%name-%version
79mkdir -p %buildroot%docdir
80install -p -m644 README \
81 example.c minigzip.c %buildroot%docdir/
82# License {FAQ,ChangeLog,algorithm.txt}.bz2
83
84%files
85%defattr(-,root,root)
86%_libdir/z.dll
87%dir %docdir
88#%docdir/License
89%docdir/README
90
91%files devel
92%defattr(-,root,root)
93%_libdir/*.a
94%_includedir/*
95%_mandir/man?/*
96%dir %docdir
97%docdir/*.c
98#%docdir/*.bz2
99
100%files debug
101%defattr(-,root,root)
102%{_libdir}/*.dbg
103
104%changelog
105* Mon Jun 02 2014 yd
106- remove dll from devel package.
107- added debug package with symbolic info for exceptq.
108
109* Mon Jan 16 2012 yd
110- rebuild with libc 0.6.4 runtime.
Note: See TracBrowser for help on using the repository browser.