From f83f289d82a18ef3ba50b3acba49df5edb8829f3 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Tue, 11 Feb 2020 12:56:51 +0530 Subject: [PATCH] Fix py2 condition for El8 With current setting python2 build was enabled for both EL7 and EL8, with this patch python2 build is enabled only for EL7. --- python-httpretty.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-httpretty.spec b/python-httpretty.spec index 4e5b56b..6f3efce 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -1,4 +1,4 @@ -%if %{defined rhel} || (%{defined fedora} && 0%{?fedora} < 30) +%if (%{defined rhel} && 0%{?rhel} < 8) || (%{defined fedora} && 0%{?fedora} < 30) %bcond_without python2 %endif %bcond_without python3