]> git.pld-linux.org Git - packages/perl-Math-Prime-XS.git/blame - perl-Math-Prime-XS.spec
perl 5.38.0 rebuild
[packages/perl-Math-Prime-XS.git] / perl-Math-Prime-XS.spec
CommitLineData
1c4aba9b
MP
1#
2# Conditional build:
3%bcond_without autodeps # don't BR packages needed only for resolving deps
4%bcond_without tests # do not perform "make test"
b058f967 5
1c4aba9b
MP
6%define pdir Math
7%define pnam Prime-XS
8Summary: Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
1c4aba9b 9Name: perl-Math-Prime-XS
1e403c57 10Version: 0.26_01
767e8847 11Release: 13
1c4aba9b
MP
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
1e403c57 16# Source0-md5: b93a438fd10640b47910be8f9c3403ba
b058f967 17URL: http://search.cpan.org/dist/Math-Prime-XS/
1c4aba9b
MP
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with autodeps} || %{with tests}
ed39cbb4 21BuildRequires: perl-boolean
1c4aba9b
MP
22%endif
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Math::Prime::XS calculates/detects prime numbers by either applying
ed39cbb4 27Modulo operator division, the Sieve of Eratosthenes, Trial division or
28a Summing calculation.
1c4aba9b 29
1c4aba9b
MP
30%prep
31%setup -q -n %{pdir}-%{pnam}-%{version}
32
33%build
34 #config="optimize='%{rpmcflags}'" \
35%{__perl} Build.PL \
36 destdir=$RPM_BUILD_ROOT \
37 installdirs=vendor
38./Build
39
40%{?with_tests:./Build test}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44
45./Build install
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(644,root,root,755)
52%doc Changes INSTALL README
1e403c57 53%dir %{perl_vendorarch}/Math/Prime
1c4aba9b 54%{perl_vendorarch}/Math/Prime/XS.pm
1e403c57 55%dir %{perl_vendorarch}/auto/Math/Prime
1c4aba9b 56%dir %{perl_vendorarch}/auto/Math/Prime/XS
1c4aba9b
MP
57%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so
58%{_mandir}/man3/*
This page took 0.110912 seconds and 4 git commands to generate.