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