Control Module::Install::ReadmeFromPod usage by a build condition

This commit is contained in:
Petr Písař 2017-12-07 17:54:08 +01:00
parent a0548fe491
commit d73023922c

View File

@ -1,3 +1,9 @@
# 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
%bcond_without perl_Unicode_UTF8_enables_optional_test
@ -16,7 +22,7 @@ BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
%if "%{?rhel}" != "6"
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Module::Install::ReadmeFromPod)
%else
@ -69,7 +75,7 @@ specified by Unicode and ISO/IEC 10646:2011.
# Unbundle inc::Module::Install, we'll use system version instead
# unless we're on EL-6, where there's no Module::Install::ReadmeFromPod
%if "%{?rhel}" != "6"
%if %{with perl_Unicode_UTF8_enables_Module_Install_ReadmeFromPod}
rm -rf inc/
%endif