]> git.pld-linux.org Git - packages/bzip2.git/blob - bzip2.spec
1f1e4955a4529ada5d44e67bd9926dd6bdcc91cd
[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:        2
6 Copyright:      GPL
7 Group:          Utilities/Archiving
8 Group(pl):      Narzêdzia/Archiwizacja
9 URL:            http://www.digistar.com/bzip2
10 Source:         %{name}-%{version}.tar.gz
11 BuildRoot:      /tmp/%{name}-%{version}-root
12
13 %description
14 Bzip2  compresses  files  using the Burrows-Wheeler block-sorting text
15 compression algorithm, and Huffman coding. Compression is generally
16 considerably better than that achieved by more conventional LZ77/LZ78-based
17 compressors, and approaches the performance of the PPM family of statistical
18 compressors.
19
20 The command-line options are deliberately very similar to those of GNU Gzip,
21 but they are not identical.
22
23 %description -l pl
24 Kompresor bzip2 u¿ywa algorytmu Burrows-Wheelera do kompresji danych i metody 
25 Huffmana do ich kodowania. Kompresja pliku czy archiwum tar jest z regu³y 
26 lepsza ni¿ w przypadku stosowania klasycznych kompresorów LZ77/LZ78. 
27 Opcje linii poleceñ s± bardzo podobne do poleceñ GNU Gzip ale nie s± 
28 identyczne.
29
30 %prep
31 %setup -q 
32
33 %build
34 make CFLAGS="$RPM_OPT_FLAGS"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38
39 install -d $RPM_BUILD_ROOT/usr/{bin,lib,man/man1}
40
41 install -s {bzip2,bzip2recover} $RPM_BUILD_ROOT/usr/bin
42 install *.a $RPM_BUILD_ROOT/usr/lib
43
44 ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bunzip2
45 ln -sf bzip2 $RPM_BUILD_ROOT/usr/bin/bzcat
46
47 install bzip2.1 $RPM_BUILD_ROOT/usr/man/man1
48
49 echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bunzip2.1
50 echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzcat.1
51 echo .so bzip2.1 > $RPM_BUILD_ROOT/usr/man/man1/bzip2recover.1
52
53 cat > $RPM_BUILD_ROOT/usr/bin/bzless <<EOF
54 #!/bin/sh
55 /usr/bin/bunzip2 -c "\$@" | /usr/bin/less
56 EOF
57
58 bzip2 -9  README
59 gzip -9fn $RPM_BUILD_ROOT/usr/man/man1/*
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README.bz2 *.html
64
65 %attr(755,root,root) /usr/bin/*
66 %attr(644,root, man) /usr/man/man1/*
67
68 /usr/lib/*.a
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %changelog
74 * Fri Jan 15 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
75   [0.9.0c-1d]
76 - added Group(pl),
77 - added static bzip2 library,
78 - added symlink bzcat,
79 - fixed man pages,
80 - compressed %doc with bzip2 (bzip2 must by instaled in system ;) 
81
82 * Mon Oct 05 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
83   [0.9.0-1d]
84 - updated to 0.9.0b. 
85
86 * Thu Sep 24 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
87   [0.1pl2-2d]
88 - translation modified for pl,
89 - install -d instead mkdir -p,
90 - added %defattr support,
91 - fixed files permissions,
92 - minor modifications of the spec file.
93
94 * Mon Jul 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
95   [0.1pl2-2]
96 - build against GNU libc-2.1.
This page took 0.022492 seconds and 2 git commands to generate.