]> git.pld-linux.org Git - packages/zlib.git/blob - zlib.spec
- release 3 (2 went to Ra)
[packages/zlib.git] / zlib.spec
1 #
2 # Conditional build:
3 %bcond_without  asmopt  # without assembler optimization for i586+
4 %bcond_with     pax
5 #
6 %ifnarch i586 i686 pentium3 pentium4 athlon
7 %undefine       with_asmopt
8 %endif
9 %if %{with pax} && %{with asmopt}
10 %undefine       with_asmopt
11 %endif
12 Summary:        Library for compression and decompression
13 Summary(de):    Library für die Komprimierung und Dekomprimierung
14 Summary(es):    Biblioteca para compresión y descompresión
15 Summary(fr):    Bibliothèque de compression et décompression
16 Summary(pl):    Biblioteka z podprogramami do kompresji i dekompresji
17 Summary(pt_BR): Biblioteca para compressão e descompressão
18 Summary(ru):    âÉÂÌÉÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
19 Summary(tr):    Sýkýþtýrma iþlemleri için kitaplýk
20 Summary(uk):    â¦Â̦ÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§
21 Name:           zlib
22 Version:        1.2.3
23 Release:        3
24 License:        BSD
25 Group:          Libraries
26 Source0:        http://www.zlib.net/%{name}-%{version}.tar.gz
27 # Source0-md5:  debc62758716a169df9f62e6ab2bc634
28 Patch0:         %{name}-asmopt.patch
29 URL:            http://www.zlib.net/
30 Obsoletes:      zlib1
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 The 'zlib' compression library provides in-memory compression and
35 decompression functions, including integrity checks of the
36 uncompressed data. This version of the library supports only one
37 compression method (deflation) but other algorithms may be added later
38 and will have the same stream interface.
39
40 %description -l de
41 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
42 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
43 der unkomprimierten Daten. Diese Version der Library unterstützt nur
44 eine Komprimierungsmethode (Deflation), doch können weitere
45 Algorithmen nachträglich eingefügt werden und haben dann dieselbe
46 Oberfläche.
47
48 %description -l es
49 La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
50 y descompresión en memoria, incluyendo chequeo de la integridad de
51 datos no comprimidos. Esta versión de la biblioteca soporta solamente
52 un método de compresión (deflación) pero otros algoritmos pueden ser
53 añadidos más tarde y tendrán la misma interface. Esta biblioteca se
54 usa por varios programas de sistema.
55
56 %description -l fr
57 La bibliothèque de compression « zlib » offre des fonctions de
58 compression et de décompression en mémoire, ainsi qu'une vérification
59 de l'intégrité des données décompressées. La version de cette
60 bibliothèque ne gère qu'une méthode de compression (deflation), mais
61 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
62 interface.
63
64 %description -l pl
65 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
66 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
67 dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
68 kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
69 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
70 strumieniu danych.
71
72 %description -l pt_BR
73 A biblioteca de compressão 'zlib' oferece funções de compressão e
74 descompressão em memória, incluindo checagem da integridade de dados
75 não comprimidos. Essa versão da biblioteca suporta somente um método
76 de compressão (deflação) mas outros algoritmos podem ser adicionados
77 mais tarde e terão a mesma interface. Essa biblioteca é usada por
78 vários programas de sistema.
79
80 %description -l ru
81 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
82 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
83 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
84 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
85 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
86
87 %description -l tr
88 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
89 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
90 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
91 eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
92 sistem yazýlýmý tarafýndan kullanýlmaktadýr.
93
94 %description -l uk
95 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
96 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
97 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
98 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
99 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
100
101 %package devel
102 Summary:        Header files and libraries for zlib development
103 Summary(de):    Headerdateien und Libraries für zlib-Entwicklung
104 Summary(es):    Bibliotecas y archivos de inclusión para desarrollo zlib
105 Summary(pl):    Pliki nag³ówkowe i dokumentacja do zlib
106 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento zlib
107 Summary(ru):    èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó zlib
108 Summary(uk):    èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú zlib
109 Group:          Development/Libraries
110 Requires:       %{name} = %{epoch}:%{version}-%{release}
111 Obsoletes:      zlib1-devel
112
113 %description devel
114 The 'zlib' compression library provides in-memory compression and
115 decompression functions, including integrity checks of the
116 uncompressed data. This version of the library supports only one
117 compression method (deflation) but other algorithms may be added later
118 and will have the same stream interface.
119
120 This package contains the header files needed to develop programs that
121 use these zlib.
122
123 %description devel -l de
124 Die zlip-Komprimierungs-Library bietet speicherinterne Komprimierungs-
125 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
126 der dekomprimierten Daten. Diese Version der Library unterstützt nur
127 eine Komprimierungsmethode (Deflation), doch sind weitere Algorithmen
128 geplant, die dieselbe Art Oberfläche besitzen werden. Dieses Paket
129 enthält die Header-Dateien und Libraries, die zur Entwicklung von
130 Programmen benötigt werden, die diese zlib einsetzen.
131
132 %description devel -l es
133 La biblioteca de compresión zlib provee funciones de compresión y
134 descompresión en memoria, incluye chequeos de integridad para los
135 datos descomprimidos. Esta versión de la biblioteca soporta solamente
136 un método de compresión (deflation) pero otros algoritmos pueden ser
137 añadidos en el futuro y tendrán la misma interface stream. Este
138 paquete contiene los archivos de inclusión y bibliotecas necesarios al
139 desarrollo de programas que usan zlib.
140
141 %description devel -l fr
142 La bibliothèque de compression « zlib » offre des fonctions de
143 compression et de décompression en mémoire, ainsi qu'une vérification
144 de l'intégrité des données décompressées. La version de cette
145 bibliothèque ne gère qu'une méthode de compression (deflation), mais
146 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
147 interface.
148
149 Ce paquetage contient les fichiers en-têtes et les bibliothèques
150 nécessaires au développement des programmes qui utilisent cette zlib.
151
152 %description devel -l pl
153 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
154 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
155 dekompresjii. Ta wersja biblioteki udostêpnia tylko jedn± metodê
156 kompresjii o nazwie deflation niemniej inne algorytmy mog± byæ
157 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
158 strumieniu danych.
159
160 Pakiet ten zawiera pliki nag³owkowe i dokumentacjê potrzebn± przy
161 tworzeniu w³asnych programów wykorzystuj±cych zlib.
162
163 %description devel -l pt_BR
164 A biblioteca de compressão zlib provê funções de compressão e
165 descompressão em memória, incluindo checagens de integridade para os
166 dados descomprimidos. Esta versão da biblioteca suporta somente um
167 método de compressão (deflation) mas outros algoritmos podem ser
168 adicionados no futuro e terão a mesma interface stream.
169
170 Este pacote contém os arquivos de inclusão e bibliotecas necessários
171 ao desenvolvimento de programas que usam zlib.
172
173 %description devel -l ru
174 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
175 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
176 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
177 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
178 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
179
180 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ
181 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ zlib.
182
183 %description devel -l tr
184 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
185 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
186 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
187 eriþilebilecek þekilde eklenme olasýlýðý vardýr.
188
189 Bu paket, zlib kitaplýðýný kullanarak program geliþtirmek için gereken
190 statik kitaplýklarý ve baþlýk dosyalarýný içerir.
191
192 %description devel -l uk
193 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
194 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
195 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
196 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
197 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
198
199 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ
200 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ zlib.
201
202 %package static
203 Summary:        Static library for zlib development
204 Summary(es):    Static libraries for zlib development
205 Summary(pl):    Biblioteka statyczna do zlib
206 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a zlib
207 Summary(ru):    óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó zlib
208 Summary(uk):    óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú zlib
209 Group:          Development/Libraries
210 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
211
212 %description static
213 The 'zlib' compression library provides in-memory compression and
214 decompression functions, including integrity checks of the
215 uncompressed data. This version of the library supports only one
216 compression method (deflation) but other algorithms may be added later
217 and will have the same stream interface.
218
219 This package contains the header files and libraries needed to develop
220 programs that use these zlib.
221
222 %description static -l pl
223 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
224 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
225 dekompresjii. Ta wersja biblioteki udostêpnia tylko jedn± metodê
226 kompresjii o nazwie deflation niemniej inne algirytmy mog± byæ
227 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
228 strumieniu danych.
229
230 Pakiet ten zawiera bibliotekê statyczn± potrzebn± przy tworzeniu
231 w³asnych programów wykorzystuj±cych zlib.
232
233 %description static -l es
234 Static libraries for zlib development.
235
236 %description static -l pt_BR
237 Bibliotecas estáticas para desenvolvimento com a zlib.
238
239 %description static -l ru
240 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÕÀ ÂÉÂÌÉÏÔÅËÕ, ÎÅÏÂÈÏÄÉÍÕÀ ÄÌÑ ÎÁÐÉÓÁÎÉÑ
241 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ zlib.
242
243 %description static -l uk
244 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞÎՠ¦Â̦ÏÔÅËÕ, ÎÅÏÂȦÄÎÕ ÄÌÑ ÎÁÐÉÓÁÎÎÑ
245 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ zlib.
246
247 %prep
248 %setup -q
249
250 %if %{with asmopt}
251 %patch0 -p1
252
253 %ifarch i686 pentium3 pentium4 athlon
254 cp contrib/asm686/match.S .
255 %endif
256 %ifarch i586
257 cp contrib/asm586/match.S .
258 %endif
259 %endif
260
261 %build
262 CFLAGS="-D_REENTRANT -fPIC %{rpmcflags} %{?with_asmopt:-DASMV}" \
263 CC="%{__cc}" \
264 ./configure \
265         --prefix=%{_prefix} \
266         --shared
267
268 %{__make}
269 %{__make} libz.a
270
271 %install
272 rm -rf $RPM_BUILD_ROOT
273 install -d $RPM_BUILD_ROOT{/%{_lib},%{_includedir},%{_libdir},%{_mandir}/man3}
274
275 %{__make} install \
276         prefix=$RPM_BUILD_ROOT%{_prefix}
277
278 %if "%{_libdir}" != "%{_prefix}/lib"
279 mv $RPM_BUILD_ROOT{%{_prefix}/lib/*,%{_libdir}}
280 %endif
281
282 install libz.a $RPM_BUILD_ROOT%{_libdir}
283 install zutil.h $RPM_BUILD_ROOT%{_includedir}
284
285 mv -f $RPM_BUILD_ROOT%{_libdir}/libz.so.*.* $RPM_BUILD_ROOT/%{_lib}
286 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} && echo libz.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libz.so
287
288 %clean
289 rm -rf $RPM_BUILD_ROOT
290
291 %post   -p /sbin/ldconfig
292 %postun -p /sbin/ldconfig
293
294 %files
295 %defattr(644,root,root,755)
296 %doc ChangeLog FAQ README algorithm.txt
297 %attr(755,root,root) /%{_lib}/libz.so.*.*.*
298
299 %files devel
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libz.so
302 %{_includedir}/*
303 %{_mandir}/man3/*
304
305 %files static
306 %defattr(644,root,root,755)
307 %{_libdir}/lib*.a
This page took 0.19865 seconds and 3 git commands to generate.