]> git.pld-linux.org Git - packages/bzip2.git/blobdiff - bzip2.spec
- new libtoolizeautoconf (added bzgrep script).
[packages/bzip2.git] / bzip2.spec
index 9b5c512224f058acde6c0b30c336bdf1d49f32ae..57b009288d5fcc99c9996c16b7be335753a46055 100644 (file)
 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:       0.9.0c
+Version:       1.0.1
 Release:       2
-Copyright:     GPL
+License:       GPL
 Group:         Utilities/Archiving
+Group(fr):     Applications/Archivage
 Group(pl):     Narzêdzia/Archiwizacja
-URL:           http://www.digistar.com/bzip2
-Source:                %{name}-%{version}.tar.gz
-BuildRoot:     /tmp/%{name}-%{version}-root
+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
+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
-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.
+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 
+%setup -q
+%patch -p1
 
 %build
-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
-install *.a $RPM_BUILD_ROOT/usr/lib
-
-ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bunzip2
-ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bzcat
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-install bzip2.1 $RPM_BUILD_ROOT/usr/man/man1
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
 
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bunzip2.1
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzcat.1
-echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzip2recover.1
+gzip -9nf README* NEWS Y2K_INFO \
+       $RPM_BUILD_ROOT%{_mandir}/{,pl}/man1/*
 
-cat > $RPM_BUILD_ROOT/usr/bin/bzless <<EOF
-#!/bin/sh
-/usr/bin/bunzip2 -c "\$@" | /usr/bin/less
-EOF
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
-bzip2 -9  README
-gzip -9fn $RPM_BUILD_ROOT/usr/man/man1/*
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.bz2 *.html
-
-%attr(755,root,root) /usr/bin/*
-%attr(644,root, man) /usr/man/man1/*
+%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/*
 
-/usr/lib/*.a
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%files devel
+%defattr(644,root,root,755)
+%doc manual*html 
+%doc *.html
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
 
-%changelog
-* Fri Jan 15 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.9.0c-1d]
-- added Group(pl),
-- added static bzip2 library,
-- added symlink bzcat,
-- fixed man pages,
-- compressed %doc with bzip2 (bzip2 must be instaled in system ;) 
-
-* Mon Oct 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.9.0-1d]
-- updated to 0.9.0b. 
-
-* Thu Sep 24 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.1pl2-2d]
-- translation modified for pl,
-- install -d instead mkdir -p,
-- added %defattr support,
-- fixed files permissions,
-- minor modifications of the spec file.
-
-* Mon Jul 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [0.1pl2-2]
-- build against GNU libc-2.1.
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.076694 seconds and 4 git commands to generate.