Drop EL-6 support with bundled Module::Install::ReadmeFromPod
This commit is contained in:
parent
9540bc562c
commit
554754c681
@ -1,9 +1,3 @@
|
|||||||
# Rebuild build script using Module::Install::ReadmeFromPod
|
|
||||||
%if "%{?rhel}" != "6"
|
|
||||||
%bcond_without perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod
|
|
||||||
%else
|
|
||||||
%bcond_with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod
|
|
||||||
%endif
|
|
||||||
# Run optional test
|
# Run optional test
|
||||||
%if ! (0%{?rhel})
|
%if ! (0%{?rhel})
|
||||||
%bcond_without perl_Unicode_UTF8_enables_optional_test
|
%bcond_without perl_Unicode_UTF8_enables_optional_test
|
||||||
@ -26,21 +20,8 @@ BuildRequires: make
|
|||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
|
|
||||||
BuildRequires: perl(inc::Module::Install)
|
BuildRequires: perl(inc::Module::Install)
|
||||||
BuildRequires: perl(Module::Install::ReadmeFromPod)
|
BuildRequires: perl(Module::Install::ReadmeFromPod)
|
||||||
%else
|
|
||||||
BuildRequires: perl(base)
|
|
||||||
BuildRequires: perl(Config)
|
|
||||||
BuildRequires: perl(Cwd)
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
||||||
BuildRequires: perl(Fcntl)
|
|
||||||
BuildRequires: perl(File::Basename)
|
|
||||||
BuildRequires: perl(File::Find)
|
|
||||||
BuildRequires: perl(File::Path)
|
|
||||||
BuildRequires: perl(Pod::Text)
|
|
||||||
BuildRequires: perl(vars)
|
|
||||||
%endif
|
|
||||||
# Module Runtime
|
# Module Runtime
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
@ -77,10 +58,8 @@ specified by Unicode and ISO/IEC 10646:2011.
|
|||||||
%setup -q -n Unicode-UTF8-%{version}
|
%setup -q -n Unicode-UTF8-%{version}
|
||||||
|
|
||||||
# Unbundle inc::Module::Install, we'll use system version instead
|
# Unbundle inc::Module::Install, we'll use system version instead
|
||||||
# unless we're on EL-6, where there's no Module::Install::ReadmeFromPod
|
rm -rvf inc/
|
||||||
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
|
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
||||||
rm -rf inc/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
Loading…
Reference in New Issue
Block a user