Use bundled modules when bootstrapping
This commit is contained in:
parent
5faa23fffb
commit
9b5a6964a7
@ -13,9 +13,36 @@ BuildRequires: coreutils
|
|||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl
|
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(inc::Module::Install)
|
||||||
BuildRequires: perl(Module::Install::Metadata)
|
BuildRequires: perl(Module::Install::Metadata)
|
||||||
BuildRequires: perl(Module::Install::WriteAll)
|
BuildRequires: perl(Module::Install::WriteAll)
|
||||||
|
%endif
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
# Run-time:
|
# Run-time:
|
||||||
@ -47,9 +74,12 @@ This provides Perl modules for arbitrary-size integer and float mathematics.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Math-BigInt-%{cpan_version}
|
%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
|
# Remove bundled modules
|
||||||
rm -r inc
|
rm -r inc
|
||||||
sed -i -e '/^inc\//d' MANIFEST
|
sed -i -e '/^inc\//d' MANIFEST
|
||||||
|
%endif
|
||||||
# Correct permissions
|
# Correct permissions
|
||||||
find . -type f -exec chmod -x {} +
|
find . -type f -exec chmod -x {} +
|
||||||
|
|
||||||
@ -75,3 +105,4 @@ make test
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Nov 02 2015 Petr Pisar <ppisar@redhat.com> 1.9997.07-354
|
* Mon Nov 02 2015 Petr Pisar <ppisar@redhat.com> 1.9997.07-354
|
||||||
- Specfile autogenerated by cpanspec 1.78.
|
- Specfile autogenerated by cpanspec 1.78.
|
||||||
|
- Use bundled modules when bootstrapping
|
||||||
|
Loading…
Reference in New Issue
Block a user