[libvirt] [perl PATCH] Only use perl-interpreter & perl-generators on Fedora / future RHEL
Daniel P. Berrangé
berrange at redhat.com
Thu Jun 7 10:41:28 UTC 2018
These dependancies were newly introduced when perl core packaging was
changed in recentish Fedora, so aren't available on RHEL-7.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
perl-Sys-Virt.spec.PL | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/perl-Sys-Virt.spec.PL b/perl-Sys-Virt.spec.PL
index 451af27..660890e 100644
--- a/perl-Sys-Virt.spec.PL
+++ b/perl-Sys-Virt.spec.PL
@@ -40,9 +40,11 @@ BuildRequires: findutils
BuildRequires: gcc
BuildRequires: libvirt-devel >= %{version}
BuildRequires: make
-BuildRequires: perl-interpreter
BuildRequires: perl-devel
+%if 0%{?fedora} || 0%{?rhel} > 7
+BuildRequires: perl-interpreter
BuildRequires: perl-generators
+%endif
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: sed
--
2.17.0
More information about the libvir-list
mailing list