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