2 # - check minimum gcc ver:
3 # on ac gcc 3.3.6: - BZ2StreamScanner.cpp:(.text+0x219): undefined reference to `std::char_traits<unsigned char>::length(unsigned char const*)'
4 Summary: Parallel implementation of bzip2
5 Summary(pl.UTF-8): Zrównoleglona implementacja bzip2
10 Group: Applications/Archiving
11 Source0: https://launchpad.net/pbzip2/1.1/%{version}/+download/%{name}-%{version}.tar.gz
12 # Source0-md5: 4cb87da2dba05540afce162f34b3a9a6
13 URL: http://www.compression.ca/pbzip2/
14 BuildRequires: bzip2-devel
15 BuildRequires: libstdc++-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 PBZIP2 is a parallel implementation of the bzip2 block-sorting file
20 compressor that uses pthreads and achieves near-linear speedup on SMP
21 machines. The output of this version is fully compatible with bzip2
22 v1.0.2 or newer (ie: anything compressed with pbzip2 can be
23 decompressed with bzip2).
25 %description -l pl.UTF-8
26 PBZIP2 to zrównoleglona implementacja algorytmu kompresji plików
27 metodą sortowania bloków sobzip2, wykorzystująca mechanizm wątków
28 pthread i osiągająca prawie liniowe przyspieszenie na maszynach
29 wieloprocesorowych. Wyjście z tego programu jest w pełni kompatybilne
30 z formatem bzip2 w wersji 1.0.2 lub nowszej (tzn. wszystko
31 skompresowane programem pbzip2 może być rozpakowane przy pomocy
40 OPTFLAGS="%{rpmcxxflags}"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
45 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
46 ln -sf %{name} $RPM_BUILD_ROOT%{_bindir}/pbunzip2
47 cp -a %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc AUTHORS ChangeLog COPYING README
55 %attr(755,root,root) %{_bindir}/pbzip2
56 %attr(755,root,root) %{_bindir}/pbunzip2
57 %{_mandir}/man1/pbzip2.1*