diff --git a/.gitignore b/.gitignore index e69de29..29b0e33 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bignum-0.47.tar.gz diff --git a/perl-bignum.spec b/perl-bignum.spec new file mode 100644 index 0000000..8564131 --- /dev/null +++ b/perl-bignum.spec @@ -0,0 +1,70 @@ +Name: perl-bignum +Version: 0.47 +Release: 1%{?dist} +Summary: Transparent big number support for Perl +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/bignum/ +Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/bignum-%{version}.tar.gz +BuildArch: noarch +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(:VERSION) >= 5.6.0 +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(Math::BigFloat) +BuildRequires: perl(Math::BigInt) >= 1.999718 +BuildRequires: perl(Math::BigRat) >= 0.12 +BuildRequires: perl(overload) +# Optional run-time: +# Math::BigInt::Lite not packaged +# Tests: +# Algorithm::Combinatorics not used +BuildRequires: perl(Test::More) >= 0.47 +# Optional tests: +# Module::Signature not used and not helpful +# Socket not used +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(Math::BigInt) >= 1.999718 +Requires: perl(Math::BigRat) >= 0.12 +Conflicts: perl < 4:5.22.0-348 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Math::BigInt\\)$ + +%description +This package attempts to make it easier to write scripts that use BigInts and +BigFloats in a transparent way. + +%prep +%setup -q -n bignum-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc BUGS CHANGES README TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Dec 23 2016 Petr Pisar 0.47-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..1ff33a6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (bignum-0.47.tar.gz) = 64869f6f1511d3a977836fd5f0d87f737ee3fa5e8e0824409053013298da7a0881d3d685912b13fa295ee9cdbd650cc555aa5e54e58fdb3a84e8f21f548378a9