SPECS: perl-Math-Prime-XS.spec (NEW) - initial, build/works here, ...

agaran agaran at pld-linux.org
Fri Mar 21 23:11:53 CET 2008


Author: agaran                       Date: Fri Mar 21 22:11:53 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, build/works here, rel 1

---- Files affected:
SPECS:
   perl-Math-Prime-XS.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Math-Prime-XS.spec
diff -u /dev/null SPECS/perl-Math-Prime-XS.spec:1.1
--- /dev/null	Fri Mar 21 23:11:53 2008
+++ SPECS/perl-Math-Prime-XS.spec	Fri Mar 21 23:11:48 2008
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Math
+%define	pnam	Prime-XS
+Summary:	Math::Prime::XS - Calculate/detect prime numbers with deterministic tests
+#Summary(pl.UTF-8):	
+Name:		perl-Math-Prime-XS
+Version:	0.19
+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:	b8a63654195d4cc51dc486706b6c955e
+# generic URL, check or change before uncommenting
+#URL:		http://search.cpan.org/dist/Math-Prime-XS/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+%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.
+
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+	#config="optimize='%{rpmcflags}'" \
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README
+%{perl_vendorarch}/Math/Prime/XS.pm
+%dir %{perl_vendorarch}/auto/Math/Prime/XS
+%{perl_vendorarch}/auto/Math/Prime/XS/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Prime/XS/*.so
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-03-21 22:11:48  agaran
+- initial, build/works here, rel 1
+
================================================================


More information about the pld-cvs-commit mailing list