]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- gzipped "jumbo" patch
[packages/bzip2.git] / bzip2.spec
1
2 # Conditional build:
3 # --without tetex - build without html documentation(don't request tetex)
4 #
5 Summary:        Extremely powerful file compression utility
6 Summary(fr):    Utilitaire de compression de fichier extrêmement puissant
7 Summary(pl):    Kompresor plików bzip2
8 Name:           bzip2
9 Version:        1.0.1
10 Release:        7
11 License:        BSD-like
12 Group:          Applications/Archiving
13 Group(de):      Applikationen/Archivierung
14 Group(fr):      Applications/Archivage
15 Group(pl):      Aplikacje/Archiwizacja
16 Source0:        ftp://sourceware.cygnus.com/pub/bzip2/v100/%{name}-%{version}.tar.gz
17 Source1:        %{name}-non-english-man-pages.tar.bz2
18 Patch0:         %{name}-libtoolizeautoconf.patch.gz
19 %{!?_without_tetex:BuildRequires:        tetex}
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  libtool
23 URL:            http://sourceware.cygnus.com/bzip2/
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
28 compression algorithm, and Huffman coding. Compression is generally
29 considerably better than that achieved by more conventional
30 LZ77/LZ78-based compressors, and approaches the performance of the PPM
31 family of statistical compressors. The command-line options are
32 deliberately very similar to those of GNU Gzip, but they are not
33 identical.
34
35 %description -l fr
36 Bzip2 compresse des fichiers en utilisant l'algorithme de compression
37 en tri de blocks de texte Burrows-Wheeler, et le codage Huffman. La
38 compression est considérablement meilleure que celle effectuée par les
39 plus conventionels compresseurs basés sur LZ77/LZ78, et approche la
40 performance de la famille PPM de compresseurs statistiques.
41
42 %description -l pl
43 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i
44 metody Huffmana do ich kodowania. Kompresja pliku czy archiwum tar
45 jest z regu³y lepsza ni¿ w przypadku stosowania klasycznych
46 kompresorów LZ77/LZ78. Opcje linii poleceñ s± bardzo podobne do
47 poleceñ GNU Gzip ale nie s± identyczne.
48
49 %package devel
50 Summary:        Libbz2 library header files
51 Summary(fr):    Librairie statique et fichiers d'en-tête pour bzip2
52 Summary(pl):    Pliki nag³ówkowe do libbz2
53 Group:          Development/Libraries
54 Group(de):      Entwicklung/Libraries
55 Group(es):      Desarrollo/Bibliotecas
56 Group(fr):      Development/Librairies
57 Group(pl):      Programowanie/Biblioteki
58 Group(pt_BR):   Desenvolvimento/Bibliotecas
59 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
60 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
61 Requires:       %{name} = %{version}
62
63 %description devel
64 Libbz2 library header files.
65
66 %description -l pl devel
67 Pliki nag³ówkowe do libbz2.
68
69 %package static
70 Summary:        Static libbz2 library
71 Summary(pl):    Biblioteka statyczna libbz2
72 Group:          Development/Libraries
73 Group(de):      Entwicklung/Libraries
74 Group(es):      Desarrollo/Bibliotecas
75 Group(fr):      Development/Librairies
76 Group(pl):      Programowanie/Biblioteki
77 Group(pt_BR):   Desenvolvimento/Bibliotecas
78 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
79 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
80 Requires:       %{name}-devel = %{version}
81
82 %description static
83 Static libbz2 library.
84
85 %description -l pl static
86 Biblioteka statyczna libbz2.
87
88 %prep
89 %setup -q
90 %patch -p1
91
92 %build
93 aclocal
94 libtoolize --copy --force
95 automake -a -c
96 autoconf
97 %configure
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install DESTDIR=$RPM_BUILD_ROOT
104
105 # Substitute %{_bindir} in bzless.
106 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
107 sed -e "s@%%{_bindir}@%{_bindir}@g" \
108         $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
109         $RPM_BUILD_ROOT%{_bindir}/bzless
110 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
111
112 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
113
114 %{!?_without_tetex: ( cd doc ; texi2html bzip2.texi )}
115
116 gzip -9nf README* NEWS Y2K_INFO
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %doc README.gz Y2K_INFO.gz
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
128 %attr(755,root,root) %{_bindir}/*
129 %lang(en) %{_mandir}/man1/*
130 %lang(es) %{_mandir}/es/man1/*
131 %lang(fr) %{_mandir}/fr/man1/*
132 %lang(hu) %{_mandir}/hu/man1/*
133 %lang(ja) %{_mandir}/ja/man1/*
134 %lang(ko) %{_mandir}/ko/man1/*
135 %lang(pl) %{_mandir}/pl/man1/*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %{!?_without_tetex: %doc doc/*.html}
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %{_includedir}/*.h
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/lib*.a
This page took 0.041803 seconds and 4 git commands to generate.