]> git.pld-linux.org Git - packages/crossmingw32-zlib.git/blob - crossmingw32-zlib.spec
- restored debug support
[packages/crossmingw32-zlib.git] / crossmingw32-zlib.spec
1 #
2 # Conditional build:
3 %bcond_without  asmopt  # without assmbler optimization for i586+
4 #
5 %ifnarch i586 i686 athlon
6 %undefine       with_asmopt
7 %endif
8 %define         realname                zlib
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}
19 Version:        1.2.1
20 Release:        1
21 License:        BSD
22 Group:          Libraries
23 Source0:        http://www.gzip.org/zlib/%{realname}-%{version}.tar.gz
24 # Source0-md5:  ef1cb003448b4a53517b8f25adb12452
25 Patch0:         %{realname}-asmopt.patch
26 Patch1:         %{name}-shared.patch
27 URL:            http://www.zlib.org/
28 BuildRequires:  crossmingw32-gcc
29 Requires:       crossmingw32-runtime
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         no_install_post_strip   1
33
34 %define         target                  i386-mingw32
35 %define         arch                    %{_prefix}/%{target}
36
37 %define         __cc                    %{target}-gcc
38 %define         __cxx                   %{target}-g++
39
40 %description
41 The 'zlib' compression library provides in-memory compression and
42 decompression functions, including integrity checks of the
43 uncompressed data. This version of the library supports only one
44 compression method (deflation) but other algorithms may be added later
45 and will have the same stream interface.
46
47 %description -l de
48 Die zlib-Komprimierungs-Library bietet speicherinterne Komprimierungs-
49 und Dekomprimierungsfunktionen, einschließlich Integritätsprüfungen
50 der unkomprimierten Daten. Diese Version der Library unterstützt nur
51 eine Komprimierungsmethode (Deflation), doch können weitere
52 Algorithmen nachträglich eingefügt werden und haben dann dieselbe
53 Oberfläche.
54
55 %description -l es
56 La biblioteca de compresión 'zlib' nos ofrece funciones de compresión
57 y descompresión en memoria, incluyendo chequeo de la integridad de
58 datos no comprimidos. Esta versión de la biblioteca soporta solamente
59 un método de compresión (deflación) pero otros algoritmos pueden ser
60 añadidos más tarde y tendrán la misma interface. Esta biblioteca se
61 usa por varios programas de sistema.
62
63 %description -l fr
64 La bibliothèque de compression « zlib » offre des fonctions de
65 compression et de décompression en mémoire, ainsi qu'une vérification
66 de l'intégrité des données décompressées. La version de cette
67 bibliothèque ne gère qu'une méthode de compression (deflation), mais
68 d'autres algorithmes peuvent être ajoutés plus tard et auront la même
69 interface.
70
71 %description -l pl
72 Biblioteka zlib udostêpnia podprogramy do kompresji i dekompresji w
73 pamiêci operacyjnej w³±cznie ze sprawdzaniem integralno¶ci w trakcie
74 dekompresji. Ta wersja biblioteki udostêpnia tylko jedn± metodê
75 kompresji o nazwie deflation niemniej inne algorytmy mog± byæ
76 dodawane udostêpniaj±c taki sam interfejs funkcji operuj±cych na
77 strumieniu danych.
78
79 %description -l pt_BR
80 A biblioteca de compressão 'zlib' oferece funções de compressão e
81 descompressão em memória, incluindo checagem da integridade de dados
82 não comprimidos. Essa versão da biblioteca suporta somente um método
83 de compressão (deflação) mas outros algoritmos podem ser adicionados
84 mais tarde e terão a mesma interface. Essa biblioteca é usada por
85 vários programas de sistema.
86
87 %description -l ru
88 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
89 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
90 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
91 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
92 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
93
94 %description -l tr
95 zlib sýkýþtýrma kitaplýðý bellekte sýkýþtýrma ve açma fonksiyonlarý
96 içermektedir. Bu sürüm yalnýzca 'deflation' yöntemini
97 desteklemektedir. Ancak baþka algoritmalarýn ayný arabirimle
98 eriþilebilecek þekilde eklenme olasýlýðý vardýr. Bu kitaplýk bir dizi
99 sistem yazýlýmý tarafýndan kullanýlmaktadýr.
100
101 %description -l uk
102 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
103 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
104 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
105 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
106 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
107
108 %package dll
109 Summary:        zlib - DLL library for Windows
110 Summary(pl):    zlib - biblioteka DLL dla Windows
111 Group:          Applications/Emulators
112
113 %description dll
114 zlib - DLL library for Windows.
115
116 %description dll -l pl
117 zlib - biblioteka DLL dla Windows.
118
119 %prep
120 %setup -q -n %{realname}-%{version}
121 %patch1 -p1
122
123 %if %{with asmopt}
124 %patch0 -p1
125 %ifarch i686 athlon
126 cp contrib/asm686/match.S .
127 %endif
128 %ifarch i586
129 cp contrib/asm586/match.S .
130 %endif
131 %endif
132
133 # fix for underline test
134 #sed -e 's/nm/%{target}-nm/' configure > configure.tmp
135 # but it's broken anyway (tries to use mmap test remains, but there is no mmap
136 # in mingw32) - so hardcode that underline is needed
137 sed -e 's/.*grep _hello.*/if false; then/' configure > configure.tmp
138 mv -f configure.tmp configure
139 chmod +x configure
140
141 %build
142 CC="%{__cc}" \
143 CXX="%{__cxx}" \
144 AR="%{target}-ar rc" \
145 RANLIB="%{target}-ranlib" \
146 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
147 ./configure \
148         --prefix=%{arch}
149
150 %{__make}
151 %{__make} z.dll
152
153 %if 0%{!?debug:1}
154 %{target}-strip -R.comment -R.note z.dll
155 %{target}-strip -g -R.comment -R.note *.a
156 %endif
157
158 %install
159 rm -rf $RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
161 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
162
163 %{__make} install \
164         prefix=$RPM_BUILD_ROOT%{arch}
165
166 install zutil.h $RPM_BUILD_ROOT%{arch}/include
167 install libz.dll.a $RPM_BUILD_ROOT%{arch}/lib
168 install z.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
169
170 %clean
171 rm -rf $RPM_BUILD_ROOT
172
173 %files
174 %defattr(644,root,root,755)
175 %{arch}/include/*.h
176 %{arch}/lib/*
177
178 %files dll
179 %defattr(644,root,root,755)
180 %{_datadir}/wine/windows/system/*
This page took 0.091101 seconds and 4 git commands to generate.