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