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