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