]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
- _no_ another style for %package.
[packages/bzip2.git] / bzip2.spec
1 Summary:        Extremely powerful file compression utility
2 Summary(pl):    Kompresor plików bzip2
3 Name:           bzip2
4 Version:        0.9.0c
5 Release:        4
6 Copyright:      GPL
7 Group:          Utilities/Archiving
8 Group(pl):      Narzêdzia/Archiwizacja
9 Source:         http://www.digistar.com/bzip2/%{name}-%{version}.tar.gz
10 Patch:          bzip2-shlib.patch
11 URL:            http://www.muraroa.demon.co.uk/
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
15 Bzip2  compresses  files  using the Burrows-Wheeler block-sorting text
16 compression algorithm, and Huffman coding. Compression is generally
17 considerably better than that achieved by more conventional LZ77/LZ78-based
18 compressors, and approaches the performance of the PPM family of statistical
19 compressors.
20
21 The command-line options are deliberately very similar to those of GNU Gzip,
22 but they are not identical.
23
24 %description -l pl
25 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i metody 
26 Huffmana do ich kodowania. Kompresja pliku czy archiwum tar jest z regu³y 
27 lepsza ni¿ w przypadku stosowania klasycznych kompresorów LZ77/LZ78. 
28 Opcje linii poleceñ s± bardzo podobne do poleceñ GNU Gzip ale nie s± 
29 identyczne.
30
31 %package devel
32 Summary:        Libbz2 library header files
33 Summary(pl):    Pliki nag³ówkowe do libbz2
34 Group:          Development/Libraries
35 Group(pl):      Programowanie/Biblioteki
36 Requires:       %{name} = %{version}
37
38 %description devel
39 Libbz2 library header files
40
41 %description -l pl devel
42 Pliki nag³ówkowe do libbz2.
43
44 %package static
45 Summary:        Static libbz2 library
46 Summary(pl):    Biblioteka statyczna libbz2
47 Group:          Development/Libraries
48 Group(pl):      Programowanie/Biblioteki
49 Requires:       %{name}-devel = %{version}
50
51 %description static
52 Static libbz2 library.
53
54 %description -l pl static
55 Biblioteka statyczna libbz2.
56
57 %prep
58 %setup -q 
59 %patch -p1
60
61 %build
62 make CFLAGS="$RPM_OPT_FLAGS"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_includedir},%{_mandir}/man1}
67
68 install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT%{_bindir}
69
70 ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2
71 ln -sf bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat
72
73 install bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1
74 install bzlib.h $RPM_BUILD_ROOT%{_includedir}
75
76 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
77 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
78 echo .so bzip2.1 > $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
79
80 cat > $RPM_BUILD_ROOT%{_bindir}/bzless <<EOF
81 #!/bin/sh
82 %{_bindir}/bunzip2 -c "\$@" | /usr/bin/less
83 EOF
84
85 install lib*so.*.* lib*.a $RPM_BUILD_ROOT%{_libdir}
86 ln -sf libbz2.so.0.9.0 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
87
88 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
89
90 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/lib*.so.*
101 %attr(755,root,root) %{_bindir}/*
102 %{_mandir}/man1/*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %doc *.html
107 %attr(755,root,root) %{_libdir}/lib*.so
108 %{_includedir}/*.h
109
110 %files static
111 %defattr(644,root,root,755) 
112 %{_libdir}/lib*.a
113
114 %changelog
115 * Sun Mar 14 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
116   [0.9.0c-2]
117 - added build a shared libbz2.so,
118 - added devel and static subpackage,
119 - gzipping man pages instead bzipping2,
120 - removed man group from man pages.
121
122 * Fri Jan 15 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
123   [0.9.0c-1d]
124 - added Group(pl),
125 - added static bzip2 library,
126 - added symlink bzcat,
127 - fixed man pages,
128 - compressed man pages with bzip2 (bzip2 must by instaled in system ;)
129
130 * Mon Oct 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
131   [0.9.0-1d]
132 - updated to 0.9.0b. 
133
134 * Thu Sep 24 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
135   [0.1pl2-2d]
136 - translation modified for pl,
137 - install -d instead mkdir -p,
138 - added %defattr support,
139 - fixed files permissions,
140 - minor modifications of the spec file.
141
142 * Mon Jul 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
143   [0.1pl2-2]
144 - build against glibc-2.1.
This page took 0.044281 seconds and 4 git commands to generate.