3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: List::MoreUtils - provide the stuff missing in List::Util
9 Summary(pl.UTF-8): List::MoreUtils - dostarczenie elementów brakujących w List::Util
10 Name: perl-List-MoreUtils
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 0c5c4650eb52ed58cac67d81be1004f3
18 URL: http://search.cpan.org/dist/List-MoreUtils/
19 BuildRequires: perl-ExtUtils-MakeMaker >= 6.86
20 BuildRequires: perl-ExtUtils-CBuilder >= 0.27
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: perl-Exporter-Tiny >= 0.038
25 BuildRequires: perl-Test-Simple >= 0.96
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 List::MoreUtils provides some trivial but commonly needed
31 functionality on lists which is not going to go into List::Util.
33 All of the below functions are implementable in one line of Perl code.
34 Using the functions from this module however should give slightly
35 better performance as everything is implemented in C. The pure-Perl
36 implementation of these functions only serves as a fallback in case
37 the C portions of this module couldn't be compiled on this machine.
39 %description -l pl.UTF-8
40 List::MoreUtils dostarcza prostych, ale często potrzebnych funkcji do
41 operacji na listach - elementy, które nie zostaną dołączone do
44 Wszystkie z funkcji są możliwe do implementowania w jednej linijce
45 kodu Perla. Używanie funkcji z tego modułu może jednak dać odrobinę
46 większą wydajność jako, że całość została napisana w C. Implementacja
47 napisana w Perlu służy w sytuacjach wyjątkowych w przypadkach, gdy
48 elementy modułu napisane w C nie mogą zostać skompilowane na maszynie.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
54 %{__perl} Makefile.PL \
59 OPTIMIZE="%{rpmcflags}"
61 %{?with_tests:%{__make} test}
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %dir %{perl_vendorarch}/List
76 %{perl_vendorarch}/List/MoreUtils.pm
77 %{perl_vendorarch}/List/MoreUtils
78 %dir %{perl_vendorarch}/auto/List/MoreUtils
79 %attr(755,root,root) %{perl_vendorarch}/auto/List/MoreUtils/MoreUtils.so
80 %{_mandir}/man3/List::MoreUtils*.3pm*