2010-07-16 15:28:08 +00:00
|
|
|
#
|
2011-11-11 11:19:49 +00:00
|
|
|
# spec file for package perl-Math-BigInt-GMP
|
2010-07-16 15:28:08 +00:00
|
|
|
#
|
2016-01-02 21:29:02 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-07-16 15:28:08 +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-11 11:19:49 +00:00
|
|
|
|
2010-07-16 15:28:08 +00:00
|
|
|
Name: perl-Math-BigInt-GMP
|
2016-05-09 05:38:40 +00:00
|
|
|
Version: 1.51
|
2015-04-16 08:13:49 +00:00
|
|
|
Release: 0
|
2011-05-20 11:42:30 +00:00
|
|
|
%define cpan_name Math-BigInt-GMP
|
|
|
|
|
Summary: Use the GMP library for Math::BigInt routines
|
2015-04-16 08:13:49 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-05-20 11:42:30 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-16 08:13:49 +00:00
|
|
|
Url: http://search.cpan.org/dist/Math-BigInt-GMP/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
Source1: cpanspec.yml
|
2010-07-16 15:28:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-18 08:37:57 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2016-05-09 05:38:40 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 1.999719
|
|
|
|
|
Requires: perl(Math::BigInt) >= 1.999719
|
2015-12-10 20:17:44 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
# MANUAL BEGIN
|
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.22
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
2015-12-07 21:11:10 +00:00
|
|
|
# Version check does not work for perl packages before 5.22
|
2015-12-07 21:15:04 +00:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2016-01-05 08:44:52 +00:00
|
|
|
BuildRequires: perl-Math-BigInt >= 1.999714
|
|
|
|
|
Requires: perl-Math-BigInt >= 1.999714
|
2015-12-07 21:11:10 +00:00
|
|
|
%endif
|
2015-04-16 08:13:49 +00:00
|
|
|
# MANUAL END
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
|
%description
|
2015-12-07 21:21:10 +00:00
|
|
|
Math::BigInt::GMP is a replacement library for Math::BigInt::Calc that
|
|
|
|
|
reimplements some of the Math::BigInt::Calc functions in XS. It can be used
|
|
|
|
|
via:
|
|
|
|
|
|
|
|
|
|
use Math::BigInt lib => 'GMP';
|
|
|
|
|
|
|
|
|
|
This package contains a replacement (drop-in) module for Math::BigInt's core,
|
|
|
|
|
Math::BigInt::Calc.pm.
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
|
%prep
|
2010-07-16 15:28:08 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-05-20 11:42:30 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2010-07-16 15:28:08 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__make} test
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
2010-07-16 15:28:08 +00:00
|
|
|
%perl_gen_filelist
|
2008-01-02 14:51:20 +00:00
|
|
|
|
2010-07-16 15:28:08 +00:00
|
|
|
%files -f %{name}.files
|
2015-12-15 18:16:02 +00:00
|
|
|
%defattr(-,root,root,755)
|
2015-12-07 21:35:25 +00:00
|
|
|
%doc BUGS CHANGES CREDITS LICENSE README TODO
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
|
%changelog
|