[libvirt] [perl PATCH] Only use perl-interpreter & perl-generators on Fedora / future RHEL

Daniel P. Berrangé posted 1 patch 5 years, 10 months ago
Failed in applying to current master (apply log)
perl-Sys-Virt.spec.PL | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
[libvirt] [perl PATCH] Only use perl-interpreter & perl-generators on Fedora / future RHEL
Posted by Daniel P. Berrangé 5 years, 10 months ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [perl PATCH] Only use perl-interpreter & perl-generators on Fedora / future RHEL
Posted by Andrea Bolognani 5 years, 10 months ago
On Thu, 2018-06-07 at 11:41 +0100, Daniel P. Berrangé wrote:
> 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@redhat.com>
> ---
>  perl-Sys-Virt.spec.PL | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Andrea Bolognani <abologna@redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list