]> git.pld-linux.org Git - packages/perl-Math-Prime-XS.git/blob - perl-Math-Prime-XS.spec
7b350d2e820e494a678ac4e0328c118a332e7a70
[packages/perl-Math-Prime-XS.git] / perl-Math-Prime-XS.spec
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
9 Summary:        Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
10 #Summary(pl.UTF-8):     
11 Name:           perl-Math-Prime-XS
12 Version:        0.20
13 Release:        1
14 # same as perl
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}
24 %endif
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Math::Prime::XS calculates/detects prime numbers by either applying
29 Modulo operator division, the Sieve of Eratosthenes, Trial division or a
30 Summing 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
50 rm -rf $RPM_BUILD_ROOT
51
52 ./Build install
53
54 %clean
55 rm -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.079846 seconds and 3 git commands to generate.