From 38e4026810de0f57f61ee4547d088d1c082fc7fb Mon Sep 17 00:00:00 2001 From: Xuchun Shang Date: Tue, 11 Apr 2023 18:51:10 +0800 Subject: [PATCH] Update some description Signed-off-by: Xuchun Shang --- perl-bignum.spec | 114 ++++++++++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 45 deletions(-) diff --git a/perl-bignum.spec b/perl-bignum.spec index 09fdf26..460bb85 100644 --- a/perl-bignum.spec +++ b/perl-bignum.spec @@ -1,4 +1,9 @@ -%define anolis_release 1 +%define anolis_release 2 + +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Math::BigInt\\)$ +%global __requires_exclude %{__requires_exclude}|^perl\\(Math::BigRat\\)$ +%global __requires_exclude %{__requires_exclude}|^perl\\(Carp\\)$ + Name: perl-bignum Version: 0.66 Release: %{anolis_release}%{?dist} @@ -6,66 +11,82 @@ Summary: Transparent big number support for Perl License: GPL+ or Artistic URL: https://metacpan.org/release/bignum Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/bignum-%{version}.tar.gz -BuildArch: noarch -BuildRequires: coreutils BuildRequires: make -BuildRequires: perl-generators -BuildRequires: perl-interpreter +BuildRequires: coreutils BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) -# Run-time: -BuildRequires: perl(:VERSION) >= 5.10 -BuildRequires: perl(Carp) >= 1.22 BuildRequires: perl(constant) BuildRequires: perl(Exporter) -BuildRequires: perl(Math::BigFloat) -BuildRequires: perl(Math::BigInt) >= 1.999830 -BuildRequires: perl(Math::BigRat) >= 0.2621 BuildRequires: perl(overload) -# Optional run-time: -# Math::BigInt::Lite not packaged -# Tests: -BuildRequires: perl(Test::More) >= 0.88 -# Optional tests: -# Module::Signature not used and not helpful +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Carp) >= 1.22 +BuildRequires: perl(Math::BigFloat) +BuildRequires: perl(:VERSION) >= 5.10 BuildRequires: perl(Math::BigInt::GMP) -# Math::BigInt::Pari not package yet -# Socket not used +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Math::BigRat) >= 0.2621 +BuildRequires: perl(Math::BigInt) >= 1.999830 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 Requires: perl(Carp) >= 1.22 -Requires: perl(Math::BigInt) >= 1.999830 Requires: perl(Math::BigRat) >= 0.2621 +Requires: perl(Math::BigInt) >= 1.999830 Conflicts: perl < 4:5.22.0 -# Remove under-specified dependencies -%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Math::BigInt\\)$ -%global __requires_exclude %{__requires_exclude}|^perl\\(Math::BigRat\\)$ -%global __requires_exclude %{__requires_exclude}|^perl\\(Carp\\)$ - +BuildArch: noarch %description -This package attempts to make it easier to write scripts that use BigInts and -BigFloats in a transparent way. +Perl-Bignum is a Perl module that allows you to work with numbers of +arbitrary precision. This means that you can perform calculations with +numbers that exceed the range of standard numeric data types like +integers or floating-point numbers in Perl. Perl-Bignum uses the +Math::BigInt library to create and manipulate numbers of arbitrary size. + +Working with arbitrary-precision numbers can be useful in a variety of +situations, such as cryptography or scientific computing. Perl-Bignum +provides a convenient way to handle these types of calculations in Perl +without resorting to external libraries or custom code. + +To use Perl-Bignum, you need to first import the module using the "use" +keyword. Once you've done that, you can create an arbitrary-precision +number using the "new" function provided by Math::BigInt. From there, +you can perform arithmetic operations like addition, subtraction, +multiplication, and division on these numbers using the functions +provided by Perl-Bignum. + +In addition to basic arithmetic operations, Perl-Bignum also provides +functions for advanced mathematical operations like exponentiation, +logarithms, and factorials. It can also perform bitwise operations on +arbitrary-precision numbers. + +One important feature of Perl-Bignum is that it seamlessly integrates +with Perl's built-in operators and functions. This means that you can +use Perl-Bignum in your code without having to make any significant +changes to your existing codebase. + +Overall, Perl-Bignum provides a convenient way to work with numbers +of arbitrary precision in Perl. It is a powerful and versatile tool +that can help you perform complex numerical calculations with ease. %package tests -Summary: Tests for %{name} -Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Summary: Tests for perl-bignum +Requires: perl-bignum = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests -Tests from %{name}. Execute them -with "%{_libexecdir}/%{name}/test". +Tests from perl-bignum. Execute them +with "%{_libexecdir}/perl-bignum/test". %package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{EVR} +Summary: Documentation files for perl-bignum +Requires: perl-bignum = %{EVR} BuildArch: noarch %description doc -The %{name}-doc package contains documentation files for %{name}. +The perl-bignum-doc package contains documentation files for perl-bignum. %prep -%setup -q -n bignum-%{version} +%autosetup -n bignum-%{version} # Correct shebangs and permission for F in lib/Math/BigInt/Trace.pm lib/Math/BigFloat/Trace.pm; do @@ -88,14 +109,14 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{_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' +mkdir -p %{buildroot}%{_libexecdir}/perl-bignum +cp -a t %{buildroot}%{_libexecdir}/perl-bignum +rm %{buildroot}%{_libexecdir}/perl-bignum/t/00sig.t +cat > %{buildroot}%{_libexecdir}/perl-bignum/test << 'EOF' #!/usr/bin/sh -cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +cd %{_libexecdir}/perl-bignum && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF -chmod +x %{buildroot}%{_libexecdir}/%{name}/test +chmod +x %{buildroot}%{_libexecdir}/perl-bignum/test %check unset TEST_SIGNATURE @@ -107,13 +128,16 @@ make test %{perl_vendorlib}/* %{_mandir}/man3/* -%files tests -%{_libexecdir}/%{name} - %files doc %doc BUGS CHANGES README TODO +%files tests +%{_libexecdir}/perl-bignum + %changelog +* Tue Apr 11 2023 Xuchun Shang - 0.66-2 +- Update some description + * Fri Feb 10 2023 mgb01105731 - 0.66-1 - update to version 0.66 -- Gitee