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