From 5faa23fffb51204d048e106932822a6e582824d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 5 Nov 2015 08:08:47 +0100 Subject: [PATCH] Import --- .gitignore | 1 + perl-Math-BigInt.spec | 77 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 perl-Math-BigInt.spec diff --git a/.gitignore b/.gitignore index e69de29..99ed70b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Math-BigInt-1.999707.tar.gz diff --git a/perl-Math-BigInt.spec b/perl-Math-BigInt.spec new file mode 100644 index 0000000..d8eea30 --- /dev/null +++ b/perl-Math-BigInt.spec @@ -0,0 +1,77 @@ +Name: perl-Math-BigInt +%global cpan_version 1.999707 +# Keep 4-digit version to compete with perl.spec +Version: %(echo %{cpan_version} | sed 's/\(\.....\)/\1./') +Release: 354%{?dist} +Summary: Arbitrary-size integer and float mathematics +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Math-BigInt/ +Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/Math-BigInt-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(strict) +BuildRequires: sed +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +# File::Spec not used on recent perl +BuildRequires: perl(integer) +BuildRequires: perl(Math::Complex) >= 1.39 +BuildRequires: perl(overload) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(base) +# Module::Signature not used +BuildRequires: perl(Scalar::Util) +# Socket not used +BuildRequires: perl(Test::More) >= 0.62 +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) +Requires: perl(Math::Complex) >= 1.39 +Conflicts: perl < 4:5.22.0-347 + +# Do not export unversioned module +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\)\\s*$ + +%description +This provides Perl modules for arbitrary-size integer and float mathematics. + +%prep +%setup -q -n Math-BigInt-%{cpan_version} +# Remove bundled modules +rm -r inc +sed -i -e '/^inc\//d' MANIFEST +# Correct permissions +find . -type f -exec chmod -x {} + + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +# NEW file is useless +%doc BENCHMARK BUGS examples CHANGES CREDITS GOALS HISTORY README TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Nov 02 2015 Petr Pisar 1.9997.07-354 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..aeea81f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bff5216531488e93d176d0bc0b5db6a3 Math-BigInt-1.999707.tar.gz