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