[packages/perl-Math-Factor-XS] - initial
arekm
arekm at pld-linux.org
Tue Jun 9 20:22:19 CEST 2015
commit 3fc13616d6f1caddc7cf20a4c7db29bbac29fec4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Jun 9 20:22:06 2015 +0200
- initial
perl-Math-Factor-XS.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
---
diff --git a/perl-Math-Factor-XS.spec b/perl-Math-Factor-XS.spec
new file mode 100644
index 0000000..5443479
--- /dev/null
+++ b/perl-Math-Factor-XS.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Math
+%define pnam Factor-XS
+%include /usr/lib/rpm/macros.perl
+Summary: Math::Factor::XS - Factorize numbers and calculate matching multiplications
+Name: perl-Math-Factor-XS
+Version: 0.40
+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: fec7d1291fd9fecebe316d57f2a16cd3
+URL: http://search.cpan.org/dist/Math-Factor-XS/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-List-MoreUtils
+BuildRequires: perl-Params-Validate
+BuildRequires: perl-boolean
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Math::Factor::XS factorizes numbers by applying trial divisions.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__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
+%dir %{perl_vendorarch}/Math/Factor
+%{perl_vendorarch}/Math/Factor/XS.pm
+%dir %{perl_vendorarch}/auto/Math/Factor
+%dir %{perl_vendorarch}/auto/Math/Factor/XS
+%{perl_vendorarch}/auto/Math/Factor/XS/XS.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/Factor/XS/XS.so
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-Factor-XS.git/commitdiff/3fc13616d6f1caddc7cf20a4c7db29bbac29fec4
More information about the pld-cvs-commit
mailing list