2010-07-16 15:26:26 +00:00
|
|
|
#
|
2013-12-17 06:06:36 +00:00
|
|
|
# spec file for package perl-Math-BigInt-FastCalc
|
2010-07-16 15:26:26 +00:00
|
|
|
#
|
2015-04-15 09:30:07 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-07-16 15:26:26 +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/
|
|
|
|
#
|
|
|
|
|
2013-12-17 06:06:36 +00:00
|
|
|
|
2010-07-16 15:26:26 +00:00
|
|
|
Name: perl-Math-BigInt-FastCalc
|
2015-04-15 09:30:07 +00:00
|
|
|
Version: 0.31
|
2013-12-17 06:06:36 +00:00
|
|
|
Release: 0
|
2011-04-29 05:25:09 +00:00
|
|
|
%define cpan_name Math-BigInt-FastCalc
|
|
|
|
Summary: Math::BigInt::Calc with some XS for more speed
|
2013-12-17 06:06:36 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-29 05:25:09 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-12-17 06:06:36 +00:00
|
|
|
Url: http://search.cpan.org/dist/Math-BigInt-FastCalc/
|
2011-04-29 05:25:09 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
2010-07-16 15:26:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-15 09:30:07 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 1.9993
|
|
|
|
BuildRequires: perl(Math::BigInt::Calc) >= 1.9993
|
|
|
|
Requires: perl(Math::BigInt) >= 1.9993
|
|
|
|
Requires: perl(Math::BigInt::Calc) >= 1.9993
|
2011-04-29 05:25:09 +00:00
|
|
|
%{perl_requires}
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%description
|
2010-07-16 15:26:26 +00:00
|
|
|
In order to allow for multiple big integer libraries, Math::BigInt was
|
|
|
|
rewritten to use library modules for core math routines. Any module which
|
|
|
|
follows the same API as this can be used instead by using the following:
|
2008-01-02 15:08:16 +00:00
|
|
|
|
2011-04-29 05:25:09 +00:00
|
|
|
use Math::BigInt lib => 'libname';
|
|
|
|
|
|
|
|
'libname' is either the long name ('Math::BigInt::Pari'), or only the short
|
|
|
|
version like 'Pari'. To use this library:
|
|
|
|
|
|
|
|
use Math::BigInt lib => 'FastCalc';
|
|
|
|
|
|
|
|
Note that from the Math::BigInt manpage v1.76 onwards, FastCalc will be
|
|
|
|
loaded automatically, if possible.
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%prep
|
2010-07-16 15:26:26 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2015-04-15 09:30:07 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%build
|
2011-04-29 05:25:09 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2010-07-16 15:26:26 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-07-16 15:26:26 +00:00
|
|
|
%perl_gen_filelist
|
2008-01-02 15:08:16 +00:00
|
|
|
|
2010-07-16 15:26:26 +00:00
|
|
|
%files -f %{name}.files
|
2011-04-29 05:25:09 +00:00
|
|
|
%defattr(-,root,root,755)
|
2008-01-02 15:08:16 +00:00
|
|
|
%doc CHANGES CREDITS README TODO
|
|
|
|
|
|
|
|
%changelog
|