Drop EL-6 support with bundled Module::Install::ReadmeFromPod

This commit is contained in:
Paul Howarth 2023-05-17 16:44:25 +01:00
parent 9540bc562c
commit 554754c681

View File

@ -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
%if ! (0%{?rhel})
%bcond_without perl_Unicode_UTF8_enables_optional_test
@ -26,21 +20,8 @@ BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
BuildRequires: perl(inc::Module::Install)
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
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@ -77,10 +58,8 @@ specified by Unicode and ISO/IEC 10646:2011.
%setup -q -n Unicode-UTF8-%{version}
# Unbundle inc::Module::Install, we'll use system version instead
# unless we're on EL-6, where there's no Module::Install::ReadmeFromPod
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
rm -rf inc/
%endif
rm -rvf inc/
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"