3 %bcond_with progress # with progressbar patch
4 %bcond_without static_libs # don't build static libraries
6 Summary: Extremely powerful file compression utility
7 Summary(es.UTF-8): Un compresor de archivos con un nuevo algoritmo
8 Summary(fr.UTF-8): Utilitaire de compression de fichier extrêmement puissant
9 Summary(pl.UTF-8): Kompresor plików bzip2
10 Summary(pt_BR.UTF-8): Compactador de arquivo extremamente poderoso
11 Summary(uk.UTF-8): Компресор файлів на базі алгоритму блочного сортування
12 Summary(ru.UTF-8): Компрессор файлов на основе алгоритма блочной сортировки
18 Group: Applications/Archiving
19 Source0: http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
20 # Source0-md5: 3c15a0c8d1d3ee1c46a1634d00617b1a
21 Source1: http://qboosh.pl/man/%{name}-man-pages.tar.bz2
22 # Source1-md5: 14a68bf85666428000aad7cb0785a6e5
23 Patch0: %{name}-libtoolizeautoconf.patch
24 Patch1: %{name}-bzgrep.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 >= 2.50
29 BuildRequires: automake >= 1:1.6
30 BuildRequires: libtool
31 BuildRequires: rpmbuild(macros) >= 1.213
32 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define specflags_ia32 -fomit-frame-pointer
38 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
39 compression algorithm, and Huffman coding. Compression is generally
40 considerably better than that achieved by more conventional
41 LZ77/LZ78-based compressors, and approaches the performance of the PPM
42 family of statistical compressors. The command-line options are
43 deliberately very similar to those of GNU Gzip, but they are not
46 %description -l es.UTF-8
47 Bzip2 es un programa de compresión/descompresión. Típicamente el
48 archivo compactado queda entre 20 la 30 por ciento menor de que se
49 fuera compactado con gzip. Observa que bzip2 no entiende los archivos
50 del bzip original, ni los archivos del gzip.
52 %description -l fr.UTF-8
53 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
54 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
55 compression est considérablement meilleure que celle effectuée par les
56 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
57 performance de la famille PPM de compresseurs statistiques.
59 %description -l pl.UTF-8
60 Kompresor bzip2 używa algorytmu Burrows-Wheelera do kompresji danych i
61 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
62 jest z reguły lepsza niż w przypadku stosowania klasycznych
63 kompresorów LZ77/LZ78. Opcje linii poleceń są bardzo podobne do
64 poleceń GNU Gzip ale nie są identyczne.
66 %description -l pt_BR.UTF-8
67 Bzip2 é um programa de compressão/descompressão. Tipicamente o arquivo
68 compactado fica 20 a 30 por cento menor do que se fosse compactado com
71 Note que o bzip2 não entende os arquivos do bzip original, nem os
74 %description -l ru.UTF-8
75 bzip2 компрессирует файлы используя компрессирующий текстовый алгоритм
76 блочной сортировки Burrows-Wheeler и кодирование Huffman'а.
77 Достигаемая компрессия обычно существенно лучше достигаемой более
78 привычными компрессорами на основе LZ77/LZ78 и приближается к той,
79 которую обеспечивает семейство статистических компрессоров PPM.
81 %description -l uk.UTF-8
82 bzip2 компресує файли використовуючи текстовий алгоритм блочного
83 сортування Burrows-Wheeler та кодування Huffman'а. Компресія, яка
84 досягається bzip2, як правило краща за ту, що забезпечують
85 розповсюджені компресори на базі LZ77/LZ78 і наближається до тої, що
86 її забезпечує сімейство статистичних компресорів PPM.
89 Summary: libbz2 library
90 Summary(fr.UTF-8): Librairie libbz2
91 Summary(pl.UTF-8): Biblioteka libbz2
93 %ifarch %{x8664} ia64 ppc64 s390x sparc64
94 Provides: libbz2.so.1.0()(64bit)
96 Provides: libbz2.so.1.0
99 Conflicts: bzip2 < 0:1.0.2-12
104 %description libs -l fr.UTF-8
107 %description libs -l pl.UTF-8
111 Summary: libbz2 library header files
112 Summary(fr.UTF-8): Fichiers d'en-tête pour bzip2
113 Summary(pl.UTF-8): Pliki nagłówkowe do libbz2
114 Summary(pt_BR.UTF-8): Arquivos de inclusão para o bzip2
115 Summary(uk.UTF-8): Хедери, необхідні для програмування з libbz2
116 Summary(ru.UTF-8): Хедеры, необходимые для программирования с libbz2
117 Group: Development/Libraries
118 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
119 Obsoletes: libbzip2-devel
122 Libbz2 library header files.
124 %description devel -l pl.UTF-8
125 Pliki nagłówkowe do libbz2.
127 %description devel -l pt_BR.UTF-8
128 Este pacote inclui arquivos de inclusão necessário para o
129 desenvolvimento de programas que usam o bzip2.
131 %description devel -l ru.UTF-8
132 Этот пакет содержит библиотеку и хедеры, необходимые для разработки
133 программ, включающих подпрограммы компрессии/декомпрессии bz2.
135 %description devel -l uk.UTF-8
136 Цей пакет містить бібліотеку та хедери, необхідні для розробки
137 програм, які включають підпрограми компресії/декомпресії bz2.
140 Summary: Static libbz2 library
141 Summary(fr.UTF-8): Librairie statique libbz2
142 Summary(pl.UTF-8): Biblioteka statyczna libbz2
143 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a bzip2
144 Summary(ru.UTF-8): Статические библиотеки bzip2
145 Summary(uk.UTF-8): Статичні бібліотеки bzip2
146 Group: Development/Libraries
147 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
150 Static libbz2 library.
152 %description static -l fr.UTF-8
153 Librairie statique d'en-tête pour bzip2.
155 %description static -l pl.UTF-8
156 Biblioteka statyczna libbz2.
158 %description static -l pt_BR.UTF-8
159 Bibliotecas estáticas para desenvolvimento com a bzip2.
161 %description static -l uk.UTF-8
162 Це окремий пакет зі статичними бібліотеками.
164 %description static -l ru.UTF-8
165 Это отдельный пакет со статическими библиотеками.
171 %{?with_progress:%patch2 -p1}
180 %{!?with_static_libs:--disable-static}
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT/%{_lib}
188 DESTDIR=$RPM_BUILD_ROOT
190 mv -f $RPM_BUILD_ROOT%{_libdir}/libbz2.so.* $RPM_BUILD_ROOT/%{_lib}
191 ln -sf /%{_lib}/libbz2.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
193 # standard soname was libbz2.so.1.0, libtoolizeautoconf patch broke it,
194 # but ABI has not changed - provide symlink for binary compatibility
195 ln -sf libbz2.so.1.0.0 $RPM_BUILD_ROOT/%{_lib}/libbz2.so.1.0
197 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
200 rm -rf $RPM_BUILD_ROOT
202 %post libs -p /sbin/ldconfig
203 %postun libs -p /sbin/ldconfig
206 %defattr(644,root,root,755)
207 %doc CHANGES LICENSE README manual.html
208 %attr(755,root,root) %{_bindir}/bunzip2
209 %attr(755,root,root) %{_bindir}/bzcat
210 %attr(755,root,root) %{_bindir}/bzcmp
211 %attr(755,root,root) %{_bindir}/bzdiff
212 %attr(755,root,root) %{_bindir}/bzegrep
213 %attr(755,root,root) %{_bindir}/bzfgrep
214 %attr(755,root,root) %{_bindir}/bzgrep
215 %attr(755,root,root) %{_bindir}/bzip2
216 %attr(755,root,root) %{_bindir}/bzip2recover
217 %attr(755,root,root) %{_bindir}/bzless
218 %attr(755,root,root) %{_bindir}/bzmore
219 %{_mandir}/man1/bunzip2.1*
220 %{_mandir}/man1/bzcat.1*
221 %{_mandir}/man1/bzcmp.1*
222 %{_mandir}/man1/bzdiff.1*
223 %{_mandir}/man1/bzegrep.1*
224 %{_mandir}/man1/bzfgrep.1*
225 %{_mandir}/man1/bzgrep.1*
226 %{_mandir}/man1/bzless.1*
227 %{_mandir}/man1/bzmore.1*
228 %{_mandir}/man1/bzip2.1*
229 %{_mandir}/man1/bzip2recover.1*
230 %lang(cs) %{_mandir}/cs/man1/*
231 %lang(es) %{_mandir}/es/man1/*
232 %lang(fr) %{_mandir}/fr/man1/*
233 %lang(hu) %{_mandir}/hu/man1/*
234 %lang(it) %{_mandir}/it/man1/*
235 %lang(ja) %{_mandir}/ja/man1/*
236 %lang(ko) %{_mandir}/ko/man1/*
237 %lang(pl) %{_mandir}/pl/man1/*
238 %lang(tr) %{_mandir}/tr/man1/*
239 %lang(zh_CN) %{_mandir}/zh_CN/man1/*
242 %defattr(644,root,root,755)
243 %attr(755,root,root) /%{_lib}/libbz2.so.*.*.*
244 %attr(755,root,root) /%{_lib}/libbz2.so.1.0
245 %attr(755,root,root) %ghost /%{_lib}/libbz2.so.1
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libbz2.so
251 %{_includedir}/bzlib.h
252 %{_includedir}/bzlib_private.h
254 %if %{with static_libs}
256 %defattr(644,root,root,755)