]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- added without doc bcond
[packages/bzip2.git] / bzip2.spec
1
2 # Conditional build:
3 %bcond_with     progress        # with progressbar patch
4 %bcond_without  doc             # don't build tex documentation
5 #
6 Summary:        Extremely powerful file compression utility
7 Summary(es):    Un compresor de archivos con un nuevo algoritmo
8 Summary(fr):    Utilitaire de compression de fichier extrêmement puissant
9 Summary(pl):    Kompresor plików bzip2
10 Summary(pt_BR): Compactador de arquivo extremamente poderoso
11 Summary(uk):    ëÏÍÐÒÅÓÏÒ ÆÁÊ̦נÎÁ ÂÁÚ¦ ÁÌÇÏÒÉÔÍÕ ÂÌÏÞÎÏÇÏ ÓÏÒÔÕ×ÁÎÎÑ
12 Summary(ru):    ëÏÍÐÒÅÓÓÏÒ ÆÁÊÌÏ× ÎÁ ÏÓÎÏ×Å ÁÌÇÏÒÉÔÍÁ ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ
13 Name:           bzip2
14 Version:        1.0.3
15 Release:        4
16 Epoch:          0
17 License:        BSD-like
18 Group:          Applications/Archiving
19 Source0:        http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
20 # Source0-md5:  8a716bebecb6e647d2e8a29ea5d8447f
21 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
22 # Source1-md5:  5ffc3dbdd40080a8c22c3b4c3143cdd7
23 Patch0:         %{name}-libtoolizeautoconf.patch
24 Patch1:         %{name}-toctou.patch
25 # Modified from http://www.vanheusden.com/Linux/bzip2-1.0.2.diff.gz
26 Patch2:         %{name}-progress-counter-1.0.2.patch
27 URL:            http://www.bzip.org/
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  libtool
31 BuildRequires:  rpmbuild(macros) >= 1.213
32 %{?with_doc:BuildRequires:      tetex}
33 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         specflags_ia32  -fomit-frame-pointer
37
38 %description
39 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
40 compression algorithm, and Huffman coding. Compression is generally
41 considerably better than that achieved by more conventional
42 LZ77/LZ78-based compressors, and approaches the performance of the PPM
43 family of statistical compressors. The command-line options are
44 deliberately very similar to those of GNU Gzip, but they are not
45 identical.
46
47 %description -l es
48 Bzip2 es un programa de compresión/descompresión. Típicamente el
49 archivo compactado queda entre 20 la 30 por ciento menor de que se
50 fuera compactado con gzip. Observa que bzip2 no entiende los archivos
51 del bzip original, ni los archivos del gzip.
52
53 %description -l fr
54 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
55 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
56 compression est considérablement meilleure que celle effectuée par les
57 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
58 performance de la famille PPM de compresseurs statistiques.
59
60 %description -l pl
61 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
62 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
63 jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych
64 kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do
65 poleceñ GNU Gzip ale nie s± identyczne.
66
67 %description -l pt_BR
68 Bzip2 é um programa de compressão/descompressão. Tipicamente o arquivo
69 compactado fica 20 a 30 por cento menor do que se fosse compactado com
70 o gzip.
71
72 Note que o bzip2 não entende os arquivos do bzip original, nem os
73 arquivos do gzip.
74
75 %description -l ru
76 bzip2 ËÏÍÐÒÅÓÓÉÒÕÅÔ ÆÁÊÌÙ ÉÓÐÏÌØÚÕÑ ËÏÍÐÒÅÓÓÉÒÕÀÝÉÊ ÔÅËÓÔÏ×ÙÊ ÁÌÇÏÒÉÔÍ
77 ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ Burrows-Wheeler É ËÏÄÉÒÏ×ÁÎÉÅ Huffman'Á.
78 äÏÓÔÉÇÁÅÍÁÑ ËÏÍÐÒÅÓÓÉÑ ÏÂÙÞÎÏ ÓÕÝÅÓÔ×ÅÎÎÏ ÌÕÞÛÅ ÄÏÓÔÉÇÁÅÍÏÊ ÂÏÌÅÅ
79 ÐÒÉ×ÙÞÎÙÍÉ ËÏÍÐÒÅÓÓÏÒÁÍÉ ÎÁ ÏÓÎÏ×Å LZ77/LZ78 É ÐÒÉÂÌÉÖÁÅÔÓÑ Ë ÔÏÊ,
80 ËÏÔÏÒÕÀ ÏÂÅÓÐÅÞÉ×ÁÅÔ ÓÅÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÅÓËÉÈ ËÏÍÐÒÅÓÓÏÒÏ× PPM.
81
82 %description -l uk
83 bzip2 ËÏÍÐÒÅÓÕ¤ ÆÁÊÌÉ ×ÉËÏÒÉÓÔÏ×ÕÀÞÉ ÔÅËÓÔÏ×ÉÊ ÁÌÇÏÒÉÔÍ ÂÌÏÞÎÏÇÏ
84 ÓÏÒÔÕ×ÁÎÎÑ Burrows-Wheeler ÔÁ ËÏÄÕ×ÁÎÎÑ Huffman'Á. ëÏÍÐÒÅÓ¦Ñ, ÑËÁ
85 ÄÏÓÑÇÁ¤ÔØÓÑ bzip2, ÑË ÐÒÁ×ÉÌÏ ËÒÁÝÁ ÚÁ ÔÕ, ÝÏ ÚÁÂÅÚÐÅÞÕÀÔØ
86 ÒÏÚÐÏ×ÓÀÄÖÅΦ ËÏÍÐÒÅÓÏÒÉ ÎÁ ÂÁÚ¦ LZ77/LZ78 ¦ ÎÁÂÌÉÖÁ¤ÔØÓÑ ÄÏ Ôϧ, ÝÏ
87 §§ ÚÁÂÅÚÐÅÞÕ¤ Ó¦ÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÎÉÈ ËÏÍÐÒÅÓÏҦנPPM.
88
89 %package libs
90 Summary:        libbz2 library
91 Summary(fr):    Librairie libbz2
92 Summary(pl):    Biblioteka libbz2
93 Group:          Libraries
94 %ifarch %{x8664} ia64 ppc64 s390x sparc64
95 Provides:       libbz2.so.1.0()(64bit)
96 %else
97 Provides:       libbz2.so.1.0
98 %endif
99 Obsoletes:      libbzip2
100 Conflicts:      bzip2 < 0:1.0.2-12
101
102 %description libs
103 libbz2 library.
104
105 %description libs -l fr
106 Librairie libbz2.
107
108 %description libs -l pl
109 Biblioteka libbz2.
110
111 %package devel
112 Summary:        libbz2 library header files
113 Summary(fr):    Fichiers d'en-tête pour bzip2
114 Summary(pl):    Pliki nag³ówkowe do libbz2
115 Summary(pt_BR): Arquivos de inclusão para o bzip2
116 Summary(uk):    èÅÄÅÒÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libbz2
117 Summary(ru):    èÅÄÅÒÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libbz2
118 Group:          Development/Libraries
119 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
120 Obsoletes:      libbzip2-devel
121
122 %description devel
123 Libbz2 library header files.
124
125 %description devel -l pl
126 Pliki nag³ówkowe do libbz2.
127
128 %description devel -l pt_BR
129 Este pacote inclui arquivos de inclusão necessário para o
130 desenvolvimento de programas que usam o bzip2.
131
132 %description devel -l ru
133 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ É ÈÅÄÅÒÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
134 ÐÒÏÇÒÁÍÍ, ×ËÌÀÞÁÀÝÉÈ ÐÏÄÐÒÏÇÒÁÍÍÙ ËÏÍÐÒÅÓÓÉÉ/ÄÅËÏÍÐÒÅÓÓÉÉ bz2.
135
136 %description devel -l uk
137 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠ¦Â̦ÏÔÅËÕ ÔÁ ÈÅÄÅÒÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
138 ÐÒÏÇÒÁÍ, Ñ˦ ×ËÌÀÞÁÀÔؠЦÄÐÒÏÇÒÁÍÉ ËÏÍÐÒÅÓ¦§/ÄÅËÏÍÐÒÅÓ¦§ bz2.
139
140 %package static
141 Summary:        Static libbz2 library
142 Summary(fr):    Librairie statique libbz2
143 Summary(pl):    Biblioteka statyczna libbz2
144 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a bzip2
145 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ bzip2
146 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ bzip2
147 Group:          Development/Libraries
148 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
149
150 %description static
151 Static libbz2 library.
152
153 %description static -l fr
154 Librairie statique d'en-tête pour bzip2.
155
156 %description static -l pl
157 Biblioteka statyczna libbz2.
158
159 %description static -l pt_BR
160 Bibliotecas estáticas para desenvolvimento com a bzip2.
161
162 %description static -l uk
163 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ.
164
165 %description static -l ru
166 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ.
167
168 %prep
169 %setup -q
170 %patch0 -p1
171 %patch1 -p1
172 %{?with_progress:%patch2 -p1}
173
174 %build
175 %{__aclocal}
176 %{__libtoolize}
177 %{__automake}
178 %{__autoconf}
179 %configure \
180         CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
181 %{__make}
182
183 %if %{with doc}
184 cd doc
185 /usr/bin/texi2html bzip2.texi
186 cd ..
187 %endif
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT/%{_lib}
192
193 %{__make} install \
194         DESTDIR=$RPM_BUILD_ROOT
195
196 # Substitute %{_bindir} in bzless.
197 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
198 sed -e "s@%%{_bindir}@%{_bindir}@g" \
199         $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
200         $RPM_BUILD_ROOT%{_bindir}/bzless
201 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
202
203 mv -f $RPM_BUILD_ROOT%{_libdir}/libbz2.so.* $RPM_BUILD_ROOT/%{_lib}
204 ln -sf /%{_lib}/libbz2.so.1.0.0 $RPM_BUILD_ROOT/%{_libdir}/libbz2.so
205
206 # standard soname was libbz2.so.1.0, libtoolizeautoconf patch broke it,
207 # but ABI has not changed - provide symlink for binary compatibility
208 ln -sf libbz2.so.1.0.0 $RPM_BUILD_ROOT/%{_lib}/libbz2.so.1.0
209
210 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
211
212 %clean
213 rm -rf $RPM_BUILD_ROOT
214
215 %post   libs -p /sbin/ldconfig
216 %postun libs -p /sbin/ldconfig
217
218 %files
219 %defattr(644,root,root,755)
220 %doc CHANGES LICENSE README* Y2K_INFO %{?with_doc:doc/*.html}
221 %attr(755,root,root) %{_bindir}/*
222 %{_mandir}/man1/*
223 %lang(es) %{_mandir}/es/man1/*
224 %lang(fr) %{_mandir}/fr/man1/*
225 %lang(hu) %{_mandir}/hu/man1/*
226 %lang(ja) %{_mandir}/ja/man1/*
227 %lang(ko) %{_mandir}/ko/man1/*
228 %lang(pl) %{_mandir}/pl/man1/*
229
230 %files libs
231 %defattr(644,root,root,755)
232 %attr(755,root,root) /%{_lib}/lib*.so.*.*.*
233 %attr(755,root,root) /%{_lib}/lib*.so.1.0
234
235 %files devel
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/lib*.so
238 %{_libdir}/lib*.la
239 %{_includedir}/*.h
240
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/lib*.a
This page took 0.102667 seconds and 4 git commands to generate.