3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 Summary: Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
9 Name: perl-Math-Prime-XS
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b93a438fd10640b47910be8f9c3403ba
17 URL: http://search.cpan.org/dist/Math-Prime-XS/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 %if %{with autodeps} || %{with tests}
21 BuildRequires: perl-boolean
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Math::Prime::XS calculates/detects prime numbers by either applying
27 Modulo operator division, the Sieve of Eratosthenes, Trial division or
28 a Summing calculation.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 #config="optimize='%{rpmcflags}'" \
36 destdir=$RPM_BUILD_ROOT \
40 %{?with_tests:./Build test}
43 rm -rf $RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc Changes INSTALL README
53 %dir %{perl_vendorarch}/Math/Prime
54 %{perl_vendorarch}/Math/Prime/XS.pm
55 %dir %{perl_vendorarch}/auto/Math/Prime
56 %dir %{perl_vendorarch}/auto/Math/Prime/XS
57 %attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so