]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- updated to 1.0.2 (some security fixes if bzip2 is used in trusted enviroment
[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.2
6 Release:        1
7 License:        BSD-like
8 Group:          Applications/Archiving
9 Group(de):      Applikationen/Archivierung
10 Group(fr):      Applications/Archivage
11 Group(pl):      Aplikacje/Archiwizacja
12 Source0:        ftp://sourceware.cygnus.com/pub/bzip2/v102/%{name}-%{version}.tar.gz
13 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
14 Patch0:         %{name}-libtoolizeautoconf.patch
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 URL:            http://sourceware.cygnus.com/bzip2/
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
23 compression algorithm, and Huffman coding. Compression is generally
24 considerably better than that achieved by more conventional
25 LZ77/LZ78-based compressors, and approaches the performance of the PPM
26 family of statistical compressors. The command-line options are
27 deliberately very similar to those of GNU Gzip, but they are not
28 identical.
29
30 %description -l fr
31 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
32 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
33 compression est considérablement meilleure que celle effectuée par les
34 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
35 performance de la famille PPM de compresseurs statistiques.
36
37 %description -l pl
38 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
39 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
40 jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych
41 kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do
42 poleceñ GNU Gzip ale nie s± identyczne.
43
44 %package devel
45 Summary:        Libbz2 library header files
46 Summary(fr):    Librairie statique et fichiers d'en-tête pour bzip2
47 Summary(pl):    Pliki nag³ówkowe do libbz2
48 Group:          Development/Libraries
49 Group(de):      Entwicklung/Libraries
50 Group(es):      Desarrollo/Bibliotecas
51 Group(fr):      Development/Librairies
52 Group(pl):      Programowanie/Biblioteki
53 Group(pt_BR):   Desenvolvimento/Bibliotecas
54 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
55 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
56 Requires:       %{name} = %{version}
57
58 %description devel
59 Libbz2 library header files.
60
61 %description -l pl devel
62 Pliki nag³ówkowe do libbz2.
63
64 %package static
65 Summary:        Static libbz2 library
66 Summary(pl):    Biblioteka statyczna libbz2
67 Group:          Development/Libraries
68 Group(de):      Entwicklung/Libraries
69 Group(es):      Desarrollo/Bibliotecas
70 Group(fr):      Development/Librairies
71 Group(pl):      Programowanie/Biblioteki
72 Group(pt_BR):   Desenvolvimento/Bibliotecas
73 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
74 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
75 Requires:       %{name}-devel = %{version}
76
77 %description static
78 Static libbz2 library.
79
80 %description -l pl static
81 Biblioteka statyczna libbz2.
82
83 %prep
84 %setup -q
85 %patch -p1
86
87 %build
88 aclocal
89 libtoolize --copy --force
90 automake -a -c
91 autoconf
92 %configure
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install DESTDIR=$RPM_BUILD_ROOT
99
100 # Substitute %{_bindir} in bzless.
101 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
102 sed -e "s@%%{_bindir}@%{_bindir}@g" \
103         $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
104         $RPM_BUILD_ROOT%{_bindir}/bzless
105 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
106
107 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
108
109 gzip -9nf README* NEWS Y2K_INFO
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc README.gz Y2K_INFO.gz
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %attr(755,root,root) %{_bindir}/*
122 %lang(en) %{_mandir}/man1/*
123 %lang(es) %{_mandir}/es/man1/*
124 %lang(fr) %{_mandir}/fr/man1/*
125 %lang(hu) %{_mandir}/hu/man1/*
126 %lang(ja) %{_mandir}/ja/man1/*
127 %lang(ko) %{_mandir}/ko/man1/*
128 %lang(pl) %{_mandir}/pl/man1/*
129
130 %files devel
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %{_includedir}/*.h
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/lib*.a
This page took 0.099976 seconds and 4 git commands to generate.