]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
cf38ed00f19caa7ba43b05b366c2ff71fa56aa59
[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:        3
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/usr/{bin,lib,include,man/man1}
67
68 install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT/usr/bin
69
70 ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bunzip2
71 ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bzcat
72
73 install bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1
74 install bzlib.h $RPM_BUILD_ROOT/usr/include
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/usr/bin/bzless <<EOF
81 #!/bin/sh
82 /usr/bin/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 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
88
89 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
98 %attr(755,root,root) %{_libdir}/lib*.so.*.*
99 %attr(755,root,root) /usr/bin/*
100 %attr(644,root,root) %{_mandir}/man1/*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %doc *.html
105 %attr(755,root,root) %{_libdir}/lib*.so
106 /usr/include/*.h
107
108 %files static
109 %attr(644,root,root) %{_libdir}/lib*.a
110
111 %changelog
112 * Sun Mar 14 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
113   [0.9.0c-2]
114 - added build a shared libbz2.so,
115 - added devel and static subpackage,
116 - gzipping man pages instead bzipping2,
117 - removed man group from man pages.
118
119 * Fri Jan 15 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
120   [0.9.0c-1d]
121 - added Group(pl),
122 - added static bzip2 library,
123 - added symlink bzcat,
124 - fixed man pages,
125 - compressed man pages with bzip2 (bzip2 must by instaled in system ;)
126
127 * Mon Oct 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
128   [0.9.0-1d]
129 - updated to 0.9.0b. 
130
131 * Thu Sep 24 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
132   [0.1pl2-2d]
133 - translation modified for pl,
134 - install -d instead mkdir -p,
135 - added %defattr support,
136 - fixed files permissions,
137 - minor modifications of the spec file.
138
139 * Mon Jul 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
140   [0.1pl2-2]
141 - build against glibc-2.1.
This page took 0.0517 seconds and 2 git commands to generate.