]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- added man-pages for: es, fr, hu, ja, ko.
[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:        GPL
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
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(fr):      Development/Librairies
56 Group(pl):      Programowanie/Biblioteki
57 Requires:       %{name} = %{version}
58
59 %description devel
60 Libbz2 library header files
61
62 %description -l pl devel
63 Pliki nag³ówkowe do libbz2.
64
65 %package static
66 Summary:        Static libbz2 library
67 Summary(pl):    Biblioteka statyczna libbz2
68 Group:          Development/Libraries
69 Group(de):      Entwicklung/Libraries
70 Group(fr):      Development/Librairies
71 Group(pl):      Programowanie/Biblioteki
72 Requires:       %{name}-devel = %{version}
73
74 %description static
75 Static libbz2 library.
76
77 %description -l pl static
78 Biblioteka statyczna libbz2.
79
80 %prep
81 %setup -q
82 %patch -p1
83
84 %build
85 aclocal
86 libtoolize --copy --force
87 automake -a -c
88 autoconf
89 %configure
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install DESTDIR=$RPM_BUILD_ROOT
96
97 # Substitute %{_bindir} in bzless.
98 mv -f $RPM_BUILD_ROOT%{_bindir}/bzless{,.tmp}
99 sed -e "s@%%{_bindir}@%{_bindir}@g" \
100         $RPM_BUILD_ROOT%{_bindir}/bzless.tmp > \
101         $RPM_BUILD_ROOT%{_bindir}/bzless
102 rm -f $RPM_BUILD_ROOT%{_bindir}/bzless.tmp
103
104 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
105
106 %{!?_without_tetex: ( cd doc ; texi2html bzip2.texi )}
107
108 gzip -9nf README* NEWS Y2K_INFO
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc README.gz Y2K_INFO.gz
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*
120 %attr(755,root,root) %{_bindir}/*
121 %lang(en) %{_mandir}/man1/*
122 %lang(es) %{_mandir}/es/man1/*
123 %lang(fr) %{_mandir}/fr/man1/*
124 %lang(hu) %{_mandir}/hu/man1/*
125 %lang(ja) %{_mandir}/ja/man1/*
126 %lang(ko) %{_mandir}/ko/man1/*
127 %lang(pl) %{_mandir}/pl/man1/*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %{!?_without_tetex: %doc doc/*.html}
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %{_includedir}/*.h
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/lib*.a
This page took 0.08551 seconds and 4 git commands to generate.