Name: perl-Math-BigInt-FastCalc %global cpan_version 0.5014 Version: 0.501.400 Release: 1%{?dist} Summary: Math::BigInt::Calc with some XS for more speed License: GPL-1.0-or-later OR Artistic-1.0-Perl 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 BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(:VERSION) >= 5.6.1 BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(Math::BigInt::Calc) >= 1.999801 BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(Math::BigFloat) BuildRequires: perl(Math::BigInt) >= 1.999838 BuildRequires: perl(Test::More) >= 0.88 Conflicts: perl < 4:5.22.0-348 # 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} %description This Perl module provides support for fast big integer calculations. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Math::BigInt) >= 1.999838 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Math-BigInt-FastCalc-%{cpan_version} # Remove bundled libraries rm -r inc perl -i -ne 'print $_ unless m{^inc/}' MANIFEST find -type f -exec chmod -x {} + # Help generators to recognize Perl scripts for F in t/*.t; 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 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} 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 cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %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}') make test %files %license LICENSE %doc CHANGES CREDITS README TODO %{perl_vendorarch}/auto/* %{perl_vendorarch}/Math* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Mon Apr 03 2023 Jitka Plesnikova - 0.501.400-1 - 0.5014 bump * Fri Jan 20 2023 Fedora Release Engineering - 0.501.300-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.501.300-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.501.300-2 - Perl 5.36 rebuild * Tue May 17 2022 Jitka Plesnikova - 0.501.300-1 - 0.5013 bump * Fri Jan 21 2022 Fedora Release Engineering - 0.501.200-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 30 2021 Jitka Plesnikova - 0.501.200-1 - 0.5012 bump * Thu Sep 23 2021 Jitka Plesnikova - 0.501.100-1 - 0.5011 bump * Thu Jul 22 2021 Fedora Release Engineering - 0.501.000-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Jitka Plesnikova - 0.501.000-1 - 0.5010 bump - Package tests * Fri May 21 2021 Jitka Plesnikova - 0.500.900-477 - Increase release to favour standalone package * Wed Jan 27 2021 Fedora Release Engineering - 0.500.900-458 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.500.900-457 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.500.900-456 - Increase release to favour standalone package * Wed Feb 05 2020 Tom Stellard - 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 * Thu Jan 30 2020 Fedora Release Engineering - 0.500.900-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 14 2019 Jitka Plesnikova - 0.500.900-1 - 0.5009 bump * Fri Jul 26 2019 Fedora Release Engineering - 0.500.800-439 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.500.800-438 - Increase release to favour standalone package * Fri Feb 01 2019 Fedora Release Engineering - 0.500.800-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 12 2018 Jitka Plesnikova - 0.500.800-1 - 0.5008 bump * Fri Jul 13 2018 Fedora Release Engineering - 0.500.700-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.500.700-2 - Perl 5.28 rebuild * Wed Apr 18 2018 Petr Pisar - 0.500.700-1 - 0.5007 bump * Thu Feb 08 2018 Fedora Release Engineering - 0.500.600-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.500.600-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.500.600-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jun 03 2017 Jitka Plesnikova - 0.500.600-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.500.600-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Petr Pisar - 0.500.600-1 - 0.5006 bump * Fri Dec 23 2016 Petr Pisar 0.500.500-1 - Specfile autogenerated by cpanspec 1.78.