]>
Commit | Line | Data |
---|---|---|
5d704c0b | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
db622510 | 5 | %define pdir Compress |
6 | %define pnam LZV1 | |
d330743d | 7 | Summary: Compress::LZV1 Perl module - extremely leight-weight Lev-Zimpel-Vogt compression |
86537a68 | 8 | Summary(pl.UTF-8): Moduł Perla Compress::LZV1 - ekstremalnie lekka kompresja Lev-Zimpel-Vogt |
d330743d JB |
9 | Name: perl-Compress-LZV1 |
10 | Version: 0.04 | |
915f4e57 | 11 | Release: 21 |
26620d66 | 12 | License: GPL v2 |
d330743d | 13 | Group: Development/Languages/Perl |
4d040dca | 14 | Source0: http://www.cpan.org/modules/by-module/Compress/%{pdir}-%{pnam}-%{version}.tar.gz |
920d28bf | 15 | # Source0-md5: 1e6ee23a325a5f1475052576280d7250 |
4d040dca | 16 | URL: http://search.cpan.org/dist/Compress-LZV1/ |
7b7605a2 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
f3ea2ced | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
d330743d JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | LZV1 is an extremely fast (not that much slower than a pure memcpy) | |
23 | compression algorithm. It is ideal for applications where you want to | |
24 | save *some* space but not at the cost of speed. It is ideal for | |
25 | repetitive data as well. The module is self-contained and very small | |
26 | (no large library to be pulled in). It is also free, so there should | |
27 | be no problems incoporating this module into commercial programs. It | |
28 | is believed that it is free from any patents. | |
29 | ||
475a3154 JR |
30 | %description -l pl.UTF-8 |
31 | LZV1 jest ekstremalnie szybkim (nie tak dużo wolniejszym od memcpy) | |
32 | algorytmem kompresji. Jest idealny dla programów, które chcą | |
33 | zaoszczędzić *trochę* miejsca, ale nie kosztem szybkości. Jest idealny | |
34 | dla powtarzających się danych. Moduł jest mały i nie wymaga żadnej | |
35 | dodatkowej dużej biblioteki. Jest wolnodostępny, więc nie powinno być | |
36 | problemów z wykorzystaniem go w komercyjnych programach. Według | |
37 | aktualnego stanu wiedzy jest wolny od patentów. | |
d330743d JB |
38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
f3ea2ced | 43 | %{__perl} Makefile.PL \ |
1ece1080 | 44 | INSTALLDIRS=vendor |
5d704c0b | 45 | %{__make} \ |
9049d7a0 | 46 | CC="%{__cc}" \ |
5d704c0b | 47 | OPTIMIZE="%{rpmcflags}" |
48 | ||
49 | %{?with_tests:%{__make} test} | |
d330743d 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 Changes README | |
f3ea2ced | 63 | %{perl_vendorarch}/Compress/LZV1.pm |
64 | %dir %{perl_vendorarch}/auto/Compress/LZV1 | |
f3ea2ced | 65 | %attr(755,root,root) %{perl_vendorarch}/auto/Compress/LZV1/*.so |
d330743d | 66 | %{_mandir}/man3/* |