3 # --without tetex - build without html documentation(don't request tetex)
5 Summary: Extremely powerful file compression utility
6 Summary(fr): Utilitaire de compression de fichier extrêmement puissant
7 Summary(pl): Kompresor plików bzip2
12 Group: Applications/Archiving
13 Group(de): Applikationen/Archivierung
14 Group(fr): Applications/Archivage
15 Group(pl): Aplikacje/Archiwizacja
16 Source0: ftp://sourceware.cygnus.com/pub/bzip2/v100/%{name}-%{version}.tar.gz
17 Source1: %{name}-non-english-man-pages.tar.bz2
18 Patch0: %{name}-libtoolizeautoconf.patch
19 %{!?_without_tetex:BuildRequires: tetex}
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libtool
23 URL: http://sourceware.cygnus.com/bzip2/
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
28 compression algorithm, and Huffman coding. Compression is generally
29 considerably better than that achieved by more conventional
30 LZ77/LZ78-based compressors, and approaches the performance of the PPM
31 family of statistical compressors. The command-line options are
32 deliberately very similar to those of GNU Gzip, but they are not
36 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
37 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
38 compression est considérablement meilleure que celle effectuée par les
39 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
40 performance de la famille PPM de compresseurs statistiques.
43 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
44 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
45 jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych
46 kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do
47 poleceñ GNU Gzip ale nie s± identyczne.
50 Summary: Libbz2 library header files
51 Summary(fr): Librairie statique et fichiers d'en-tête pour bzip2
52 Summary(pl): Pliki nag³ówkowe do libbz2
53 Group: Development/Libraries
54 Group(de): Entwicklung/Libraries
55 Group(fr): Development/Librairies
56 Group(pl): Programowanie/Biblioteki
57 Requires: %{name} = %{version}
60 Libbz2 library header files
62 %description -l pl devel
63 Pliki nag³ówkowe do libbz2.
66 Summary: Static libbz2 library
67 Summary(pl): Biblioteka statyczna libbz2
68 Group: Development/Libraries
69 Group(de): Entwicklung/Libraries
70 Group(fr): Development/Librairies
71 Group(pl): Programowanie/Biblioteki
72 Requires: %{name}-devel = %{version}
75 Static libbz2 library.
77 %description -l pl static
78 Biblioteka statyczna libbz2.
86 libtoolize --copy --force
93 rm -rf $RPM_BUILD_ROOT
95 %{__make} install DESTDIR=$RPM_BUILD_ROOT
97 # Substitute %{_bindir} in bzless.
98 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
99 sed -e "s@%%{_bindir}@%{_bindir}@g" \
100 $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
101 $RPM_BUILD_ROOT%{_bindir}/bzless
102 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
104 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
106 %{!?_without_tetex: ( cd doc ; texi2html bzip2.texi )}
108 gzip -9nf README* NEWS Y2K_INFO
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc README.gz Y2K_INFO.gz
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*
120 %attr(755,root,root) %{_bindir}/*
121 %lang(en) %{_mandir}/man1/*
122 %lang(es) %{_mandir}/es/man1/*
123 %lang(fr) %{_mandir}/fr/man1/*
124 %lang(hu) %{_mandir}/hu/man1/*
125 %lang(ja) %{_mandir}/ja/man1/*
126 %lang(ko) %{_mandir}/ko/man1/*
127 %lang(pl) %{_mandir}/pl/man1/*
130 %defattr(644,root,root,755)
131 %{!?_without_tetex: %doc doc/*.html}
132 %attr(755,root,root) %{_libdir}/lib*.so
136 %defattr(644,root,root,755)