Control Module::Install::ReadmeFromPod usage by a build condition
This commit is contained in:
parent
a0548fe491
commit
d73023922c
@ -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
|
# Run optional test
|
||||||
%bcond_without perl_Unicode_UTF8_enables_optional_test
|
%bcond_without perl_Unicode_UTF8_enables_optional_test
|
||||||
|
|
||||||
@ -16,7 +22,7 @@ BuildRequires: make
|
|||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl-devel
|
BuildRequires: perl-devel
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
%if "%{?rhel}" != "6"
|
%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
|
%else
|
||||||
@ -69,7 +75,7 @@ specified by Unicode and ISO/IEC 10646:2011.
|
|||||||
|
|
||||||
# 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
|
# 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/
|
rm -rf inc/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user