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