Name: perl-Math-BigInt %global cpan_version 1.999714 # Keep 4-digit version to compete with perl.spec Version: %(echo %{cpan_version} | sed 's/\(\.....\)/\1./') Release: 1%{?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 # This core module must be buildable without non-core modules at bootstrap. %if %{defined perl_bootstrap} BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) # ExtUtils::Manifest not used # ExtUtils::MM_Cygwin not used BuildRequires: perl(ExtUtils::MM_Unix) # ExtUtils::MM_Win32 not used BuildRequires: perl(Fcntl) # File::Basename not used BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) # File::Spec not used # File::Temp not used # FileHandle not used BuildRequires: perl(FindBin) # JSON not used # LWP::Simple not used # Module::Build not used # Net::FTP not used # Parse::CPAN::Meta not used # Socket not used BuildRequires: perl(vars) # YAML::Tiny not used %else BuildRequires: perl(inc::Module::Install) BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::WriteAll) %endif 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) BuildRequires: perl(lib) # Module::Signature not used # Scalar::Util not used # Socket not used # Optional tests: # This core module must be buildable without non-core modules at bootstrap. %if !%{defined perl_bootstrap} BuildRequires: perl(Test::Pod) >= 1.22 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(Pod::Coverage) >= 0.18 %endif BuildRequires: perl(Test::More) >= 0.9301 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} # This core module must be buildable without non-core modules at bootstrap. %if !%{defined perl_bootstrap} # Remove bundled modules rm -r inc sed -i -e '/^inc\//d' MANIFEST %endif # 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 Jan 04 2016 Petr Pisar - 1.9997.14-1 - 1.999714 bump * Mon Nov 16 2015 Petr Pisar - 1.9997.10-1 - 1.999710 bump * Tue Nov 10 2015 Petr Pisar - 1.9997.09-1 - 1.999709 bump * Thu Nov 05 2015 Petr Pisar - 1.9997.08-1 - 1.999708 bump * Mon Nov 02 2015 Petr Pisar 1.9997.07-354 - Specfile autogenerated by cpanspec 1.78. - Use bundled modules when bootstrapping