]>
Commit | Line | Data |
---|---|---|
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 | |
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.19 | |
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: b8a63654195d4cc51dc486706b6c955e | |
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/* |