]> git.pld-linux.org Git - packages/perl-List-MoreUtils.git/blame - perl-List-MoreUtils.spec
- tabs in preamble
[packages/perl-List-MoreUtils.git] / perl-List-MoreUtils.spec
CommitLineData
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 8Summary: List::MoreUtils - provide the stuff missing in List::Util
c22cb832 9Summary(pl.UTF-8): List::MoreUtils - dostarczenie elementów brakujących w List::Util
681cdd43 10Name: perl-List-MoreUtils
beab3ee4
JB
11Version: 0.22
12Release: 1
681cdd43
AG
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
beab3ee4
JB
16#Source0: http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
17Source0: http://www.cpan.org/modules/by-authors/id/V/VP/VPARSEVAL/%{pdir}-%{pnam}-%{version}.tar.gz
18# Source0-md5: 3a6ec506f40662ab1296c48c5eb72016
681cdd43
AG
19URL: http://search.cpan.org/dist/List-MoreUtils/
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25List::MoreUtils provides some trivial but commonly needed
26functionality on lists which is not going to go into List::Util.
27
28All of the below functions are implementable in one line of Perl code.
29Using the functions from this module however should give slightly
30better performance as everything is implemented in C. The pure-Perl
31implementation of these functions only serves as a fallback in case
32the C portions of this module couldn't be compiled on this machine.
33
73092f16
JR
34%description -l pl.UTF-8
35List::MoreUtils dostarcza prostych, ale często potrzebnych funkcji do
36operacji na listach - elementy, które nie zostaną dołączone do
681cdd43
AG
37List::Util.
38
73092f16
JR
39Wszystkie z funkcji są możliwe do implementowania w jednej linijce
40kodu Perla. Używanie funkcji z tego modułu może jednak dać odrobinę
41większą wydajność jako, że całość została napisana w C. Implementacja
42napisana w Perlu służy w sytuacjach wyjątkowych w przypadkach, gdy
43elementy modułu napisane w C nie mogą zostać skompilowane na maszynie.
681cdd43
AG
44
45%prep
46%setup -q -n %{pdir}-%{pnam}-%{version}
47
48%build
49%{__perl} Makefile.PL \
50 INSTALLDIRS=vendor
51
52%{__make} \
53 OPTIMIZE="%{rpmcflags}"
54
55%{?with_tests:%{__make} test}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
68%doc Changes README
bc681e13 69%dir %{perl_vendorarch}/List
beab3ee4
JB
70%{perl_vendorarch}/List/MoreUtils.pm
71%dir %{perl_vendorarch}/auto/List/MoreUtils
72%{perl_vendorarch}/auto/List/MoreUtils/MoreUtils.bs
73%attr(755,root,root) %{perl_vendorarch}/auto/List/MoreUtils/MoreUtils.so
681cdd43 74%{_mandir}/man3/*
This page took 0.0613 seconds and 4 git commands to generate.