diff --git a/Math-BigInt-1.999839.tar.gz b/Math-BigInt-1.999839.tar.gz deleted file mode 100644 index 14c7ffd..0000000 Binary files a/Math-BigInt-1.999839.tar.gz and /dev/null differ diff --git a/Math-BigInt-2.003002.tar.gz b/Math-BigInt-2.003002.tar.gz new file mode 100644 index 0000000..08ca291 Binary files /dev/null and b/Math-BigInt-2.003002.tar.gz differ diff --git a/perl-Math-BigInt.spec b/perl-Math-BigInt.spec index 0c222c9..4c15567 100644 --- a/perl-Math-BigInt.spec +++ b/perl-Math-BigInt.spec @@ -1,4 +1,4 @@ -%global cpan_version 1.999839 +%global cpan_version 2.003002 Name: perl-Math-BigInt Epoch: 1 # Keep 4-digit version to compete with perl.spec @@ -10,17 +10,35 @@ 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:perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.94 +BuildRequires:perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.94 perl(Scalar::Util) Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2)) -Requires: perl(Math::Complex) >= 1.39 +Requires: perl(Math::Complex) >= 1.39 perl(Carp) >= 1.22 Conflicts: perl < 4:5.22.0-347 +Provides: perl-Math-BigRat = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: perl-Math-BigRat < 0.2624-2 + %description Math::BigInt provides support for arbitrary precision integers. Overloading is also provided for Perl operators. -%package_help +%package help +Summary: Help for %{name} + +Obsoletes: perl-Math-BigRat-help < 0.2624-2 + +%description help +Tests for %{name} + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +Conflicts: perl-Math-BigInt < 1:2.0030.02 + +%description tests +Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -n Math-BigInt-%{cpan_version} -p1 @@ -33,6 +51,16 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 %make_install %{_fixperms} -c %{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 AUTHOR_TESTING RELEASE_TESTING make test @@ -49,14 +77,20 @@ make test %defattr(-,root,root) %license LICENSE %doc BUGS CREDITS README -%{perl_vendorlib}/* +%{perl_vendorlib}/Math* %files help %defattr(-,root,root) %doc CHANGES GOALS HISTORY TODO NEW examples -%{_mandir}/*/* +%{_mandir}/man3/Math::Big* + +%files tests +%{_libexecdir}/%{name} %changelog +* Thu Jan 18 2024 wangjiang - 1:2.0030.02-1 +- upgrade version to 2.003002 + * Wed Jul 26 2023 wangjiang - 1:1.9998.39-1 - upgrade version to 1.999839