]>
Commit | Line | Data |
---|---|---|
6ad50095 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Compress | |
6 | %define pnam Raw-Lzma | |
6ad50095 JB |
7 | Summary: Compress::Raw::Lzma - low-level Interface to lzma compression library |
8 | Summary(pl.UTF-8): Compress::Raw::Lzma - niskopoziomowy interfejs do biblioteki kompresji lzma | |
9 | Name: perl-Compress-Raw-Lzma | |
387a74bb | 10 | Version: 2.082 |
a6f3e614 | 11 | Release: 3 |
6ad50095 JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
f55def0a | 15 | Source0: http://www.cpan.org/modules/by-module/Compress/Compress-Raw-Lzma-%{version}.tar.gz |
387a74bb | 16 | # Source0-md5: f638f198ca3ce7f2eba2de6fe24374c1 |
6ad50095 JB |
17 | URL: http://search.cpan.org/dist/Compress-Raw-Lzma/ |
18 | BuildRequires: perl-ExtUtils-MakeMaker >= 5.16 | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRequires: xz-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Compress::Raw::Lzma provides an interface to the in-memory | |
26 | compression/uncompression functions from the lzma compression library. | |
27 | ||
28 | Although the primary purpose for the existence of Compress::Raw::Lzma | |
29 | is for use by the IO::Compress::Lzma, IO::Uncompress::UnLzma, | |
30 | IO::Compress::Xz and IO::Uncompress::UnXz modules, it can be used on | |
31 | its own for simple compression/uncompression tasks. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Compress::Raw::Lzma udostępnia interfejs do funkcji kompresji i | |
35 | dekompresji w pamięci biblioteki kompresji lzma. | |
36 | ||
37 | Mimo że głównym celem istnienia modułu Compres::Raw::Lzma jest | |
38 | wykorzystywanie przez moduły IO::Compres::Lzma, | |
39 | IO::Uncompress::UnLzma, IO::Compress::Xz i IO::Uncompress::UnXz, może | |
40 | być używany także samodzielnie do prostych zadań | |
41 | kompresji/dekompresji. | |
42 | ||
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} \ | |
50 | CC="%{__cc}" \ | |
51 | OPTIMIZE="%{rpmcflags}" | |
52 | ||
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} pure_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 | |
67 | %{perl_vendorarch}/Compress/Raw/Lzma.pm | |
68 | %dir %{perl_vendorarch}/auto/Compress/Raw/Lzma | |
69 | %{perl_vendorarch}/auto/Compress/Raw/Lzma/autosplit.ix | |
6ad50095 JB |
70 | %attr(755,root,root) %{perl_vendorarch}/auto/Compress/Raw/Lzma/Lzma.so |
71 | %{_mandir}/man3/Compress::Raw::Lzma.3pm* |