9
0
Files
perl-Math-BigInt-GMP/perl-Math-BigInt-GMP.spec

75 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Math-BigInt-GMP
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: perl-Math-BigInt-GMP
%define cpan_name Math-BigInt-GMP
Summary: Math::BigInt::GMP Perl module
Version: 1.24
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Math-BigInt-GMP/
#Source: http://www.cpan.org/modules/by-module/Math/Math-BigInt-GMP-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: gmp-devel
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Math::BigInt) >= 1.87
BuildRequires: perl(XSLoader) >= 0.02
BuildRequires: perl(YAML)
Requires: perl(Math::BigInt) >= 1.87
Requires: perl(XSLoader) >= 0.02
%description
This package contains a replacement (drop-in) module for Math::BigInt's
core, Math::BigInt::Calc.pm. It needs the new versions of Math::BigInt and
Math::BigFloat as they are from Perl 5.7.x onwards.
Authors:
--------
Tels <http://bloodgate.com/>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc BUGS CHANGES CREDITS LICENSE README TODO
%changelog