]> git.pld-linux.org Git - packages/perl-Math-Prime-XS.git/blame - perl-Math-Prime-XS.spec
- initial, build/works here, rel 1
[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
12Version: 0.19
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
18# Source0-md5: b8a63654195d4cc51dc486706b6c955e
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}
24%endif
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Math::Prime::XS calculates/detects prime numbers by either applying
29Modulo operator division, the Sieve of Eratosthenes, Trial division or a
30Summing calculation.
31
32
33
34# %description -l pl.UTF-8
35# TODO
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41 #config="optimize='%{rpmcflags}'" \
42%{__perl} Build.PL \
43 destdir=$RPM_BUILD_ROOT \
44 installdirs=vendor
45./Build
46
47%{?with_tests:./Build test}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51
52./Build install
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
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
64%{_mandir}/man3/*
This page took 0.03136 seconds and 4 git commands to generate.