]>
Commit | Line | Data |
---|---|---|
13b61631 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
f22e847e | 5 | %include /usr/lib/rpm/macros.perl |
ea16d252 | 6 | %define pdir Compress |
7 | %define pnam LZO | |
f22e847e | 8 | Summary: Compress::LZO Perl module - interface to LZO compression library |
531b6452 | 9 | Summary(pl.UTF-8): Moduł Perla Compress::LZO - interfejs do biblioteki kompresji LZO |
f22e847e | 10 | Name: perl-Compress-LZO |
3c1acafd | 11 | Version: 1.08 |
b1e702c9 | 12 | Release: 15 |
33c2b0e8 | 13 | License: GPL v2 |
f22e847e | 14 | Group: Development/Languages/Perl |
7cd1bdfa | 15 | Source0: http://www.cpan.org/modules/by-module/Compress/%{pdir}-%{pnam}-%{version}.tar.gz |
1284c02a | 16 | # Source0-md5: 4266ea0cb23817dd02ead4f983c2604f |
0b589797 | 17 | Patch0: %{name}-lzo2.patch |
7cd1bdfa | 18 | URL: http://search.cpan.org/dist/Compress-LZO/ |
0b589797 | 19 | BuildRequires: lzo-devel >= 2.0 |
34c02821 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
1b1ae7a3 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
f22e847e JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | LZO is a portable lossless data compression library written in ANSI C. | |
26 | It offers pretty fast compression and very fast decompression. | |
27 | Decompression requires no memory. perl-LZO provides LZO bindings for | |
28 | Perl - i.e. you can access the LZO library from your Perl scripts | |
29 | thereby compressing ordinary Perl strings. | |
30 | ||
0dc056f1 JR |
31 | %description -l pl.UTF-8 |
32 | LZO jest przenośną biblioteką do bezstratnej kompresji danych, | |
33 | napisaną w ANSI C. Oferuje szybką kompresję i bardzo szybką, nie | |
34 | wymagającą pamięci, dekompresję. perl-LZO udostępnia interfejs dla | |
35 | Perla - pozwalający na dostęp do biblioteki LZO ze skryptów perlowych, | |
36 | do kompresji zwykłych łańcuchów. | |
f22e847e JB |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
0b589797 | 40 | %patch0 -p1 |
f22e847e JB |
41 | |
42 | %build | |
1b1ae7a3 | 43 | %{__perl} Makefile.PL \ |
3a3a5c9f | 44 | INSTALLDIRS=vendor |
13b61631 | 45 | %{__make} \ |
8f258643 | 46 | CC="%{__cc}" \ |
13b61631 | 47 | OPTIMIZE="%{rpmcflags}" |
48 | ||
49 | %{?with_tests:%{__make} test} | |
f22e847e JB |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc NEWS README | |
1b1ae7a3 | 63 | %{perl_vendorarch}/Compress/LZO.pm |
64 | %dir %{perl_vendorarch}/auto/Compress/LZO | |
65 | %{perl_vendorarch}/auto/Compress/LZO/autosplit.ix | |
1b1ae7a3 | 66 | %attr(755,root,root) %{perl_vendorarch}/auto/Compress/LZO/*.so |
f22e847e | 67 | %{_mandir}/man3/* |