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): 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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 591e64f035db665a389fc1fea218c8ec
18 URL: http://search.cpan.org/dist/List-MoreUtils/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 List::MoreUtils provides some trivial but commonly needed
25 functionality on lists which is not going to go into List::Util.
27 All of the below functions are implementable in one line of Perl code.
28 Using the functions from this module however should give slightly
29 better performance as everything is implemented in C. The pure-Perl
30 implementation of these functions only serves as a fallback in case
31 the C portions of this module couldn't be compiled on this machine.
34 List::MoreUtils dostarcza prostych, ale czêsto potrzebnych funkcji do
35 operacji na listach - elementy, które nie zostan± do³±czone do
38 Wszystkie z funkcji s± mo¿liwe do implementowania w jednej linijce
39 kodu Perla. U¿ywanie funkcji z tego modu³u mo¿e jednak daæ odrobinê
40 wiêksz± wydajno¶æ jako, ¿e ca³o¶æ zosta³a napisana w C. Implementacja
41 napisana w perlu s³u¿y w sytuacjach wyj±tkowych w przypadkach, gdy
42 elementy modu³u napisane w C nie mog± zostaæ skompilowane na maszynie.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 OPTIMIZE="%{rpmcflags}"
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %{perl_vendorarch}/List/*.pm