]> git.pld-linux.org Git - packages/perl-List-MoreUtils-XS.git/blame - perl-List-MoreUtils-XS.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-List-MoreUtils-XS.git] / perl-List-MoreUtils-XS.spec
CommitLineData
7684be3a
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir List
6%define pnam MoreUtils-XS
7684be3a
JB
7Summary: List::MoreUtils::XS - Provide compiled List::MoreUtils functions
8Summary(pl.UTF-8): List::MoreUtils::XS - skompilowane funkcje List::MoreUtils
9Name: perl-List-MoreUtils-XS
10Version: 0.428
ff5dec1d 11Release: 2
7684be3a
JB
12# for 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)
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 79939a9c2deb83ea2fa7fcbd3ad9c5c9
17URL: https://metacpan.org/release/List-MoreUtils-XS
18BuildRequires: perl-devel >= 1:5.8.1
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Storable
22BuildRequires: perl-Test-Simple >= 0.96
23%endif
24Conflicts: perl-List-MoreUtils < 0.417
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28List::MoreUtils::XS is a backend for List::MoreUtils. Even if it's
29possible (because of user wishes) to have it practically independent
30from List::MoreUtils, it technically depend on List::MoreUtils. Since
31it's only a backend, the API is not public and can change without any
32warning.
33
34%description -l pl.UTF-8
35List::MoreUtils::XS to backend dla List::MoreUtils. Nawet jeśli jest
36możliwe (ze względu na życzenia użytkownika) zainstalowanie tego
37modułu niezależnie od List::MoreUtils, technicznie zależy on od
38List::MoreUtils. Ponieważ jest to tylko backend, API nie jest
39publiczne i może się zmienić bez ostrzeżenia.
40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make} \
48 CC="%{__cc}" \
49 OPTIMIZE="%{rpmcflags}"
50
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
64%doc Changes README.md
65%dir %{perl_vendorarch}/List/MoreUtils
66%{perl_vendorarch}/List/MoreUtils/XS.pm
67%dir %{perl_vendorarch}/auto/List/MoreUtils
68%dir %{perl_vendorarch}/auto/List/MoreUtils/XS
69%attr(755,root,root) %{perl_vendorarch}/auto/List/MoreUtils/XS/XS.so
70%{_mandir}/man3/List::MoreUtils::XS.3pm*
This page took 0.128837 seconds and 4 git commands to generate.