]> git.pld-linux.org Git - packages/perl-Math-Prime-XS.git/blame - perl-Math-Prime-XS.spec
use generic url
[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
ed39cbb4 11Version: 0.26
1c4aba9b
MP
12Release: 1
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
ed39cbb4 17# Source0-md5: 5bd7727093742cc85cd6c762422c98c8
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
54%{perl_vendorarch}/Math/Prime/XS.pm
55%dir %{perl_vendorarch}/auto/Math/Prime/XS
1c4aba9b
MP
56%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so
57%{_mandir}/man3/*
This page took 0.072183 seconds and 4 git commands to generate.