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