This commit is contained in:
Petr Písař 2017-01-06 10:30:13 +01:00
parent 8ec60dc6ce
commit e82f062044
3 changed files with 72 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/bignum-0.47.tar.gz

70
perl-bignum.spec Normal file
View File

@ -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 <ppisar@redhat.com> 0.47-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
SHA512 (bignum-0.47.tar.gz) = 64869f6f1511d3a977836fd5f0d87f737ee3fa5e8e0824409053013298da7a0881d3d685912b13fa295ee9cdbd650cc555aa5e54e58fdb3a84e8f21f548378a9