]>
Commit | Line | Data |
---|---|---|
0435f68c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
0435f68c JB |
5 | %define pdir Compress |
6 | %define pnam Raw-Bzip2 | |
7 | Summary: Compress::Raw::Bzip2 - Low-Level Interface to bzip2 compression library | |
969ae1e8 | 8 | Summary(pl.UTF-8): Niskopoziomowy interfejs do biblioteki kompresji bzip2 |
0435f68c | 9 | Name: perl-Compress-Raw-Bzip2 |
0ccff089 | 10 | Version: 2.093 |
596d9208 | 11 | Release: 1 |
0435f68c JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
b338a155 | 15 | Source0: http://www.cpan.org/modules/by-module/Compress/%{pdir}-%{pnam}-%{version}.tar.gz |
0ccff089 | 16 | # Source0-md5: c2034a80cc6bd674c308e03f051a46b9 |
0435f68c JB |
17 | URL: http://search.cpan.org/dist/Compress-Raw-Bzip2/ |
18 | BuildRequires: bzip2-devel >= 1.0.3 | |
a00f2cd4 | 19 | BuildRequires: perl-ExtUtils-MakeMaker >= 5.16 |
0435f68c JB |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | Requires: perl-dirs >= 1.0-10 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Compress::Raw::Bzip2 provides an interface to the in-memory | |
27 | compression/uncompression functions from the bzip2 compression | |
28 | library. | |
29 | ||
30 | Although the primary purpose for the existence of Compress::Raw::Bzip2 | |
0b9458e0 | 31 | is for use by the IO::Compress::Bzip2 and IO::Uncompress::Bunzip2 |
0435f68c JB |
32 | modules, it can be used on its own for simple |
33 | compression/uncompression tasks. | |
34 | ||
a8de2e75 JR |
35 | %description -l pl.UTF-8 |
36 | Compress::Raw::Bzip2 udostępnia interfejs do funkcji | |
37 | kompresji/dekompresji w pamięci z biblioteki kompresji bzip2. | |
0435f68c | 38 | |
a8de2e75 JR |
39 | Choć głównym celem istnienia Compress::Raw::Bzip2 jest wykorzystywanie |
40 | przez moduły IO::Compress::Bzip2 i IO::Uncompress::Bunzip2, można tego | |
41 | modułu użyć samodzielnie do prostych zadań kompresji/dekompresji. | |
0435f68c JB |
42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
0435f68c JB |
45 | |
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} \ | |
1c235910 | 50 | CC="%{__cc}" \ |
0435f68c JB |
51 | OPTIMIZE="%{rpmcflags}" |
52 | ||
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc Changes README | |
67 | %{perl_vendorarch}/Compress/Raw/Bzip2.pm | |
68 | %dir %{perl_vendorarch}/auto/Compress/Raw/Bzip2 | |
0435f68c | 69 | %attr(755,root,root) %{perl_vendorarch}/auto/Compress/Raw/Bzip2/Bzip2.so |
ba144401 | 70 | %{_mandir}/man3/Compress::Raw::Bzip2.3pm* |