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