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