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: http://devel.santafelinux.com/source/%{realname}-%{version}/upstream/tarballs/%{realname}-%{version}.tar.gz
29 # Source0-md5: e30f85eed4ecb32841cafe12673c6590
30 Patch0: %{realname}-asmopt.patch
31 Patch1: %{realname}-infsec.patch
32 Patch2: %{name}-shared.patch
33 URL: http://www.zlib.org/
34 BuildRequires: crossmingw32-gcc
35 Requires: crossmingw32-runtime
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define no_install_post_strip 1
40 %define target i386-mingw32
41 %define arch %{_prefix}/%{target}
43 %define __cc %{target}-gcc
44 %define __cxx %{target}-g++
46 %ifarch alpha sparc sparc64 sparcv9
51 The 'zlib' compression library provides in-memory compression and
52 decompression functions, including integrity checks of the
53 uncompressed data. This version of the library supports only one
54 compression method (deflation) but other algorithms may be added later
55 and will have the same stream interface.
58 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
59 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
60 der unkomprimierten Daten. Diese Version der Library unterstützt nur
61 eine Komprimierungsmethode (Deflation), doch können weitere
62 Algorithmen nachträglich eingefügt werden und haben dann dieselbe
66 La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
67 y descompresión en memoria, incluyendo chequeo de la integridad de
68 datos no comprimidos. Esta versión de la biblioteca soporta solamente
69 un método de compresión (deflación) pero otros algoritmos pueden ser
70 añadidos más tarde y tendrán la misma interface. Esta biblioteca se
71 usa por varios programas de sistema.
74 La bibliothèque de compression « zlib » offre des fonctions de
75 compression et de décompression en mémoire, ainsi qu'une vérification
76 de l'intégrité des données décompressées. La version de cette
77 bibliothèque ne gère qu'une méthode de compression (deflation), mais
78 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
82 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
83 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
84 dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
85 kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
86 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
90 A biblioteca de compressão 'zlib' oferece funções de compressão e
91 descompressão em memória, incluindo checagem da integridade de dados
92 não comprimidos. Essa versão da biblioteca suporta somente um método
93 de compressão (deflação) mas outros algoritmos podem ser adicionados
94 mais tarde e terão a mesma interface. Essa biblioteca é usada por
95 vários programas de sistema.
98 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
99 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
100 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
101 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
102 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
105 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
106 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
107 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
108 eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
109 sistem yazýlýmý tarafýndan kullanýlmaktadýr.
112 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib ͦÓÔÉÔØ ÆÕÎËæ§ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
113 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ æÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
114 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
115 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
116 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
119 Summary: zlib - DLL library for Windows
120 Summary(pl): zlib - biblioteka DLL dla Windows
121 Group: Applications/Emulators
124 zlib - DLL library for Windows.
126 %description dll -l pl
127 zlib - biblioteka DLL dla Windows.
130 %setup -q -n %{realname}-%{version}
137 cp contrib/asm686/match.S .
140 cp contrib/asm586/match.S .
144 # fix for underline test
145 #sed -e 's/nm/%{target}-nm/' configure > configure.tmp
146 # but it's broken anyway (tries to use mmap test remains, but there is no mmap
147 # in mingw32) - so hardcode that underline is needed
148 sed -e 's/.*grep _hello.*/if false; then/' configure > configure.tmp
149 mv -f configure.tmp configure
155 AR="%{target}-ar rc" \
156 RANLIB="%{target}-ranlib" \
157 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
165 %{target}-strip -R.comment -R.note z.dll
166 %{target}-strip -g -R.comment -R.note *.a
170 rm -rf $RPM_BUILD_ROOT
171 install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
172 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
175 prefix=$RPM_BUILD_ROOT%{arch}
177 install zutil.h $RPM_BUILD_ROOT%{arch}/include
178 install libz.dll.a $RPM_BUILD_ROOT%{arch}/lib
179 install z.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
182 rm -rf $RPM_BUILD_ROOT
185 %defattr(644,root,root,755)
190 %defattr(644,root,root,755)
191 %{_datadir}/wine/windows/system/*