3 %bcond_without asmopt # without assmbler optimization for i586+
5 # disable asmopt where not applicable
13 Summary: Library for compression and decompression - Ming32 cross version
14 Summary(de): Library für die Komprimierung und Dekomprimierung
15 Summary(es): Biblioteca para compresión y descompresión
16 Summary(fr): bibliothèque de compression et décompression
17 Summary(pl): Biblioteka z podprogramami do kompresji i dekompresji - wersja skro¶na dla Ming32
18 Summary(pt_BR): Biblioteca para compressão e descompressão
19 Summary(ru): âÉÂÌÉÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
20 Summary(tr): Sýkýþtýrma iþlemleri için kitaplýk
21 Summary(uk): â¦Â̦ÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§
22 Name: crossmingw32-%{realname}
27 Source0: http://www.gzip.org/zlib/%{realname}-%{version}.tar.gz
28 # Source0-md5: ef1cb003448b4a53517b8f25adb12452
29 Patch0: %{realname}-asmopt.patch
30 Patch1: %{name}-shared.patch
31 URL: http://www.zlib.org/
32 BuildRequires: crossmingw32-gcc
33 Requires: crossmingw32-runtime
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define no_install_post_strip 1
38 %define target i386-mingw32
39 %define arch %{_prefix}/%{target}
41 %define __cc %{target}-gcc
42 %define __cxx %{target}-g++
44 %ifarch alpha sparc sparc64 sparcv9
49 The 'zlib' compression library provides in-memory compression and
50 decompression functions, including integrity checks of the
51 uncompressed data. This version of the library supports only one
52 compression method (deflation) but other algorithms may be added later
53 and will have the same stream interface.
56 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
57 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
58 der unkomprimierten Daten. Diese Version der Library unterstützt nur
59 eine Komprimierungsmethode (Deflation), doch können weitere
60 Algorithmen nachträglich eingefügt werden und haben dann dieselbe
64 La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
65 y descompresión en memoria, incluyendo chequeo de la integridad de
66 datos no comprimidos. Esta versión de la biblioteca soporta solamente
67 un método de compresión (deflación) pero otros algoritmos pueden ser
68 añadidos más tarde y tendrán la misma interface. Esta biblioteca se
69 usa por varios programas de sistema.
72 La bibliothèque de compression « zlib » offre des fonctions de
73 compression et de décompression en mémoire, ainsi qu'une vérification
74 de l'intégrité des données décompressées. La version de cette
75 bibliothèque ne gère qu'une méthode de compression (deflation), mais
76 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
80 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
81 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
82 dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
83 kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
84 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
88 A biblioteca de compressão 'zlib' oferece funções de compressão e
89 descompressão em memória, incluindo checagem da integridade de dados
90 não comprimidos. Essa versão da biblioteca suporta somente um método
91 de compressão (deflação) mas outros algoritmos podem ser adicionados
92 mais tarde e terão a mesma interface. Essa biblioteca é usada por
93 vários programas de sistema.
96 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
97 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
98 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
99 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
100 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
103 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
104 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
105 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
106 eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
107 sistem yazýlýmý tarafýndan kullanýlmaktadýr.
110 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib ͦÓÔÉÔØ ÆÕÎËæ§ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
111 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ æÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
112 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
113 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
114 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
117 Summary: zlib - DLL library for Windows
118 Summary(pl): zlib - biblioteka DLL dla Windows
119 Group: Applications/Emulators
122 zlib - DLL library for Windows.
124 %description dll -l pl
125 zlib - biblioteka DLL dla Windows.
128 %setup -q -n %{realname}-%{version}
134 cp contrib/asm686/match.S .
137 cp contrib/asm586/match.S .
141 # fix for underline test
142 #sed -e 's/nm/%{target}-nm/' configure > configure.tmp
143 # but it's broken anyway (tries to use mmap test remains, but there is no mmap
144 # in mingw32) - so hardcode that underline is needed
145 sed -e 's/.*grep _hello.*/if false; then/' configure > configure.tmp
146 mv -f configure.tmp configure
152 AR="%{target}-ar rc" \
153 RANLIB="%{target}-ranlib" \
154 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
162 %{target}-strip -R.comment -R.note z.dll
163 %{target}-strip -g -R.comment -R.note *.a
167 rm -rf $RPM_BUILD_ROOT
168 install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
169 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
172 prefix=$RPM_BUILD_ROOT%{arch}
174 install zutil.h $RPM_BUILD_ROOT%{arch}/include
175 install libz.dll.a $RPM_BUILD_ROOT%{arch}/lib
176 install z.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
179 rm -rf $RPM_BUILD_ROOT
182 %defattr(644,root,root,755)
187 %defattr(644,root,root,755)
188 %{_datadir}/wine/windows/system/*