3 %bcond_without tests # unit tests
6 %define pnam MoreUtils-XS
7 Summary: List::MoreUtils::XS - Provide compiled List::MoreUtils functions
8 Summary(pl.UTF-8): List::MoreUtils::XS - skompilowane funkcje List::MoreUtils
9 Name: perl-List-MoreUtils-XS
12 # for code before 0.417: same as perl 5.8.4 or later
13 License: Apache v2.0 (code since 0.417), GPL v1+ or Artistic (older code)
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e77113e55b046906aecfb4ddb4f0c662
17 URL: https://metacpan.org/dist/List-MoreUtils-XS
18 BuildRequires: perl-devel >= 1:5.8.1
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRequires: perl-Storable
23 BuildRequires: perl-Test-Simple >= 0.96
25 Conflicts: perl-List-MoreUtils < 0.417
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 List::MoreUtils::XS is a backend for List::MoreUtils. Even if it's
30 possible (because of user wishes) to have it practically independent
31 from List::MoreUtils, it technically depend on List::MoreUtils. Since
32 it's only a backend, the API is not public and can change without any
35 %description -l pl.UTF-8
36 List::MoreUtils::XS to backend dla List::MoreUtils. Nawet jeśli jest
37 możliwe (ze względu na życzenia użytkownika) zainstalowanie tego
38 modułu niezależnie od List::MoreUtils, technicznie zależy on od
39 List::MoreUtils. Ponieważ jest to tylko backend, API nie jest
40 publiczne i może się zmienić bez ostrzeżenia.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 OPTIMIZE="%{rpmcflags}"
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc Changes README.md
66 %dir %{perl_vendorarch}/List/MoreUtils
67 %{perl_vendorarch}/List/MoreUtils/XS.pm
68 %dir %{perl_vendorarch}/auto/List/MoreUtils
69 %dir %{perl_vendorarch}/auto/List/MoreUtils/XS
70 %attr(755,root,root) %{perl_vendorarch}/auto/List/MoreUtils/XS/XS.so
71 %{_mandir}/man3/List::MoreUtils::XS.3pm*