]> git.pld-linux.org Git - packages/perl-List-MoreUtils-XS.git/blob - perl-List-MoreUtils-XS.spec
- updated URL
[packages/perl-List-MoreUtils-XS.git] / perl-List-MoreUtils-XS.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    List
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
10 Version:        0.430
11 Release:        4
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
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.109952 seconds and 4 git commands to generate.