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: http://www.cpan.org/modules/by-authors/id/V/VP/VPARSEVAL/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 3a6ec506f40662ab1296c48c5eb72016
19 URL: http://search.cpan.org/dist/List-MoreUtils/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 List::MoreUtils provides some trivial but commonly needed
26 functionality on lists which is not going to go into List::Util.
28 All of the below functions are implementable in one line of Perl code.
29 Using the functions from this module however should give slightly
30 better performance as everything is implemented in C. The pure-Perl
31 implementation of these functions only serves as a fallback in case
32 the C portions of this module couldn't be compiled on this machine.
34 %description -l pl.UTF-8
35 List::MoreUtils dostarcza prostych, ale często potrzebnych funkcji do
36 operacji na listach - elementy, które nie zostaną dołączone do
39 Wszystkie z funkcji są możliwe do implementowania w jednej linijce
40 kodu Perla. Używanie funkcji z tego modułu może jednak dać odrobinę
41 większą wydajność jako, że całość została napisana w C. Implementacja
42 napisana w Perlu służy w sytuacjach wyjątkowych w przypadkach, gdy
43 elementy modułu napisane w C nie mogą zostać skompilowane na maszynie.
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
54 OPTIMIZE="%{rpmcflags}"
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %dir %{perl_vendorarch}/List
71 %{perl_vendorarch}/List/MoreUtils.pm
72 %dir %{perl_vendorarch}/auto/List/MoreUtils
73 %{perl_vendorarch}/auto/List/MoreUtils/MoreUtils.bs
74 %attr(755,root,root) %{perl_vendorarch}/auto/List/MoreUtils/MoreUtils.so