perl-Math-BigInt/perl-Math-BigInt.spec

293 lines
9.7 KiB
RPMSpec
Raw Normal View History

2015-11-05 07:08:47 +00:00
Name: perl-Math-BigInt
2017-06-02 10:11:58 +00:00
Epoch: 1
2022-04-13 14:03:54 +00:00
%global cpan_version 1.999830
2015-11-05 07:08:47 +00:00
# Keep 4-digit version to compete with perl.spec
Version: %(echo %{cpan_version} | sed 's/\(\.....\)/\1./')
2022-04-13 14:03:54 +00:00
Release: 1%{?dist}
2015-11-05 07:08:47 +00:00
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
2015-11-05 07:08:47 +00:00
BuildArch: noarch
2021-10-03 18:13:45 +00:00
BuildRequires: coreutils
2015-11-05 07:08:47 +00:00
BuildRequires: make
2016-04-05 10:38:33 +00:00
BuildRequires: perl-generators
2018-04-18 10:13:49 +00:00
BuildRequires: perl-interpreter
2021-09-22 11:51:30 +00:00
BuildRequires: perl(Config)
2017-03-17 09:54:19 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
2015-11-05 07:08:47 +00:00
BuildRequires: perl(strict)
2016-12-05 13:38:42 +00:00
BuildRequires: perl(warnings)
2015-11-05 07:08:47 +00:00
BuildRequires: sed
# Run-time:
2021-07-12 08:10:10 +00:00
BuildRequires: perl(Carp) >= 1.22
2015-11-05 07:08:47 +00:00
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
BuildRequires: perl(integer)
BuildRequires: perl(Math::Complex) >= 1.39
BuildRequires: perl(overload)
2021-09-30 06:35:06 +00:00
BuildRequires: perl(Scalar::Util)
2015-11-05 07:08:47 +00:00
# Tests:
BuildRequires: perl(base)
2016-01-04 12:28:54 +00:00
BuildRequires: perl(lib)
2015-11-05 07:08:47 +00:00
# Module::Signature not used
# Socket not used
2016-11-18 09:40:38 +00:00
BuildRequires: perl(Test::More) >= 0.94
2015-11-05 07:08:47 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
2021-07-12 08:10:10 +00:00
Requires: perl(Carp) >= 1.22
2015-11-05 07:08:47 +00:00
Requires: perl(Math::Complex) >= 1.39
Conflicts: perl < 4:5.22.0-347
# Do not export unversioned module
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\)\\s*$
2021-07-12 08:10:10 +00:00
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Carp\\)\\s*$
2015-11-05 07:08:47 +00:00
2021-07-07 14:17:00 +00:00
# Filter modules bundled for tests
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(.::t/.*.inc\\)
2021-07-07 16:52:43 +00:00
%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)\\)
2021-07-07 15:08:14 +00:00
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
2021-07-07 14:17:00 +00:00
2015-11-05 07:08:47 +00:00
%description
This provides Perl modules for arbitrary-size integer and float mathematics.
2021-07-07 14:17:00 +00:00
%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".
2015-11-05 07:08:47 +00:00
%prep
%setup -q -n Math-BigInt-%{cpan_version}
2021-07-07 14:17:00 +00:00
# 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
2015-11-05 07:08:47 +00:00
%build
2019-10-14 07:31:43 +00:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2015-11-05 07:08:47 +00:00
%install
2019-10-14 07:31:43 +00:00
%{make_install}
2021-07-07 14:17:00 +00:00
%{_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
2015-11-05 07:08:47 +00:00
%check
2021-07-07 13:28:29 +00:00
unset TEST_SIGNATURE
2021-07-07 14:17:00 +00:00
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
2015-11-05 07:08:47 +00:00
make test
%files
%license LICENSE
# NEW file is useless
2016-12-05 13:38:42 +00:00
%doc BUGS CHANGES CREDITS examples GOALS HISTORY README TODO
2015-11-05 07:08:47 +00:00
%{perl_vendorlib}/*
%{_mandir}/man3/*
2021-07-07 14:17:00 +00:00
%files tests
%{_libexecdir}/%{name}
2015-11-05 07:08:47 +00:00
%changelog
2022-04-13 14:03:54 +00:00
* 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
2022-01-05 09:33:11 +00:00
* Wed Jan 05 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.29-1
- 1.999829 bump
2021-12-20 09:37:29 +00:00
* Mon Dec 20 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.28-1
- 1.999828 bump
2021-10-03 18:13:45 +00:00
* Sun Oct 03 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.27-1
- 1.999827 bump
2021-09-29 18:10:59 +00:00
* Wed Sep 29 2021 Michal Josef Špaček <mspacek@redhat.com> - 1:1.9998.25-1
- 1.999825 bump
2021-09-22 11:51:30 +00:00
* 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
2021-07-13 09:54:43 +00:00
* Tue Jul 13 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.23-1
- 1.999823 bump
2021-07-12 08:10:10 +00:00
* Mon Jul 12 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.22-1
- 1.999822 bump
2021-07-07 13:28:29 +00:00
* Wed Jul 07 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.21-1
- 1.999821 bump
2021-07-07 14:17:00 +00:00
- Package tests
2021-07-07 13:28:29 +00:00
* 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
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.18-457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.18-456
- Increase release to favour standalone package
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-10-21 13:41:50 +00:00
* Mon Oct 21 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.18-1
- 1.999818 bump
2019-10-14 07:31:43 +00:00
* Mon Oct 14 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.17-1
- 1.999817 bump
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.16-439
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.16-438
- Increase release to favour standalone package
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-31 13:50:05 +00:00
* Wed Oct 31 2018 Petr Pisar <ppisar@redhat.com> - 1:1.9998.16-1
- 1.999816 bump
2018-10-23 10:48:40 +00:00
* Tue Oct 23 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.15-1
- 1.999815 bump
2018-10-12 08:31:41 +00:00
* Fri Oct 12 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.14-1
- 1.999814 bump
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-26 23:30:22 +00:00
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.13-2
- Perl 5.28 rebuild
2018-04-18 10:13:49 +00:00
* Wed Apr 18 2018 Petr Pisar <ppisar@redhat.com> - 1:1.9998.13-1
- 1.999813 bump
2018-04-18 07:38:00 +00:00
* Wed Apr 18 2018 Petr Pisar <ppisar@redhat.com> - 1:1.9998.12-1
- 1.999812 bump
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.9998.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.11-3
- Perl 5.26 re-rebuild of bootstrapped packages
2017-06-03 08:44:49 +00:00
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.9998.11-2
- Perl 5.26 rebuild
2017-03-17 09:54:19 +00:00
* Fri Mar 17 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.11-1
- 1.999811 bump
2017-03-02 09:45:11 +00:00
* Thu Mar 02 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.10-1
- 1.999810 bump
2017-02-13 10:12:43 +00:00
* Mon Feb 13 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.09-1
- 1.999809 bump
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9998.08-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2017-01-12 08:23:36 +00:00
* Thu Jan 12 2017 Paul Howarth <paul@city-fan.org> - 1.9998.08-1
- 1.999808 bump
2017-01-02 09:05:36 +00:00
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 1.9998.07-1
- 1.999807 bump
2016-12-14 13:06:10 +00:00
* Wed Dec 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9998.06-1
- 1.999806 bump
2016-12-12 08:17:13 +00:00
* Mon Dec 12 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.05-1
- 1.999805 bump
2016-12-09 05:59:21 +00:00
* Fri Dec 09 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.04-1
- 1.999804 bump
2016-12-05 13:38:42 +00:00
* Mon Dec 05 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.03-1
- 1.999803 bump
2016-12-01 12:01:49 +00:00
* Thu Dec 01 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.02-1
- 1.999802 bump
2016-11-25 08:45:32 +00:00
* Fri Nov 25 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.01-1
- 1.999801 bump
2016-11-18 09:40:38 +00:00
* Fri Nov 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9998.00-1
- 1.999800 bump
2016-11-08 13:18:28 +00:00
* Tue Nov 08 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.27-1
- 1.999727 bump
2016-07-18 07:43:44 +00:00
* Mon Jul 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.26-1
- 1.999726 bump
2016-06-20 10:35:11 +00:00
* Mon Jun 20 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.24-1
- 1.999724 bump
2016-06-15 07:40:28 +00:00
* Wed Jun 15 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.23-1
- 1.999723 bump
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9997.22-3
- Perl 5.24 re-rebuild of bootstrapped packages
2016-05-14 10:29:58 +00:00
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.9997.22-2
- Perl 5.24 rebuild
2016-04-27 05:59:05 +00:00
* Wed Apr 27 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.22-1
- 1.999722 bump
2016-04-26 13:02:23 +00:00
* Tue Apr 26 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.20-1
- 1.999720 bump
2016-04-18 07:28:25 +00:00
* Mon Apr 18 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.17-1
- 1.999717 bump
2016-04-05 10:38:33 +00:00
* Tue Apr 05 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.16-1
- 1.999716 bump
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9997.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-06 08:56:48 +00:00
* Wed Jan 06 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.15-1
- 1.999715 bump
2016-01-04 12:28:54 +00:00
* Mon Jan 04 2016 Petr Pisar <ppisar@redhat.com> - 1.9997.14-1
- 1.999714 bump
2015-11-16 07:23:55 +00:00
* Mon Nov 16 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.10-1
- 1.999710 bump
2015-11-10 14:43:32 +00:00
* Tue Nov 10 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.09-1
- 1.999709 bump
2015-11-05 07:55:03 +00:00
* Thu Nov 05 2015 Petr Pisar <ppisar@redhat.com> - 1.9997.08-1
- 1.999708 bump
2015-11-05 07:08:47 +00:00
* Mon Nov 02 2015 Petr Pisar <ppisar@redhat.com> 1.9997.07-354
- Specfile autogenerated by cpanspec 1.78.
2015-11-05 07:33:21 +00:00
- Use bundled modules when bootstrapping