3 %bcond_without asmopt # without assmbler optimization for i586+
5 %ifnarch i586 i686 athlon
9 Summary: Library for compression and decompression - Ming32 cross version
10 Summary(de): Library für die Komprimierung und Dekomprimierung
11 Summary(es): Biblioteca para compresión y descompresión
12 Summary(fr): bibliothèque de compression et décompression
13 Summary(pl): Biblioteka z podprogramami do kompresji i dekompresji - wersja skro¶na dla Ming32
14 Summary(pt_BR): Biblioteca para compressão e descompressão
15 Summary(ru): âÉÂÌÉÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
16 Summary(tr): Sýkýþtýrma iþlemleri için kitaplýk
17 Summary(uk): â¦Â̦ÏÔÅËÁ ÄÌÑ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§
18 Name: crossmingw32-%{realname}
23 Source0: http://www.gzip.org/zlib/%{realname}-%{version}.tar.gz
24 # Source0-md5: ef1cb003448b4a53517b8f25adb12452
25 Patch0: %{realname}-asmopt.patch
26 URL: http://www.zlib.org/
27 BuildRequires: crossmingw32-gcc
28 BuildRoot: %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
30 %define no_install_post_strip 1
32 %define target i386-mingw32
33 %define arch %{_prefix}/%{target}
35 %define __cc %{target}-gcc
36 %define __cxx %{target}-g++
39 The 'zlib' compression library provides in-memory compression and
40 decompression functions, including integrity checks of the
41 uncompressed data. This version of the library supports only one
42 compression method (deflation) but other algorithms may be added later
43 and will have the same stream interface.
46 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
47 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
48 der unkomprimierten Daten. Diese Version der Library unterstützt nur
49 eine Komprimierungsmethode (Deflation), doch können weitere
50 Algorithmen nachträglich eingefügt werden und haben dann dieselbe
54 La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
55 y descompresión en memoria, incluyendo chequeo de la integridad de
56 datos no comprimidos. Esta versión de la biblioteca soporta solamente
57 un método de compresión (deflación) pero otros algoritmos pueden ser
58 añadidos más tarde y tendrán la misma interface. Esta biblioteca se
59 usa por varios programas de sistema.
62 La bibliothèque de compression « zlib » offre des fonctions de
63 compression et de décompression en mémoire, ainsi qu'une vérification
64 de l'intégrité des données décompressées. La version de cette
65 bibliothèque ne gère qu'une méthode de compression (deflation), mais
66 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
70 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
71 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
72 dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
73 kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
74 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
78 A biblioteca de compressão 'zlib' oferece funções de compressão e
79 descompressão em memória, incluindo checagem da integridade de dados
80 não comprimidos. Essa versão da biblioteca suporta somente um método
81 de compressão (deflação) mas outros algoritmos podem ser adicionados
82 mais tarde e terão a mesma interface. Essa biblioteca é usada por
83 vários programas de sistema.
86 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
87 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
88 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
89 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
90 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
93 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
94 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
95 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
96 eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
97 sistem yazýlýmý tarafýndan kullanýlmaktadýr.
100 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib ͦÓÔÉÔØ ÆÕÎËæ§ ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
101 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ æÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
102 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉÎ ÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
103 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
104 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
107 %setup -q -n %{realname}-%{version}
112 cp contrib/asm686/match.S .
115 cp contrib/asm586/match.S .
119 # fix for underline test
120 #sed -e 's/nm/%{target}-nm/' configure > configure.tmp
121 # but it's broken anyway (tries to use mmap test remains, but there is no mmap
122 # in mingw32) - so hardcode that underline is needed
123 sed -e 's/.*grep _hello.*/if false; then/' configure > configure.tmp
124 mv -f configure.tmp configure
130 AR="%{target}-ar rc" \
131 RANLIB="%{target}-ranlib" \
132 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
139 rm -rf $RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
143 prefix=$RPM_BUILD_ROOT%{arch}
145 install zutil.h $RPM_BUILD_ROOT%{arch}/include
148 rm -rf $RPM_BUILD_ROOT
151 %defattr(644,root,root,755)