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