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