]> git.pld-linux.org Git - packages/perl-List-MoreUtils-XS.git/blob - perl-List-MoreUtils-XS.spec
e8c5e083cefcf9973bba7df2e02f8777740bfb07
[packages/perl-List-MoreUtils-XS.git] / perl-List-MoreUtils-XS.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    List
6 %define         pnam    MoreUtils-XS
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        List::MoreUtils::XS - Provide compiled List::MoreUtils functions
9 Summary(pl.UTF-8):      List::MoreUtils::XS - skompilowane funkcje List::MoreUtils
10 Name:           perl-List-MoreUtils-XS
11 Version:        0.428
12 Release:        2
13 # for code before 0.417: same as perl 5.8.4 or later
14 License:        Apache v2.0 (code since 0.417), GPL v1+ or Artistic (older code)
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/List/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  79939a9c2deb83ea2fa7fcbd3ad9c5c9
18 URL:            https://metacpan.org/release/List-MoreUtils-XS
19 BuildRequires:  perl-devel >= 1:5.8.1
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Storable
23 BuildRequires:  perl-Test-Simple >= 0.96
24 %endif
25 Conflicts:      perl-List-MoreUtils < 0.417
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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
33 warning.
34
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make} \
49         CC="%{__cc}" \
50         OPTIMIZE="%{rpmcflags}"
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} pure_install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
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*
This page took 0.052211 seconds and 2 git commands to generate.