|
|
|
@ -1,99 +1,69 @@
|
|
|
|
|
Name: perl-Math-BigInt
|
|
|
|
|
Epoch: 1
|
|
|
|
|
%global cpan_version 1.999837
|
|
|
|
|
%global cpan_version 1.999818
|
|
|
|
|
# Keep 4-digit version to compete with perl.spec
|
|
|
|
|
Version: %(echo %{cpan_version} | sed 's/\(\.....\)/\1./')
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 458%{?dist}
|
|
|
|
|
Summary: Arbitrary-size integer and float mathematics
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Math-BigInt
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-%{cpan_version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp) >= 1.22
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
# File::Spec not used on recent perl
|
|
|
|
|
BuildRequires: perl(integer)
|
|
|
|
|
BuildRequires: perl(Math::Complex) >= 1.39
|
|
|
|
|
# Math::BigRat not used for tests
|
|
|
|
|
BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
# Config::Tiny not used
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
# Module::Signature not used
|
|
|
|
|
# Scalar::Util not used
|
|
|
|
|
# Socket not used
|
|
|
|
|
# Test::CPAN::Changes not used
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
|
|
|
# Optional tests:
|
|
|
|
|
# This core module must be buildable without non-core modules at bootstrap.
|
|
|
|
|
# Test::Pod 1.22 not used
|
|
|
|
|
# Test::Pod::Coverage 1.08 not used
|
|
|
|
|
# Test::Portability::Files not used
|
|
|
|
|
# Test::Whitespaces not used
|
|
|
|
|
# Pod::Coverage 0.18 not used
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Carp) >= 1.22
|
|
|
|
|
Requires: perl(Math::Complex) >= 1.39
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
Requires: perl(Math::BigRat)
|
|
|
|
|
%endif
|
|
|
|
|
Conflicts: perl < 4:5.22.0-347
|
|
|
|
|
|
|
|
|
|
# Do not export unversioned module
|
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\)\\s*$
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Carp\\)\\s*$
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(.::t/.*.inc\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|perl\\(Math::BigFloat::Subclass\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|perl\\(Math::BigInt::(BareCalc\|Scalar\|Subclass)\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|perl\\(Math::BigInt::Lib::(Minimal\|TestUtil)\\)
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This provides Perl modules for arbitrary-size integer and float mathematics.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Math-BigInt-%{cpan_version}
|
|
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t t/alias.inc `find t -name *.pm`; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
rm %{buildroot}%{_libexecdir}/%{name}/t/00sig.t
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
unset TEST_SIGNATURE
|
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
unset AUTHOR_TESTING RELEASE_TESTING
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -103,74 +73,7 @@ make test
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.37-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 11 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.37-1
|
|
|
|
|
- 1.999837 bump
|
|
|
|
|
|
|
|
|
|
* Mon Jun 27 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.36-1
|
|
|
|
|
- 1.999836 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.35-3
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.35-2
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 24 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.35-1
|
|
|
|
|
- 1.999835 bump
|
|
|
|
|
|
|
|
|
|
* Mon May 23 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.33-1
|
|
|
|
|
- 1.999833 bump
|
|
|
|
|
|
|
|
|
|
* Sun May 22 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.32-1
|
|
|
|
|
- 1.999832 bump
|
|
|
|
|
|
|
|
|
|
* Mon May 16 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.31-1
|
|
|
|
|
- 1.999831 bump
|
|
|
|
|
|
|
|
|
|
* Wed Apr 13 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.30-1
|
|
|
|
|
- 1.999830 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.29-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 05 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.29-1
|
|
|
|
|
- 1.999829 bump
|
|
|
|
|
|
|
|
|
|
* Mon Dec 20 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.28-1
|
|
|
|
|
- 1.999828 bump
|
|
|
|
|
|
|
|
|
|
* Sun Oct 03 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.27-1
|
|
|
|
|
- 1.999827 bump
|
|
|
|
|
|
|
|
|
|
* Wed Sep 29 2021 Michal Josef Špaček <mspacek@redhat.com> - 1:1.9998.25-1
|
|
|
|
|
- 1.999825 bump
|
|
|
|
|
|
|
|
|
|
* Wed Sep 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.24-1
|
|
|
|
|
- 1.999824 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.23-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 13 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.23-1
|
|
|
|
|
- 1.999823 bump
|
|
|
|
|
|
|
|
|
|
* Mon Jul 12 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.22-1
|
|
|
|
|
- 1.999822 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jul 07 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.21-1
|
|
|
|
|
- 1.999821 bump
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.18-477
|
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.18-458
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|