diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-09-01 18:31:14 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-09-01 18:33:28 +0100 |
commit | 5d7bd23980b9f40e8c289e1233fe07a7b74245cb (patch) | |
tree | 8134af9c3e3a1e383d83b6cb37b8c5790768aa67 /libvirt-python.spec.in | |
parent | dd5e2d796e7ff1a9f6c3b86ccf20154a912a55d8 (diff) | |
download | libvirt-python-5d7bd23980b9f40e8c289e1233fe07a7b74245cb.tar.gz |
rpm: drop support for RHEL-7
We no longer support libvirt on this distro
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r-- | libvirt-python.spec.in | 17 |
1 files 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 |