2017-01-06 09:08:05 +00:00
|
|
|
Name: perl-Math-BigInt-FastCalc
|
2024-01-08 13:31:38 +00:00
|
|
|
%global cpan_version 0.5018
|
|
|
|
Version: 0.501.800
|
2024-08-08 11:10:15 +00:00
|
|
|
Release: 510%{?dist}
|
2017-01-06 09:08:05 +00:00
|
|
|
Summary: Math::BigInt::Calc with some XS for more speed
|
2022-12-20 16:19:18 +00:00
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
2018-06-04 12:50:14 +00:00
|
|
|
URL: https://metacpan.org/release/Math-BigInt-FastCalc
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-FastCalc-%{cpan_version}.tar.gz
|
2021-07-07 18:47:55 +00:00
|
|
|
BuildRequires: coreutils
|
2017-01-06 09:08:05 +00:00
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
2018-04-18 08:10:05 +00:00
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2017-01-06 09:08:05 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Run-time:
|
2021-07-07 18:47:55 +00:00
|
|
|
BuildRequires: perl(:VERSION) >= 5.6.1
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Config)
|
2024-01-05 22:20:17 +00:00
|
|
|
BuildRequires: perl(Math::BigInt::Calc) >= 2.003001
|
2017-01-06 09:08:05 +00:00
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Math::BigFloat)
|
2024-01-05 22:20:17 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 2.003001
|
2018-04-18 08:10:05 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2017-01-06 09:08:05 +00:00
|
|
|
Conflicts: perl < 4:5.22.0-348
|
|
|
|
|
2021-07-07 19:10:50 +00:00
|
|
|
# Filter modules bundled for tests
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(.::t/.*.inc\\)
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
2017-01-06 09:08:05 +00:00
|
|
|
%description
|
|
|
|
This Perl module provides support for fast big integer calculations.
|
|
|
|
|
2021-07-07 19:10:50 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: perl-Test-Harness
|
2024-01-05 22:20:17 +00:00
|
|
|
Requires: perl(Math::BigInt) >= 2.003001
|
2021-07-07 19:10:50 +00:00
|
|
|
|
|
|
|
%description tests
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
2017-01-06 09:08:05 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n Math-BigInt-FastCalc-%{cpan_version}
|
|
|
|
|
2021-07-07 18:47:55 +00:00
|
|
|
# Remove bundled libraries
|
|
|
|
rm -r inc
|
|
|
|
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
|
|
|
find -type f -exec chmod -x {} +
|
|
|
|
|
2021-07-07 19:10:50 +00:00
|
|
|
# Help generators to recognize Perl scripts
|
2023-04-03 11:54:25 +00:00
|
|
|
for F in t/*.t; do
|
2021-07-07 19:10:50 +00:00
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
chmod +x "$F"
|
|
|
|
done
|
|
|
|
|
2017-01-06 09:08:05 +00:00
|
|
|
%build
|
2020-02-05 08:28:36 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{make_build}
|
2017-01-06 09:08:05 +00:00
|
|
|
|
|
|
|
%install
|
2020-02-05 08:28:36 +00:00
|
|
|
%{make_install}
|
2021-07-07 19:10:50 +00:00
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
|
|
|
%{_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
|
2023-04-03 11:54:25 +00:00
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
2021-07-07 19:10:50 +00:00
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
2017-01-06 09:08:05 +00:00
|
|
|
|
|
|
|
%check
|
2021-07-07 18:47:55 +00:00
|
|
|
unset TEST_SIGNATURE
|
2021-07-07 19:10:50 +00:00
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
2017-01-06 09:08:05 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES CREDITS README TODO
|
2023-09-21 10:09:38 +00:00
|
|
|
%{perl_vendorarch}/auto/Math*
|
2017-01-06 09:08:05 +00:00
|
|
|
%{perl_vendorarch}/Math*
|
2023-09-21 10:09:38 +00:00
|
|
|
%{_mandir}/man3/Math::BigInt::FastCalc*
|
2017-01-06 09:08:05 +00:00
|
|
|
|
2021-07-07 19:10:50 +00:00
|
|
|
%files tests
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
2017-01-06 09:08:05 +00:00
|
|
|
%changelog
|
2024-08-08 11:10:15 +00:00
|
|
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.800-510
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2024-06-24 16:10:58 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.501.800-4
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-25 18:07:14 +00:00
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.800-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 16:32:13 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.800-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-08 13:31:38 +00:00
|
|
|
* Mon Jan 08 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.800-1
|
|
|
|
- 0.5018 bump (rhbz#2257058)
|
|
|
|
|
2024-01-05 22:16:57 +00:00
|
|
|
* Fri Jan 05 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.700-1
|
|
|
|
- 0.5017 bump (rhbz#2256784)
|
|
|
|
|
2024-01-02 14:33:14 +00:00
|
|
|
* Tue Jan 02 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.600-1
|
|
|
|
- 0.5016 bump (rhbz#2255963)
|
|
|
|
|
2023-09-21 10:09:38 +00:00
|
|
|
* Thu Sep 21 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.500-1
|
|
|
|
- 0.5015 bump (rhbz#2239928)
|
|
|
|
|
2023-07-20 23:25:57 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.400-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-11 08:32:01 +00:00
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.400-2
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
2023-04-03 11:54:25 +00:00
|
|
|
* Mon Apr 03 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.400-1
|
|
|
|
- 0.5014 bump
|
|
|
|
|
2023-01-20 03:51:34 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.300-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 07:44:32 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.300-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-05-30 14:40:31 +00:00
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.300-2
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
2022-05-17 14:55:02 +00:00
|
|
|
* Tue May 17 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.300-1
|
|
|
|
- 0.5013 bump
|
|
|
|
|
2022-01-21 03:10:33 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.200-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-30 12:49:42 +00:00
|
|
|
* Thu Sep 30 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.200-1
|
|
|
|
- 0.5012 bump
|
|
|
|
|
2021-09-23 07:07:53 +00:00
|
|
|
* Thu Sep 23 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.100-1
|
|
|
|
- 0.5011 bump
|
|
|
|
|
2021-07-22 21:46:24 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.501.000-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-07 18:47:55 +00:00
|
|
|
* Wed Jul 07 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.501.000-1
|
|
|
|
- 0.5010 bump
|
2021-07-07 19:10:50 +00:00
|
|
|
- Package tests
|
2021-07-07 18:47:55 +00:00
|
|
|
|
2021-05-21 07:59:09 +00:00
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.900-477
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2021-01-27 02:41:06 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.900-458
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 16:58:01 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.900-457
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-22 11:41:21 +00:00
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.900-456
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2020-02-05 01:15:37 +00:00
|
|
|
* Wed Feb 05 2020 Tom Stellard <tstellar@redhat.com> - 0.500.900-3
|
|
|
|
- Spec file cleanups: Use make_build and make_install macros
|
|
|
|
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
|
|
|
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
|
|
|
|
|
2020-01-30 01:59:29 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.900-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-15 05:52:53 +00:00
|
|
|
* Mon Oct 14 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.900-1
|
|
|
|
- 0.5009 bump
|
|
|
|
|
2019-07-26 04:30:59 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.800-439
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-30 09:00:09 +00:00
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.800-438
|
|
|
|
- Increase release to favour standalone package
|
|
|
|
|
2019-02-01 22:07:04 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.800-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-12 08:49:45 +00:00
|
|
|
* Fri Oct 12 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.800-1
|
|
|
|
- 0.5008 bump
|
|
|
|
|
2018-07-13 18:24:21 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.700-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-27 00:01:39 +00:00
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.700-2
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-04-18 08:10:05 +00:00
|
|
|
* Wed Apr 18 2018 Petr Pisar <ppisar@redhat.com> - 0.500.700-1
|
|
|
|
- 0.5007 bump
|
|
|
|
|
2018-02-08 22:41:17 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.600-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 05:27:16 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.600-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 04:51:45 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.600-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-03 09:23:52 +00:00
|
|
|
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.500.600-3
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 04:01:55 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.500.600-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-12 09:59:08 +00:00
|
|
|
* Thu Jan 12 2017 Petr Pisar <ppisar@redhat.com> - 0.500.600-1
|
|
|
|
- 0.5006 bump
|
|
|
|
|
2017-01-06 09:08:05 +00:00
|
|
|
* Fri Dec 23 2016 Petr Pisar <ppisar@redhat.com> 0.500.500-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|