From 75d980ac350199b3966ccc0bed53322c6be983fb Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 14 Jun 2019 11:54:19 +0200 Subject: [PATCH] Fix HREL 7 build --- libqmi.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libqmi.spec b/libqmi.spec index 539f5de..c5a5faa 100644 --- a/libqmi.spec +++ b/libqmi.spec @@ -11,7 +11,11 @@ Source: http://freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz BuildRequires: gcc BuildRequires: glib2-devel >= 2.32.0 BuildRequires: pkgconfig(gudev-1.0) >= 147 +%if 0%{?rhel} > 0 && 0%{?rhel} < 8 +BuildRequires: python +%else BuildRequires: python3 +%endif BuildRequires: gtk-doc BuildRequires: libmbim-devel >= 1.18.0