]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- bump to release 4 (to allow upgrade from RH 6.2),
[packages/bzip2.git] / bzip2.spec
1 Summary:        Extremely powerful file compression utility
2 Summary(fr):    Utilitaire de compression de fichier extrêmement puissant
3 Summary(pl):    Kompresor plików bzip2
4 Name:           bzip2
5 Version:        0.9.5d
6 Release:        4
7 License:        GPL
8 Group:          Utilities/Archiving
9 Group(fr):      Applications/Archivage
10 Group(pl):      Narzêdzia/Archiwizacja
11 Source0:        http://www.digistar.com/bzip2/%{name}-%{version}.tar.gz
12 Patch0:         bzip2-shlib.patch
13 URL:            http://www.muraroa.demon.co.uk/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
18 compression algorithm, and Huffman coding. Compression is generally
19 considerably better than that achieved by more conventional LZ77/LZ78-based
20 compressors, and approaches the performance of the PPM family of
21 statistical compressors. The command-line options are deliberately very
22 similar to those of GNU Gzip, but they are not identical.
23
24 %description -l fr
25 Bzip2 compresse des fichiers en utilisant l'algorithme de compression en
26 tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
27 compression est considérablement meilleure que celle effectuée par les plus
28 conventionels compresseurs basés sur LZ77/LZ78, et approche la performance
29 de la famille PPM de compresseurs statistiques.
30
31 %description -l pl
32 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
33 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar jest z
34 regu³y lepsza ni¿ w przypadku stosowania klasycznych kompresorów LZ77/LZ78.
35 Opcje linii poleceñ s± bardzo podobne do poleceñ GNU Gzip ale nie s±
36 identyczne.
37
38 %package devel
39 Summary:        Libbz2 library header files
40 Summary(fr):    Librairie statique et fichiers d'en-tête pour bzip2
41 Summary(pl):    Pliki nag³ówkowe do libbz2
42 Group:          Development/Libraries
43 Group(fr):      Development/Librairies
44 Group(pl):      Programowanie/Biblioteki
45 Requires:       %{name} = %{version}
46
47 %description devel
48 Libbz2 library header files
49
50 %description -l pl devel
51 Pliki nag³ówkowe do libbz2.
52
53 %package static
54 Summary:        Static libbz2 library
55 Summary(pl):    Biblioteka statyczna libbz2
56 Group:          Development/Libraries
57 Group(fr):      Development/Librairies
58 Group(pl):      Programowanie/Biblioteki
59 Requires:       %{name}-devel = %{version}
60
61 %description static
62 Static libbz2 library.
63
64 %description -l pl static
65 Biblioteka statyczna libbz2.
66
67 %prep
68 %setup -q
69 %patch -p1
70
71 %build
72 make CFLAGS="$RPM_OPT_FLAGS"
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir},%{_mandir}/man1}
77
78 install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT%{_bindir}
79
80 ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2
81 ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat
82
83 install bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1
84 install bzlib.h $RPM_BUILD_ROOT%{_includedir}
85
86 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
87 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
88 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
89
90 cat > $RPM_BUILD_ROOT%{_bindir}/bzless <<EOF
91 #!/bin/sh
92 %{_bindir}/bunzip2 -c "\$@" | /usr/bin/less
93 EOF
94
95 install lib*so.*.* lib*.a $RPM_BUILD_ROOT%{_libdir}
96 ln -sf libbz2.so.0.9.5 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
97
98 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
99
100 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111 %attr(755,root,root) %{_bindir}/*
112 %{_mandir}/man1/*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %doc *.html
117 %attr(755,root,root) %{_libdir}/lib*.so
118 %{_includedir}/*.h
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/lib*.a
This page took 0.042332 seconds and 4 git commands to generate.