3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
9 Summary: Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
11 Name: perl-Math-Prime-XS
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 438175251c223384127bed4651537b0d
19 # generic URL, check or change before uncommenting
20 #URL: http://search.cpan.org/dist/Math-Prime-XS/
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 %if %{with autodeps} || %{with tests}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Math::Prime::XS calculates/detects prime numbers by either applying
29 Modulo operator division, the Sieve of Eratosthenes, Trial division or a
34 # %description -l pl.UTF-8
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 #config="optimize='%{rpmcflags}'" \
43 destdir=$RPM_BUILD_ROOT \
47 %{?with_tests:./Build test}
50 rm -rf $RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc Changes INSTALL README
60 %{perl_vendorarch}/Math/Prime/XS.pm
61 %dir %{perl_vendorarch}/auto/Math/Prime/XS
62 %{perl_vendorarch}/auto/Math/Prime/XS/*.bs
63 %attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so