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

Last change on this file since 1330 was 1214, checked in by Silvan Scherrer, 8 years ago

spec: zlib: Release version 1.2.11-2.

  • Property svn:eol-style set to native
File size: 3.8 KB
Line 
1
2Summary: The compression and decompression library
3Name: zlib
4Version: 1.2.11
5Release: 2%{?dist}
6License: zlib and Boost
7Group: System Environment/Libraries
8URL: http://www.zlib.net
9Vendor: bww bitwise works GmbH
10%scm_source svn http://svn.netlabs.org/repos/ports/zlib/trunk 1948
11
12# DEF files to create forwarders for the legacy package
13Source10: z.def
14
15BuildRequires: automake, autoconf, libtool
16
17%description
18Zlib is a general-purpose, patent-free, lossless data compression
19library which is used by many different programs.
20
21%package devel
22Summary: Header files and libraries for Zlib development
23Group: Development/Libraries
24Requires: %{name} = %{version}-%{release}
25
26%description devel
27The zlib-devel package contains the header files and libraries needed
28to develop programs that use the zlib compression and decompression
29library.
30
31%package static
32Summary: Static libraries for Zlib development
33Group: Development/Libraries
34Requires: %{name}-devel = %{version}-%{release}
35
36%description static
37The zlib-static package includes static libraries needed
38to develop programs that use the zlib compression and
39decompression library.
40
41%package -n minizip
42Summary: Library for manipulation with .zip archives
43Group: System Environment/Libraries
44Requires: %{name} = %{version}-%{release}
45
46%description -n minizip
47Minizip is a library for manipulation with files from .zip archives.
48
49%package -n minizip-devel
50Summary: Development files for the minizip library
51Group: Development/Libraries
52Requires: minizip = %{version}-%{release}
53Requires: %{name}-devel = %{version}-%{release}
54Requires: pkgconfig
55
56%description -n minizip-devel
57This package contains the libraries and header files needed for
58developing applications which use minizip.
59
60%debug_package
61
62%prep
63%scm_setup
64
65# Prepare forwarder DLLs.
66for m in %{SOURCE10}; do
67 cp ${m} .
68done
69
70%build
71export CFLAGS="$RPM_OPT_FLAGS"
72export LDFLAGS="$LDFLAGS -Zomf -Zhigh-mem -lcx"
73export VENDOR="%{vendor}"
74./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
75make %{?_smp_mflags}
76
77cd contrib/minizip
78autoreconf -fvi
79%configure --enable-static=no
80make %{?_smp_mflags}
81
82%check
83make test
84
85%install
86make install DESTDIR=$RPM_BUILD_ROOT
87
88cd contrib/minizip
89make install DESTDIR=$RPM_BUILD_ROOT
90# we need to get back to root, as else the debugfile list is created at
91# the wrong location
92cd ..
93cd ..
94
95rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
96
97# Generate & install forwarder DLLs.
98gcc -Zomf -Zdll -nostdlib z.def -l$RPM_BUILD_ROOT/%{_libdir}/z1.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/z.dll
99
100#post -p /sbin/ldconfig
101
102#postun -p /sbin/ldconfig
103
104#post -n minizip -p /sbin/ldconfig
105
106#postun -n minizip -p /sbin/ldconfig
107
108%files
109%{!?_licensedir:%global license %%doc}
110%license README
111%doc ChangeLog FAQ
112%{_libdir}/z*.dll
113
114%files devel
115%{!?_licensedir:%global license %%doc}
116%license README
117%doc doc/algorithm.txt test/example.c
118%{_libdir}/libz_dll.a
119%{_libdir}/pkgconfig/zlib.pc
120%{_includedir}/zlib.h
121%{_includedir}/zconf.h
122%{_mandir}/man3/zlib.3*
123
124%files static
125%{!?_licensedir:%global license %%doc}
126%license README
127%{_libdir}/libz.a
128
129%files -n minizip
130%doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
131%{_libdir}/minizip*.dll
132
133%files -n minizip-devel
134%dir %{_includedir}/minizip
135%{_includedir}/minizip/*.h
136%{_libdir}/minizip*_dll.a
137%{_libdir}/pkgconfig/minizip.pc
138
139%changelog
140* Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.2.11-2
141- use new scm_source and scm_setup macro
142
143* Tue Jan 24 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.2.11-1
144- update to version 1.2.11
145
146* Thu Feb 18 2016 yd <yd@os2power.com> 1.2.5-6
147- added .pc file to distribution.
148- use new debug macros.
149
150* Mon Jun 02 2014 yd
151- remove dll from devel package.
152- added debug package with symbolic info for exceptq.
153
154* Mon Jan 16 2012 yd
155- rebuild with libc 0.6.4 runtime.
Note: See TracBrowser for help on using the repository browser.