]> git.pld-linux.org Git - packages/lbzip2.git/blob - lbzip2.spec
b75435dd0bcb54070d53a016775dd861268f7953
[packages/lbzip2.git] / lbzip2.spec
1 Summary:        Parallel bzip2/bunzip2 Filter
2 Name:           lbzip2
3 Version:        0.23
4 Release:        1
5 Source0:        http://lacos.web.elte.hu/pub/lbzip2/%{name}-%{version}.tar.gz
6 # Source0-md5:  72ab7fbfd3804e4ef1a2030f51ac3825
7 Patch1:         %{name}-makefile.patch
8 License:        GPL v2+
9 Group:          Applications/Archiving
10 URL:            http://lacos.hu/
11 BuildRequires:  bzip2-devel
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Lbzip2 is a Pthreads-based parallel bzip2/bunzip2 filter, passable to
16 GNU tar with the --use-compress-program option.
17
18 It isn't restricted to regular files on input, nor output. Successful
19 splitting for decompression isn't guaranteed, just very likely
20 (failure is detected). Splitting in both modes and compression itself
21 occur with an approximate 900k block size.
22
23 On an Athlon-64 X2 6000+, lbzip2 was 92% faster than standard bzip2
24 when compressing, and 45% faster when decompressing (based on wall
25 clock time).
26
27 Lbzip2 strives to be portable by requiring UNIX 98 APIs only, besides
28 an unmodified libbz2.
29
30 %prep
31 %setup -q -n %{name}
32 %patch1
33
34 %build
35 %{__make} \
36         CC="%{__cc}" \
37         OPTFLAGS="%{optflags}"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -D lbzip2 $RPM_BUILD_ROOT%{_bindir}/lbzip2
42 install -D lbzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/lbzip2.1
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc ChangeLog README
50 %attr(755,root,root) %{_bindir}/lbzip2
51 %{_mandir}/man1/lbzip2.1*
This page took 0.062664 seconds and 2 git commands to generate.