]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- release 6 (updated bzgrep patch on AC-branch to drop bash dep)
[packages/bzip2.git] / bzip2.spec
1
2 # Conditional build:
3 %bcond_with     progress        # with progressbar patch
4 %bcond_without  doc             # don't build tex documentation
5 #
6 Summary:        Extremely powerful file compression utility
7 Summary(es):    Un compresor de archivos con un nuevo algoritmo
8 Summary(fr):    Utilitaire de compression de fichier extrêmement puissant
9 Summary(pl):    Kompresor plików bzip2
10 Summary(pt_BR): Compactador de arquivo extremamente poderoso
11 Summary(uk):    ëÏÍÐÒÅÓÏÒ ÆÁÊ̦נÎÁ ÂÁÚ¦ ÁÌÇÏÒÉÔÍÕ ÂÌÏÞÎÏÇÏ ÓÏÒÔÕ×ÁÎÎÑ
12 Summary(ru):    ëÏÍÐÒÅÓÓÏÒ ÆÁÊÌÏ× ÎÁ ÏÓÎÏ×Å ÁÌÇÏÒÉÔÍÁ ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ
13 Name:           bzip2
14 Version:        1.0.3
15 Release:        6
16 Epoch:          0
17 License:        BSD-like
18 Group:          Applications/Archiving
19 Source0:        http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
20 # Source0-md5:  8a716bebecb6e647d2e8a29ea5d8447f
21 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
22 # Source1-md5:  5ffc3dbdd40080a8c22c3b4c3143cdd7
23 Patch0:         %{name}-libtoolizeautoconf.patch
24 Patch1:         %{name}-toctou.patch
25 # Modified from http://www.vanheusden.com/Linux/bzip2-1.0.2.diff.gz
26 Patch2:         %{name}-progress-counter-1.0.2.patch
27 Patch3:         %{name}-bzgrep.patch
28 Patch4:         %{name}-tempfile.patch
29 URL:            http://www.bzip.org/
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 BuildRequires:  libtool
33 BuildRequires:  rpmbuild(macros) >= 1.213
34 %{?with_doc:BuildRequires:      tetex}
35 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %define         specflags_ia32  -fomit-frame-pointer
39
40 %description
41 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
42 compression algorithm, and Huffman coding. Compression is generally
43 considerably better than that achieved by more conventional
44 LZ77/LZ78-based compressors, and approaches the performance of the PPM
45 family of statistical compressors. The command-line options are
46 deliberately very similar to those of GNU Gzip, but they are not
47 identical.
48
49 %description -l es
50 Bzip2 es un programa de compresión/descompresión. Típicamente el
51 archivo compactado queda entre 20 la 30 por ciento menor de que se
52 fuera compactado con gzip. Observa que bzip2 no entiende los archivos
53 del bzip original, ni los archivos del gzip.
54
55 %description -l fr
56 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
57 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
58 compression est considérablement meilleure que celle effectuée par les
59 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
60 performance de la famille PPM de compresseurs statistiques.
61
62 %description -l pl
63 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
64 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
65 jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych
66 kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do
67 poleceñ GNU Gzip ale nie s± identyczne.
68
69 %description -l pt_BR
70 Bzip2 é um programa de compressão/descompressão. Tipicamente o arquivo
71 compactado fica 20 a 30 por cento menor do que se fosse compactado com
72 o gzip.
73
74 Note que o bzip2 não entende os arquivos do bzip original, nem os
75 arquivos do gzip.
76
77 %description -l ru
78 bzip2 ËÏÍÐÒÅÓÓÉÒÕÅÔ ÆÁÊÌÙ ÉÓÐÏÌØÚÕÑ ËÏÍÐÒÅÓÓÉÒÕÀÝÉÊ ÔÅËÓÔÏ×ÙÊ ÁÌÇÏÒÉÔÍ
79 ÂÌÏÞÎÏÊ ÓÏÒÔÉÒÏ×ËÉ Burrows-Wheeler É ËÏÄÉÒÏ×ÁÎÉÅ Huffman'Á.
80 äÏÓÔÉÇÁÅÍÁÑ ËÏÍÐÒÅÓÓÉÑ ÏÂÙÞÎÏ ÓÕÝÅÓÔ×ÅÎÎÏ ÌÕÞÛÅ ÄÏÓÔÉÇÁÅÍÏÊ ÂÏÌÅÅ
81 ÐÒÉ×ÙÞÎÙÍÉ ËÏÍÐÒÅÓÓÏÒÁÍÉ ÎÁ ÏÓÎÏ×Å LZ77/LZ78 É ÐÒÉÂÌÉÖÁÅÔÓÑ Ë ÔÏÊ,
82 ËÏÔÏÒÕÀ ÏÂÅÓÐÅÞÉ×ÁÅÔ ÓÅÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÅÓËÉÈ ËÏÍÐÒÅÓÓÏÒÏ× PPM.
83
84 %description -l uk
85 bzip2 ËÏÍÐÒÅÓÕ¤ ÆÁÊÌÉ ×ÉËÏÒÉÓÔÏ×ÕÀÞÉ ÔÅËÓÔÏ×ÉÊ ÁÌÇÏÒÉÔÍ ÂÌÏÞÎÏÇÏ
86 ÓÏÒÔÕ×ÁÎÎÑ Burrows-Wheeler ÔÁ ËÏÄÕ×ÁÎÎÑ Huffman'Á. ëÏÍÐÒÅÓ¦Ñ, ÑËÁ
87 ÄÏÓÑÇÁ¤ÔØÓÑ bzip2, ÑË ÐÒÁ×ÉÌÏ ËÒÁÝÁ ÚÁ ÔÕ, ÝÏ ÚÁÂÅÚÐÅÞÕÀÔØ
88 ÒÏÚÐÏ×ÓÀÄÖÅΦ ËÏÍÐÒÅÓÏÒÉ ÎÁ ÂÁÚ¦ LZ77/LZ78 ¦ ÎÁÂÌÉÖÁ¤ÔØÓÑ ÄÏ Ôϧ, ÝÏ
89 §§ ÚÁÂÅÚÐÅÞÕ¤ Ó¦ÍÅÊÓÔ×Ï ÓÔÁÔÉÓÔÉÞÎÉÈ ËÏÍÐÒÅÓÏҦנPPM.
90
91 %package libs
92 Summary:        libbz2 library
93 Summary(fr):    Librairie libbz2
94 Summary(pl):    Biblioteka libbz2
95 Group:          Libraries
96 %ifarch %{x8664} ia64 ppc64 s390x sparc64
97 Provides:       libbz2.so.1.0()(64bit)
98 %else
99 Provides:       libbz2.so.1.0
100 %endif
101 Obsoletes:      libbzip2
102 Conflicts:      bzip2 < 0:1.0.2-12
103
104 %description libs
105 libbz2 library.
106
107 %description libs -l fr
108 Librairie libbz2.
109
110 %description libs -l pl
111 Biblioteka libbz2.
112
113 %package devel
114 Summary:        libbz2 library header files
115 Summary(fr):    Fichiers d'en-tête pour bzip2
116 Summary(pl):    Pliki nag³ówkowe do libbz2
117 Summary(pt_BR): Arquivos de inclusão para o bzip2
118 Summary(uk):    èÅÄÅÒÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libbz2
119 Summary(ru):    èÅÄÅÒÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libbz2
120 Group:          Development/Libraries
121 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
122 Obsoletes:      libbzip2-devel
123
124 %description devel
125 Libbz2 library header files.
126
127 %description devel -l pl
128 Pliki nag³ówkowe do libbz2.
129
130 %description devel -l pt_BR
131 Este pacote inclui arquivos de inclusão necessário para o
132 desenvolvimento de programas que usam o bzip2.
133
134 %description devel -l ru
135 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ É ÈÅÄÅÒÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
136 ÐÒÏÇÒÁÍÍ, ×ËÌÀÞÁÀÝÉÈ ÐÏÄÐÒÏÇÒÁÍÍÙ ËÏÍÐÒÅÓÓÉÉ/ÄÅËÏÍÐÒÅÓÓÉÉ bz2.
137
138 %description devel -l uk
139 ãÅÊ ÐÁËÅԠͦÓÔÉÔؠ¦Â̦ÏÔÅËÕ ÔÁ ÈÅÄÅÒÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
140 ÐÒÏÇÒÁÍ, Ñ˦ ×ËÌÀÞÁÀÔؠЦÄÐÒÏÇÒÁÍÉ ËÏÍÐÒÅÓ¦§/ÄÅËÏÍÐÒÅÓ¦§ bz2.
141
142 %package static
143 Summary:        Static libbz2 library
144 Summary(fr):    Librairie statique libbz2
145 Summary(pl):    Biblioteka statyczna libbz2
146 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com a bzip2
147 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ bzip2
148 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ bzip2
149 Group:          Development/Libraries
150 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
151
152 %description static
153 Static libbz2 library.
154
155 %description static -l fr
156 Librairie statique d'en-tête pour bzip2.
157
158 %description static -l pl
159 Biblioteka statyczna libbz2.
160
161 %description static -l pt_BR
162 Bibliotecas estáticas para desenvolvimento com a bzip2.
163
164 %description static -l uk
165 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ.
166
167 %description static -l ru
168 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ.
169
170 %prep
171 %setup -q
172 %patch0 -p1
173 %patch1 -p1
174 %{?with_progress:%patch2 -p1}
175 %patch3 -p1
176 %patch4 -p1
177
178 %build
179 %{__aclocal}
180 %{__libtoolize}
181 %{__automake}
182 %{__autoconf}
183 %configure \
184         CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
185 %{__make}
186
187 %if %{with doc}
188 cd doc
189 /usr/bin/texi2html bzip2.texi
190 cd ..
191 %endif
192
193 %install
194 rm -rf $RPM_BUILD_ROOT
195 install -d $RPM_BUILD_ROOT/%{_lib}
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT
199
200 # Substitute %{_bindir} in bzless.
201 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
202 sed -e "s@%%{_bindir}@%{_bindir}@g" \
203         $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
204         $RPM_BUILD_ROOT%{_bindir}/bzless
205 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
206
207 mv -f $RPM_BUILD_ROOT%{_libdir}/libbz2.so.* $RPM_BUILD_ROOT/%{_lib}
208 ln -sf /%{_lib}/libbz2.so.1.0.0 $RPM_BUILD_ROOT/%{_libdir}/libbz2.so
209
210 # standard soname was libbz2.so.1.0, libtoolizeautoconf patch broke it,
211 # but ABI has not changed - provide symlink for binary compatibility
212 ln -sf libbz2.so.1.0.0 $RPM_BUILD_ROOT/%{_lib}/libbz2.so.1.0
213
214 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
215
216 %clean
217 rm -rf $RPM_BUILD_ROOT
218
219 %post   libs -p /sbin/ldconfig
220 %postun libs -p /sbin/ldconfig
221
222 %files
223 %defattr(644,root,root,755)
224 %doc CHANGES LICENSE README* Y2K_INFO %{?with_doc:doc/*.html}
225 %attr(755,root,root) %{_bindir}/*
226 %{_mandir}/man1/*
227 %lang(es) %{_mandir}/es/man1/*
228 %lang(fr) %{_mandir}/fr/man1/*
229 %lang(hu) %{_mandir}/hu/man1/*
230 %lang(ja) %{_mandir}/ja/man1/*
231 %lang(ko) %{_mandir}/ko/man1/*
232 %lang(pl) %{_mandir}/pl/man1/*
233
234 %files libs
235 %defattr(644,root,root,755)
236 %attr(755,root,root) /%{_lib}/lib*.so.*.*.*
237 %attr(755,root,root) /%{_lib}/lib*.so.1.0
238
239 %files devel
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/lib*.so
242 %{_libdir}/lib*.la
243 %{_includedir}/*.h
244
245 %files static
246 %defattr(644,root,root,755)
247 %{_libdir}/lib*.a
This page took 0.053807 seconds and 4 git commands to generate.