2011-04-29 07:35:37 +00:00
|
|
|
#
|
2011-11-18 12:32:20 +00:00
|
|
|
# spec file for package perl-Math-BigInt
|
2011-04-29 07:35:37 +00:00
|
|
|
#
|
2015-09-01 09:49:27 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-29 07:35:37 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-11-18 12:32:20 +00:00
|
|
|
|
2011-04-29 07:35:37 +00:00
|
|
|
Name: perl-Math-BigInt
|
2015-09-01 09:49:27 +00:00
|
|
|
Version: 1.9997
|
2013-06-11 13:11:12 +00:00
|
|
|
Release: 0
|
2011-04-29 07:35:37 +00:00
|
|
|
%define cpan_name Math-BigInt
|
|
|
|
Summary: Arbitrary size integer/float math package
|
2015-09-01 09:49:27 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-29 07:35:37 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-11 13:11:12 +00:00
|
|
|
Url: http://search.cpan.org/dist/Math-BigInt/
|
2015-09-01 09:49:27 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2011-04-29 07:35:37 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-09-01 09:49:27 +00:00
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
2011-04-29 07:35:37 +00:00
|
|
|
Recommends: perl(bignum) >= 0.22
|
|
|
|
Recommends: perl(Math::BigInt::FastCalc) >= 0.25
|
|
|
|
Recommends: perl(Math::BigInt::GMP) >= 1.35
|
|
|
|
Recommends: perl(Math::BigInt::Pari) >= 1.15
|
|
|
|
Recommends: perl(Math::BigRat) >= 0.2602
|
2015-09-01 09:49:27 +00:00
|
|
|
# MANUAL END
|
2011-04-29 07:35:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
All operators (including basic math operations) are overloaded if you
|
|
|
|
declare your big integers as
|
|
|
|
|
|
|
|
$i = new Math::BigInt '123_456_789_123_456_789';
|
|
|
|
|
|
|
|
Operations with overloaded operators preserve the arguments which is
|
|
|
|
exactly what you expect.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-11-18 12:38:10 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2011-04-29 07:35:37 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc BENCHMARK BUGS CHANGES CREDITS examples GOALS HISTORY LICENSE NEW README TODO
|
|
|
|
|
|
|
|
%changelog
|