]> git.pld-linux.org Git - packages/crossmingw32-zlib.git/blob - crossmingw32-zlib.spec
- rel 2 to rebuild with gcc 3.4.2
[packages/crossmingw32-zlib.git] / crossmingw32-zlib.spec
1 #
2 # Conditional build:
3 %bcond_without  asmopt  # without assmbler optimization for i586+
4 #
5 # disable asmopt where not applicable
6 %ifarch i386 i486
7 %undefine       with_asmopt
8 %endif
9 %ifnarch %{ix86}
10 %undefine       with_asmopt
11 %endif
12 %define         realname                zlib
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}
23 Version:        1.2.1.1
24 Release:        2
25 License:        BSD
26 Group:          Libraries
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)
37
38 %define         no_install_post_strip   1
39
40 %define         target                  i386-mingw32
41 %define         arch                    %{_prefix}/%{target}
42
43 %define         __cc                    %{target}-gcc
44 %define         __cxx                   %{target}-g++
45
46 %ifarch alpha sparc sparc64 sparcv9
47 %define         optflags        -O2
48 %endif
49
50 %description
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.
56
57 %description -l de
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
63 Oberfläche.
64
65 %description -l es
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.
72
73 %description -l fr
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
79 interface.
80
81 %description -l pl
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
87 strumieniu danych.
88
89 %description -l pt_BR
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.
96
97 %description -l ru
98 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
99 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
100 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
101 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
102 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
103
104 %description -l tr
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.
110
111 %description -l uk
112 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
113 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
114 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
115 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
116 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
117
118 %package dll
119 Summary:        zlib - DLL library for Windows
120 Summary(pl):    zlib - biblioteka DLL dla Windows
121 Group:          Applications/Emulators
122
123 %description dll
124 zlib - DLL library for Windows.
125
126 %description dll -l pl
127 zlib - biblioteka DLL dla Windows.
128
129 %prep
130 %setup -q -n %{realname}-%{version}
131 %patch2 -p1
132
133 %if %{with asmopt}
134 %patch0 -p1
135 %patch1 -p1
136 %ifarch i686 athlon
137 cp contrib/asm686/match.S .
138 %endif
139 %ifarch i586
140 cp contrib/asm586/match.S .
141 %endif
142 %endif
143
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
150 chmod +x configure
151
152 %build
153 CC="%{__cc}" \
154 CXX="%{__cxx}" \
155 AR="%{target}-ar rc" \
156 RANLIB="%{target}-ranlib" \
157 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
158 ./configure \
159         --prefix=%{arch}
160
161 %{__make}
162 %{__make} z.dll
163
164 %if 0%{!?debug:1}
165 %{target}-strip -R.comment -R.note z.dll
166 %{target}-strip -g -R.comment -R.note *.a
167 %endif
168
169 %install
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
173
174 %{__make} install \
175         prefix=$RPM_BUILD_ROOT%{arch}
176
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
180
181 %clean
182 rm -rf $RPM_BUILD_ROOT
183
184 %files
185 %defattr(644,root,root,755)
186 %{arch}/include/*.h
187 %{arch}/lib/*
188
189 %files dll
190 %defattr(644,root,root,755)
191 %{_datadir}/wine/windows/system/*
This page took 0.066734 seconds and 4 git commands to generate.