upgrade version to 0.5018

This commit is contained in:
wangjiang 2024-01-19 17:09:54 +08:00
parent 9b05a4626d
commit 974a758493
3 changed files with 27 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
Name: perl-Math-BigInt-FastCalc Name: perl-Math-BigInt-FastCalc
Version: 0.5014 Version: 0.5018
Release: 1 Release: 1
Summary: Math::BigInt::Calc with some XS for more speed Summary: Math::BigInt::Calc with some XS for more speed
License: GPL+ or Artistic License: GPL+ or Artistic
@ -8,7 +8,7 @@ Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-Fas
BuildRequires:perl-generators perl-interpreter perl-devel gcc BuildRequires:perl-generators perl-interpreter perl-devel gcc
BuildRequires:perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.88 BuildRequires:perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.88
BuildRequires:perl(Math::BigInt) >= 1.999838 perl(Math::BigFloat) BuildRequires:perl(Math::BigInt) >= 2.0030.01
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2)) Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
Conflicts: perl < 4:5.22.0-348 Conflicts: perl < 4:5.22.0-348
@ -27,6 +27,15 @@ Requires: man info
%description help %description help
Man page and other related documents for %{name}. Man page and other related documents for %{name}.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Math::BigInt) >= 2.0030.01
%description tests
Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test".
%prep %prep
%autosetup -n Math-BigInt-FastCalc-%{version} -p1 %autosetup -n Math-BigInt-FastCalc-%{version} -p1
@ -38,6 +47,16 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{opt
%make_install %make_install
%{_fixperms} -c %{buildroot} %{_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 %check
unset AUTHOR_TESTING RELEASE_TESTING unset AUTHOR_TESTING RELEASE_TESTING
make test make test
@ -61,7 +80,13 @@ make test
%doc CHANGES TODO %doc CHANGES TODO
%{_mandir}/*/* %{_mandir}/*/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Fri Jan 19 2024 wangjiang <wangjiang37@h-partners.com> - 0.5018-1
- upgrade version to 0.5018
* Fri Jul 28 2023 wangjiang <wangjiang37@h-partners.com> - 0.5014-1 * Fri Jul 28 2023 wangjiang <wangjiang37@h-partners.com> - 0.5014-1
- upgrade version to 0.5014 - upgrade version to 0.5014