diff --git a/perl-Unicode-UTF8.spec b/perl-Unicode-UTF8.spec index c37e2d0..f951391 100644 --- a/perl-Unicode-UTF8.spec +++ b/perl-Unicode-UTF8.spec @@ -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