32e858
# Run optional test
32e858
%bcond_without perl_Math_BigInt_enables_optional_test
32e858
32e858
Name:           perl-Math-BigInt
32e858
Epoch:          1
32e858
%global cpan_version 1.999811
32e858
# Keep 4-digit version to compete with perl.spec
32e858
Version:        %(echo %{cpan_version} | sed 's/\(\.....\)/\1./')
32e858
Release:        7%{?dist}
32e858
Summary:        Arbitrary-size integer and float mathematics
32e858
License:        GPL+ or Artistic
32e858
URL:            http://search.cpan.org/dist/Math-BigInt/
32e858
Source0:        http://www.cpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-%{cpan_version}.tar.gz
32e858
# Document Math::BigInt::CalcEmu requires Math::BigInt, bug #1689914,
32e858
# CPAN RT#85015, fixes in 1.999815 upstream by removing the module
32e858
Patch0:         Math-BigInt-1.999811-Document-Math-BigInt-CalcEmu-requires-Math-BigInt.patch
32e858
BuildArch:      noarch
32e858
BuildRequires:  make
32e858
BuildRequires:  perl-interpreter
32e858
BuildRequires:  perl-generators
32e858
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
32e858
BuildRequires:  perl(strict)
32e858
BuildRequires:  perl(warnings)
32e858
BuildRequires:  sed
32e858
# Run-time:
32e858
BuildRequires:  perl(Carp)
32e858
BuildRequires:  perl(constant)
32e858
BuildRequires:  perl(Exporter)
32e858
# File::Spec not used on recent perl
32e858
BuildRequires:  perl(integer)
32e858
BuildRequires:  perl(Math::Complex) >= 1.39
32e858
BuildRequires:  perl(overload)
32e858
# Tests:
32e858
BuildRequires:  perl(base)
32e858
BuildRequires:  perl(Config)
32e858
# Config::Tiny not used
32e858
BuildRequires:  perl(lib)
32e858
# Module::Signature not used
32e858
# Scalar::Util not used
32e858
# Socket not used
32e858
BuildRequires:  perl(Test::More) >= 0.94
32e858
%if %{with perl_Math_BigInt_enables_optional_test}
32e858
# Optional tests:
32e858
# This core module must be buildable without non-core modules at bootstrap.
32e858
%if !%{defined perl_bootstrap}
32e858
BuildRequires:  perl(Test::Pod) >= 1.22
32e858
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
32e858
BuildRequires:  perl(Pod::Coverage) >= 0.18
32e858
%endif
32e858
%endif
32e858
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
32e858
Requires:       perl(Math::Complex) >= 1.39
32e858
Conflicts:      perl < 4:5.22.0-347
32e858
32e858
# Do not export unversioned module
32e858
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\)\\s*$
32e858
32e858
%description
32e858
This provides Perl modules for arbitrary-size integer and float mathematics.
32e858
32e858
%prep
32e858
%setup -q -n Math-BigInt-%{cpan_version}
32e858
%patch0 -p1
32e858
32e858
%build
32e858
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
32e858
make %{?_smp_mflags}
32e858
32e858
%install
32e858
make pure_install DESTDIR=$RPM_BUILD_ROOT
32e858
%{_fixperms} $RPM_BUILD_ROOT/*
32e858
32e858
%check
32e858
make test
32e858
32e858
%files
32e858
%license LICENSE
32e858
# NEW file is useless
32e858
%doc BUGS CHANGES CREDITS examples GOALS HISTORY README TODO
32e858
%{perl_vendorlib}/*
32e858
%{_mandir}/man3/*
32e858
32e858
%changelog
32e858
* Tue Apr 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.11-7
32e858
- Enable gating 
32e858
32e858
* Mon Mar 18 2019 Petr Pisar <ppisar@redhat.com> - 1:1.9998.11-6
32e858
- Document Math::BigInt::CalcEmu requires Math::BigInt (bug #1689914)
32e858
32e858
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.11-5
32e858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
32e858
32e858
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.11-4
32e858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32e858
32e858
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.11-3
32e858
- Perl 5.26 re-rebuild of bootstrapped packages
32e858
32e858
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.11-2
32e858
- Perl 5.26 rebuild
32e858
32e858
* Fri Mar 17 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.11-1
32e858
- 1.999811 bump
32e858
32e858
* Thu Mar 02 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.10-1
32e858
- 1.999810 bump
32e858
32e858
* Mon Feb 13 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.09-1
32e858
- 1.999809 bump
32e858
32e858
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9998.08-2
32e858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
32e858
32e858
* Thu Jan 12 2017 Paul Howarth <paul@city-fan.org> - 1.9998.08-1
32e858
- 1.999808 bump
32e858
32e858
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.07-1
32e858
- 1.999807 bump
32e858
32e858
* Wed Dec 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9998.06-1
32e858
- 1.999806 bump
32e858
32e858
* Mon Dec 12 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.05-1
32e858
- 1.999805 bump
32e858
32e858
* Fri Dec 09 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.04-1
32e858
- 1.999804 bump
32e858
32e858
* Mon Dec 05 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.03-1
32e858
- 1.999803 bump
32e858
32e858
* Thu Dec 01 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.02-1
32e858
- 1.999802 bump
32e858
32e858
* Fri Nov 25 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.01-1
32e858
- 1.999801 bump
32e858
32e858
* Fri Nov 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.00-1
32e858
- 1.999800 bump
32e858
32e858
* Tue Nov 08 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.27-1
32e858
- 1.999727 bump
32e858
32e858
* Mon Jul 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.26-1
32e858
- 1.999726 bump
32e858
32e858
* Mon Jun 20 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.24-1
32e858
- 1.999724 bump
32e858
32e858
* Wed Jun 15 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.23-1
32e858
- 1.999723 bump
32e858
32e858
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9997.22-3
32e858
- Perl 5.24 re-rebuild of bootstrapped packages
32e858
32e858
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9997.22-2
32e858
- Perl 5.24 rebuild
32e858
32e858
* Wed Apr 27 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.22-1
32e858
- 1.999722 bump
32e858
32e858
* Tue Apr 26 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.20-1
32e858
- 1.999720 bump
32e858
32e858
* Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.17-1
32e858
- 1.999717 bump
32e858
32e858
* Tue Apr 05 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.16-1
32e858
- 1.999716 bump
32e858
32e858
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9997.15-2
32e858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
32e858
32e858
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.15-1
32e858
- 1.999715 bump
32e858
32e858
* Mon Jan 04 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.14-1
32e858
- 1.999714 bump
32e858
32e858
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.10-1
32e858
- 1.999710 bump
32e858
32e858
* Tue Nov 10 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.09-1
32e858
- 1.999709 bump
32e858
32e858
* Thu Nov 05 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.08-1
32e858
- 1.999708 bump
32e858
32e858
* Mon Nov 02 2015 Petr Pisar <ppisar@redhat.com> 1.9997.07-354
32e858
- Specfile autogenerated by cpanspec 1.78.
32e858
- Use bundled modules when bootstrapping