diff --git a/.gitignore b/.gitignore index e69de29..19f2239 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Math-BigInt-FastCalc-0.5005.tar.gz diff --git a/perl-Math-BigInt-FastCalc.spec b/perl-Math-BigInt-FastCalc.spec new file mode 100644 index 0000000..82d4f3d --- /dev/null +++ b/perl-Math-BigInt-FastCalc.spec @@ -0,0 +1,71 @@ +Name: perl-Math-BigInt-FastCalc +%global cpan_version 0.5005 +Version: 0.500.500 +Release: 1%{?dist} +Summary: Math::BigInt::Calc with some XS for more speed +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Math-BigInt-FastCalc/ +Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-FastCalc-%{cpan_version}.tar.gz +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(:VERSION) >= 5.6.0 +# Math::BigInt::Calc version listed as a string by mistake, CPAN RT#119413 +BuildRequires: perl(Math::BigInt::Calc) >= 1.999801 +BuildRequires: perl(XSLoader) +# Tests: +# Config::Tiny not used +# Exporter not used +# lib not used +BuildRequires: perl(Math::BigFloat) +BuildRequires: perl(Math::BigInt) >= 1.999801 +# Scalar::Util not used +BuildRequires: perl(Test::More) >= 0.82 +# Optional tests: +# Module::Signature not used and not helpful +# Socket not used +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Math::BigInt::Calc version listed as a string by mistake, CPAN RT#119413 +Requires: perl(Math::BigInt::Calc) >= 1.999801 +Conflicts: perl < 4:5.22.0-348 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Math::BigInt::Calc\\)$ + +%description +This Perl module provides support for fast big integer calculations. + +%prep +%setup -q -n Math-BigInt-FastCalc-%{cpan_version} + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc CHANGES CREDITS README TODO +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Math* +%{_mandir}/man3/* + +%changelog +* Fri Dec 23 2016 Petr Pisar 0.500.500-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..284b550 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Math-BigInt-FastCalc-0.5005.tar.gz) = 7006d29531614ac214d9f25c58a4462d383e2e3c3228f141f4939a493d48465c2373817ec16aadce8d839a8a74a88ac678d45e87289f07a4a15e67adc2f1ab95