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