]> git.pld-linux.org Git - packages/crossmingw32-zlib.git/blob - crossmingw32-zlib.spec
2cce46134bdb8612a5da85fc9d3cf5deccdd3cc9
[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 URL:            http://www.zlib.org/
27 BuildRequires:  crossmingw32-gcc
28 BuildRoot:      %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
29
30 %define         no_install_post_strip   1
31
32 %define         target                  i386-mingw32
33 %define         arch                    %{_prefix}/%{target}
34
35 %define         __cc                    %{target}-gcc
36 %define         __cxx                   %{target}-g++
37
38 %description
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.
44
45 %description -l de
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
51 Oberfläche.
52
53 %description -l es
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.
60
61 %description -l fr
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
67 interface.
68
69 %description -l pl
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
75 strumieniu danych.
76
77 %description -l pt_BR
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.
84
85 %description -l ru
86 âÉÂÌÉÏÔÅËÁ ËÏÍÐÒÅÓÓÉÉ zlib ÓÏÄÅÒÖÉÔ ÆÕÎËÃÉÉ ËÏÍÐÒÅÓÓÉÉ É ÄÅËÏÍÐÒÅÓÓÉÉ
87 × ÐÁÍÑÔÉ, ×ËÌÀÞÁÀ ÐÒÏ×ÅÒËÕ ÃÅÌÏÓÔÎÏÓÔÉ ÄÅËÏÍÐÒÅÓÓÉÒÏ×ÁÎÎÙÈ ÄÁÎÎÙÈ. üÔÁ
88 ×ÅÒÓÉÑ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÏÌØËÏ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓÓÉÉ (deflation), ÎÏ
89 ×ÐÏÓÌÅÄÓÔ×ÉÉ × ÎÅÅ ÍÏÇÕÔ ÂÙÔØ ÄÏÂÁ×ÌÅÎÙ É ÄÒÕÇÉÅ ÍÅÔÏÄÙ, É ×ÓÅ ÏÎÉ
90 ÂÕÄÕÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÔ ÖÅ ÐÏÔÏËÏ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
91
92 %description -l tr
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.
98
99 %description -l uk
100 â¦Â̦ÏÔÅËÁ ËÏÍÐÒÅÓ¦§ zlib Í¦ÓÔÉÔØ ÆÕÎË槠ËÏÍÐÒÅÓ¦§ ÔÁ ÄÅËÏÍÐÒÅÓ¦§ ×
101 ÐÁÍ'ÑÔ¦ Ú ÐÅÒÅצÒËÏÀ Ã¦ÌÏÓÔ¦ ÄÅËÏÍÐÒÅÓÏ×ÁÎÉÈ ÄÁÎÉÈ. ãÑ ×ÅÒÓ¦Ñ
102 ЦÄÔÒÉÍÕ¤ Ô¦ÌØËÉ ÏÄÉΠÍÅÔÏÄ ËÏÍÐÒÅÓ¦§ (deflation), ÁÌÅ × ÍÁÊÂÕÔÎØÏÍÕ ×
103 Îŧ ÍÏÖÕÔØ ÂÕÔÉ ÄÏÄÁΦ ¦ ¦ÎÛ¦ ÍÅÔÏÄÉ ¦ ×Ó¦ ×ÏÎÉ ÂÕÄÕÔØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
104 ÔÏÊ ÖÅ ÓÁÍÉÊ ÐÏÔÏËÏ×ÉÊ ¦ÎÔÅÒÆÅÊÓ.
105
106 %prep
107 %setup -q -n %{realname}-%{version}
108
109 %if %{with asmopt}
110 %patch0 -p1
111 %ifarch i686 athlon
112 cp contrib/asm686/match.S .
113 %endif
114 %ifarch i586
115 cp contrib/asm586/match.S .
116 %endif
117 %endif
118
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
125 chmod +x configure
126
127 %build
128 CC="%{__cc}" \
129 CXX="%{__cxx}" \
130 AR="%{target}-ar rc" \
131 RANLIB="%{target}-ranlib" \
132 CFLAGS="-D_REENTRANT %{rpmcflags}%{?with_asmopt: -DASMV}" \
133 ./configure \
134         --prefix=%{arch}
135
136 %{__make}
137
138 %install
139 rm -rf $RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT%{arch}{/lib,/include}
141
142 %{__make} install \
143         prefix=$RPM_BUILD_ROOT%{arch}
144
145 install zutil.h $RPM_BUILD_ROOT%{arch}/include
146
147 %clean
148 rm -rf $RPM_BUILD_ROOT
149
150 %files
151 %defattr(644,root,root,755)
152 %{arch}/include/*.h
153 %{arch}/lib/libz.a
This page took 0.061838 seconds and 2 git commands to generate.