perl-Math-BigInteger/perl-Math-BigInteger.spec

Name: perl-Math-BigInteger
Summary: Deprecated Arbitrary length integer extension
Version: 1.01
Release: 1.2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Math-BigInteger/
Description: If you want big integer (and float and rational) support in Perl, please use Math::BigInt together with any of the math libraries like Math::BigInt::a Big::GMP.

CentOS 7 x86_64

The build could not start because the following file is missing: Math-BigInteger-1.01.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: Math-BigInteger-1.01.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Tels <nospam-abuse$bloodgate,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Math-BigInteger

Summary: Deprecated Arbitrary length integer extension
Name: perl-Math-BigInteger
Version: 1.01
Release: 1.2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Math-BigInteger/

Source: http://search.cpan.org/CPAN/authors/id/T/TE/TELS/math/Math-BigInteger-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
If you want big integer (and float and rational) support in Perl, please use
Math::BigInt together with any of the math libraries like
Math::BigInt::a Big::GMP.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGES README
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/Math/
%{perl_vendorarch}/Math/BigInteger.p*
%dir %{perl_vendorarch}/auto/Math/
%{perl_vendorarch}/auto/Math/BigInteger

%changelog
* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 1.01-1
- Initial package.