From 727d7901c5b73bd33942b465d23099b9bc79d4b1 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Wed, 20 Feb 2019 01:16:22 +0100 Subject: [PATCH] Clause in 0%{?rhel} >= 8 similar in value to 0%{?fedora} --- python-packaging.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-packaging.spec b/python-packaging.spec index a1185e7..a967263 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -1,6 +1,6 @@ %global pypi_name packaging -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 8 %global build_wheel 1 %global with_python3 1 %endif @@ -22,7 +22,7 @@ Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{ BuildArch: noarch # Dependencies with different names in Fedora and Epel7 -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: python2-setuptools BuildRequires: python2-devel BuildRequires: python2-pytest @@ -71,7 +71,7 @@ dealing with versions, specifiers, markers etc. Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 8 Requires: python2-pyparsing %else Requires: pyparsing @@ -148,7 +148,7 @@ rm -rf html/_static/fonts/ %endif %check -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?rhel} >= 8 %{__python2} -m pytest tests/ %{__python3} -m pytest tests/ %else