From 5d7bd23980b9f40e8c289e1233fe07a7b74245cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 1 Sep 2021 18:31:14 +0100 Subject: [PATCH] rpm: drop support for RHEL-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We no longer support libvirt on this distro Signed-off-by: Daniel P. Berrangé --- libvirt-python.spec.in | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index 7f744a9..5aee578 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -3,8 +3,8 @@ # This spec file assumes you are building on a Fedora or RHEL version # that's still supported by the vendor. It may work on other distros # or versions, but no effort will be made to ensure that going forward -%define min_rhel 7 -%define min_fedora 29 +%define min_rhel 8 +%define min_fedora 33 %if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel}) %define supported_platform 1 @@ -21,13 +21,8 @@ Url: https://libvirt.org License: LGPLv2+ BuildRequires: libvirt-devel == %{version} BuildRequires: python3-devel -%if 0%{?rhel} == 7 -BuildRequires: python36-pytest -BuildRequires: python36-lxml -%else BuildRequires: python3-pytest BuildRequires: python3-lxml -%endif BuildRequires: gcc # Don't want provides for python shared objects @@ -68,18 +63,10 @@ echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}" exit 1 %endif -%if 0%{?fedora} || 0%{?rhel} >= 8 %py3_build -%else -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build -%endif %install -%if 0%{?fedora} || 0%{?rhel} >= 8 %py3_install -%else -%{__python3} setup.py install --skip-build --root=%{buildroot} -%endif %check %{__python3} setup.py test