]>
Commit | Line | Data |
---|---|---|
b95a4d46 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
110d86f6 | 4 | |
ba10f911 | 5 | %define pdir Tie |
6 | %define pnam LLHash | |
05134e2f | 7 | Summary: Tie::LLHash Perl module - ordered hashes |
11ca1a6f | 8 | Summary(pl.UTF-8): Moduł Perla Tie::LLHash - uporządkowane hasze |
97d1b3bd | 9 | Name: perl-Tie-LLHash |
c8fae558 | 10 | Version: 1.003 |
1b5bed56 | 11 | Release: 2 |
b95a4d46 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
97d1b3bd | 14 | Group: Development/Languages/Perl |
bfc3e590 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
c8fae558 | 16 | # Source0-md5: b5890351e3e4a1eab89267d9aa410147 |
110d86f6 | 17 | URL: http://search.cpan.org/dist/Tie-LLHash/ |
1af3d3fa | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ed90d6f7 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
8b8fbeea | 20 | BuildArch: noarch |
b62a95a4 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97d1b3bd | 22 | |
23 | %description | |
05134e2f JB |
24 | This class implements an ordered hash-like object. It's a cross |
25 | between a Perl hash and a linked list. Use it whenever you want the | |
26 | speed and structure of a Perl hash, but the orderedness of a list. | |
27 | ||
b21777e3 JR |
28 | %description -l pl.UTF-8 |
29 | Ta klasa jest implementacją obiektu podobnego do hasza. Jest on | |
30 | skrzyżowaniem pomiędzy perlowym haszem a listą. Przydaje się kiedy | |
31 | potrzeba szybkości i struktury perlowych haszy, ale uporządkowania | |
05134e2f | 32 | listy. |
97d1b3bd | 33 | |
34 | %prep | |
baf46a35 | 35 | %setup -q -n %{pdir}-%{pnam}-%{version} |
97d1b3bd | 36 | |
37 | %build | |
ed90d6f7 | 38 | %{__perl} Makefile.PL \ |
d4726ad7 | 39 | INSTALLDIRS=vendor |
329581bb | 40 | %{__make} |
97d1b3bd | 41 | |
b95a4d46 | 42 | %{?with_tests:%{__make} test} |
43 | ||
97d1b3bd | 44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
97d1b3bd | 46 | |
b95a4d46 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
97d1b3bd | 49 | |
97d1b3bd | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
05134e2f | 55 | %doc Changes README |
ed90d6f7 | 56 | %{perl_vendorlib}/Tie/LLHash.pm |
97d1b3bd | 57 | %{_mandir}/man3/* |