]>
Commit | Line | Data |
---|---|---|
91135ce7 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
0da1b944 | 5 | %define pdir Compress |
6 | %define pnam LZF | |
d342a0f2 | 7 | Summary: Compress::LZF Perl module - extremely leight-weight Lev-Zimpel-Free compression |
97f79d5d | 8 | Summary(pl.UTF-8): Moduł Perla Compress::LZF - ekstremalnie lekka kompresja Lev-Zimpel-Free |
d342a0f2 | 9 | Name: perl-Compress-LZF |
bd900c41 JB |
10 | %define srcver 3.8 |
11 | Version: %{srcver}0 | |
f2d8a65f | 12 | Release: 4 |
471e8fc2 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
d342a0f2 | 15 | Group: Development/Languages/Perl |
bd900c41 JB |
16 | Source0: http://www.cpan.org/modules/by-module/Compress/%{pdir}-%{pnam}-%{srcver}.tar.gz |
17 | # Source0-md5: c6c4c09d288fd040782eb7edfc39b015 | |
406d01e9 | 18 | URL: http://search.cpan.org/dist/Compress-LZF/ |
370bc5dd | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
a77cb047 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d342a0f2 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | LZF is an extremely fast (not that much slower than a pure memcpy) | |
25 | compression algorithm. It is ideal for applications where you want to | |
26 | save *some* space but not at the cost of speed. It is ideal for | |
27 | repetitive data as well. The module is self-contained and very small | |
28 | (no large library to be pulled in). It is also free, so there should | |
29 | be no problems incoporating this module into commercial programs. It | |
30 | is believed that it is free from any patents. | |
31 | ||
2b087248 JR |
32 | %description -l pl.UTF-8 |
33 | LZF jest ekstremalnie szybkim (nie tak dużo wolniejszym od memcpy) | |
34 | algorytmem kompresji. Jest idealny dla programów, które chcą | |
35 | zaoszczędzić *trochę* miejsca, ale nie kosztem szybkości. Jest idealny | |
36 | dla powtarzających się danych. Moduł jest mały i nie wymaga żadnej | |
37 | dodatkowej dużej biblioteki. Jest wolnodostępny, więc nie powinno być | |
38 | problemów z wykorzystaniem go w komercyjnych programach. Według | |
39 | aktualnego stanu wiedzy jest wolny od patentów. | |
d342a0f2 JB |
40 | |
41 | %prep | |
bd900c41 | 42 | %setup -q -n %{pdir}-%{pnam}-%{srcver} |
d342a0f2 JB |
43 | |
44 | %build | |
a77cb047 | 45 | %{__perl} Makefile.PL \ |
6f461d17 | 46 | INSTALLDIRS=vendor |
91135ce7 | 47 | %{__make} \ |
231a12fa | 48 | CC="%{__cc}" \ |
91135ce7 | 49 | OPTIMIZE="%{rpmcflags}" |
50 | ||
51 | %{?with_tests:%{__make} test} | |
d342a0f2 JB |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
a77cb047 | 65 | %{perl_vendorarch}/Compress/LZF.pm |
66 | %dir %{perl_vendorarch}/auto/Compress/LZF | |
bd900c41 | 67 | %attr(755,root,root) %{perl_vendorarch}/auto/Compress/LZF/LZF.so |
7ed133e5 | 68 | %{_mandir}/man3/Compress::LZF.3pm* |