[packages/perl-Math-Prime-XS] - initial

arekm arekm at pld-linux.org
Tue Jun 9 20:26:07 CEST 2015


commit 22b8cd843f595b53e71d9c7fccf6bb6885eb1b18
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jun 9 20:26:02 2015 +0200

    - initial

 perl-Math-Prime-XS.spec | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/perl-Math-Prime-XS.spec b/perl-Math-Prime-XS.spec
index 3085211..9c4a5b1 100644
--- a/perl-Math-Prime-XS.spec
+++ b/perl-Math-Prime-XS.spec
@@ -1,38 +1,38 @@
 #
 # Conditional build:
-%bcond_without	autodeps	# don't BR packages needed only for resolving deps
 %bcond_without	tests		# do not perform "make test"
-
-%define	pdir	Math
-%define	pnam	Prime-XS
+#
+%define		pdir	Math
+%define		pnam	Prime-XS
 %include	/usr/lib/rpm/macros.perl
-Summary:	Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
+Summary:	Math::Prime::XS - Detect and calculate prime numbers with deterministic tests
 Name:		perl-Math-Prime-XS
-Version:	0.26
+Version:	0.26_01
 Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	5bd7727093742cc85cd6c762422c98c8
+Source0:	http://www.cpan.org/modules/by-authors/id/K/KR/KRYDE/Math-Prime-XS-%{version}.tar.gz
+# Source0-md5:	b93a438fd10640b47910be8f9c3403ba
 URL:		http://search.cpan.org/dist/Math-Prime-XS/
+BuildRequires:	perl-Module-Build
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
-%if %{with autodeps} || %{with tests}
+%if %{with tests}
+BuildRequires:	perl-Params-Validate
 BuildRequires:	perl-boolean
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Math::Prime::XS calculates/detects prime numbers by either applying
-Modulo operator division, the Sieve of Eratosthenes, Trial division or
-a Summing calculation.
+Math::Prime::XS detects and calculates prime numbers by either
+applying Modulo operator division, the Sieve of Eratosthenes, a
+Summation calculation or Trial division.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-	#config="optimize='%{rpmcflags}'" \
 %{__perl} Build.PL \
 	destdir=$RPM_BUILD_ROOT \
 	installdirs=vendor
@@ -51,7 +51,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc Changes INSTALL README
+%dir %{perl_vendorarch}/Math/Prime
 %{perl_vendorarch}/Math/Prime/XS.pm
+%dir %{perl_vendorarch}/auto/Math/Prime
 %dir %{perl_vendorarch}/auto/Math/Prime/XS
-%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/XS.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/XS.so
 %{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-Prime-XS.git/commitdiff/22b8cd843f595b53e71d9c7fccf6bb6885eb1b18



More information about the pld-cvs-commit mailing list