X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bzip2.spec;h=57b009288d5fcc99c9996c16b7be335753a46055;hb=010b16d9e20345a62805b84cd2ee69f872673162;hp=25eb25d640f049a8d61c30fba0f9aef1ba85499e;hpb=e779c7d5d42af425bc078ba9b08c26b372fe0412;p=packages%2Fbzip2.git diff --git a/bzip2.spec b/bzip2.spec index 25eb25d..57b0092 100644 --- a/bzip2.spec +++ b/bzip2.spec @@ -1,83 +1,117 @@ -Summary: Extremely powerful file compression utility -Summary(pl): Extremalnie wydajny program do kompresowania plików -Name: bzip2 -Version: 0.9.0b -Release: 3 -Copyright: Distributable (see LICENSE) -Vendor: Julian Seward -Group: Utilities/Archiving -Group(pl): Narzêdzia/Archiwizacja -Source: http://www.muraroa.demon.co.uk/%{name}-%{version}.tar.gz -BuildRoot: /tmp/%{name}-%{version}-root +Summary: Extremely powerful file compression utility +Summary(fr): Utilitaire de compression de fichier extrêmement puissant +Summary(pl): Kompresor plików bzip2 +Name: bzip2 +Version: 1.0.1 +Release: 2 +License: GPL +Group: Utilities/Archiving +Group(fr): Applications/Archivage +Group(pl): Narzêdzia/Archiwizacja +Source0: ftp://sourceware.cygnus.com/pub/bzip2/v100/%{name}-%{version}.tar.gz +Patch0: bzip2-libtoolizeautoconf.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +URL: http://sourceware.cygnus.com/bzip2/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Bzip2 compresses files using the Burrows-Wheeler block-sorting text compression algorithm, and Huffman coding. Compression is generally -considerably better than that achieved by more conventional LZ77/LZ78-based -compressors, and approaches the performance of the PPM family of statistical -compressors. - -The command-line options are deliberately very similar to those of GNU Gzip, -but they are not identical. +considerably better than that achieved by more conventional +LZ77/LZ78-based compressors, and approaches the performance of the PPM +family of statistical compressors. The command-line options are +deliberately very similar to those of GNU Gzip, but they are not +identical. + +%description -l fr +Bzip2 compresse des fichiers en utilisant l'algorithme de compression +en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La +compression est considérablement meilleure que celle effectuée par les +plus conventionels compresseurs basés sur LZ77/LZ78, et approche la +performance de la famille PPM de compresseurs statistiques. %description -l pl -Bzip2 kompresuje pliki u¿ywaj±c algorymtu kompresji blokowego-sortowania tekstu -Burrows-Wheeler'a oraz kodowania Huffmana. Generalnie kompresja jest znacznie -lepsza ni¿ w konwencjonalnych kompresorach u¿ywaj±cych algorytmów LZ77/LZ78 -i zbli¿a siê do wydajno¶ci statystycznych kompresorów z rodziny PPM. +Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i +metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar +jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych +kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do +poleceñ GNU Gzip ale nie s± identyczne. + +%package devel +Summary: Libbz2 library header files +Summary(fr): Librairie statique et fichiers d'en-tête pour bzip2 +Summary(pl): Pliki nag³ówkowe do libbz2 +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} + +%description devel +Libbz2 library header files + +%description -l pl devel +Pliki nag³ówkowe do libbz2. + +%package static +Summary: Static libbz2 library +Summary(pl): Biblioteka statyczna libbz2 +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version} + +%description static +Static libbz2 library. + +%description -l pl static +Biblioteka statyczna libbz2. %prep %setup -q +%patch -p1 %build -mkdir shared -make CFLAGS="$RPM_OPT_FLAGS" +aclocal +libtoolize --copy --force +automake -a -c +autoconf +LDFLAGS="-s"; export LDFLAGS +%configure +%{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{bin,lib,man/man1} -install -s bzip2 bzip2recover $RPM_BUILD_ROOT/usr/bin +%{__make} install DESTDIR=$RPM_BUILD_ROOT -ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bunzip2 +strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.* -install bzip2.1 $RPM_BUILD_ROOT/usr/man/man1 -echo ".so bzip2.1" > $RPM_BUILD_ROOT/usr/man/man1/bunzip2.1 +gzip -9nf README* NEWS Y2K_INFO \ + $RPM_BUILD_ROOT%{_mandir}/{,pl}/man1/* -cat > $RPM_BUILD_ROOT/usr/bin/bzless < - [0.9.0b-3] -- added %clean section. - -* Sat Sep 26 1998 Arkadiusz Mi¶kiewicz - [0.9.0b-2] -- added pl translation. - -* Mon Sep 7 1998 Tomasz K³oczko - [0.9-1] -- changed base source Url to http://www.muraroa.demon.co.uk/, -- changed Copyright, -- added Vendor. - -* Thu Aug 13 1998 Tomasz K³oczko - [0.1pl2-3] -- added -q %setup parameter, -- changed Buildroot to /tmp/%%{name}-%%{version}-root, -- added using %%{name} and %%{version} in Source, -- bunzip2(1) man page is now maked as nroff include to bzip(1) instead - making sym link to bzip2.1 (this allow compress man pages in future), -- added %attr and %defattr macros in %files (allows build package from - non-root account). +%defattr(644,root,root,755) +%doc CHANGES.gz README.gz Y2K_INFO.gz +%attr(755,root,root) %{_libdir}/lib*.so.*.* +%attr(755,root,root) %{_bindir}/* +%lang(en) %{_mandir}/man1/* +%lang(pl) %{_mandir}/pl/man1/* + +%files devel +%defattr(644,root,root,755) +%doc manual*html +%doc *.html +%attr(755,root,root) %{_libdir}/lib*.so +%{_includedir}/*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a