]>
Commit | Line | Data |
---|---|---|
681cdd43 AG |
1 | # |
2 | # Conditional build: | |
7f561039 | 3 | %bcond_without tests # unit tests |
681cdd43 | 4 | # |
3deef84b | 5 | %define pdir List |
6 | %define pnam MoreUtils | |
681cdd43 | 7 | Summary: List::MoreUtils - provide the stuff missing in List::Util |
c22cb832 | 8 | Summary(pl.UTF-8): List::MoreUtils - dostarczenie elementów brakujących w List::Util |
681cdd43 | 9 | Name: perl-List-MoreUtils |
10c6bb9f | 10 | Version: 0.430 |
780d4de9 | 11 | Release: 1 |
68805bd4 JB |
12 | # code before 0.417: same as perl 5.8.4 or later |
13 | License: Apache v2.0 (code since 0.417), GPL v1+ or Artistic (older code) | |
681cdd43 | 14 | Group: Development/Languages/Perl |
8d1f8f43 | 15 | Source0: http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz |
10c6bb9f | 16 | # Source0-md5: daccd6310021231b827dcc943ff1c6b7 |
7f561039 | 17 | URL: https://metacpan.org/dist/List-MoreUtils |
9a2e44ed | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.86 |
8d1f8f43 | 19 | BuildRequires: perl-ExtUtils-CBuilder >= 0.27 |
68805bd4 | 20 | BuildRequires: perl-devel >= 1:5.8.1 |
681cdd43 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
10c6bb9f | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
8d1f8f43 | 23 | %if %{with tests} |
9a2e44ed | 24 | BuildRequires: perl-Exporter-Tiny >= 0.038 |
10c6bb9f | 25 | BuildRequires: perl-List-MoreUtils-XS >= 0.430 |
68805bd4 | 26 | BuildRequires: perl-Storable |
10c6bb9f | 27 | BuildRequires: perl-Test-LeakTrace |
53870b5d | 28 | BuildRequires: perl-Test-Simple >= 0.96 |
8d1f8f43 | 29 | %endif |
780d4de9 | 30 | BuildArch: noarch |
681cdd43 AG |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | List::MoreUtils provides some trivial but commonly needed | |
35 | functionality on lists which is not going to go into List::Util. | |
36 | ||
37 | All of the below functions are implementable in one line of Perl code. | |
38 | Using the functions from this module however should give slightly | |
39 | better performance as everything is implemented in C. The pure-Perl | |
40 | implementation of these functions only serves as a fallback in case | |
41 | the C portions of this module couldn't be compiled on this machine. | |
42 | ||
73092f16 JR |
43 | %description -l pl.UTF-8 |
44 | List::MoreUtils dostarcza prostych, ale często potrzebnych funkcji do | |
45 | operacji na listach - elementy, które nie zostaną dołączone do | |
681cdd43 AG |
46 | List::Util. |
47 | ||
73092f16 JR |
48 | Wszystkie z funkcji są możliwe do implementowania w jednej linijce |
49 | kodu Perla. Używanie funkcji z tego modułu może jednak dać odrobinę | |
50 | większą wydajność jako, że całość została napisana w C. Implementacja | |
51 | napisana w Perlu służy w sytuacjach wyjątkowych w przypadkach, gdy | |
52 | elementy modułu napisane w C nie mogą zostać skompilowane na maszynie. | |
681cdd43 AG |
53 | |
54 | %prep | |
55 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
56 | ||
57 | %build | |
58 | %{__perl} Makefile.PL \ | |
59 | INSTALLDIRS=vendor | |
60 | ||
f322ecea | 61 | %{__make} |
681cdd43 AG |
62 | |
63 | %{?with_tests:%{__make} test} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
68805bd4 | 76 | %doc Changes README.md |
780d4de9 JR |
77 | %dir %{perl_vendorlib}/List |
78 | %{perl_vendorlib}/List/MoreUtils.pm | |
79 | %{perl_vendorlib}/List/MoreUtils | |
9a2e44ed | 80 | %{_mandir}/man3/List::MoreUtils*.3pm* |