From 951412fd6a6ec5a7ee444cabb261687384fcfab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 29 Sep 2020 11:40:27 +0200 Subject: [PATCH] Fix conditional for Python 2 subpackage It's only needed for EPEL 6 and 7. It was also triggering for ELN, which caused build failures. --- python-productmd.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-productmd.spec b/python-productmd.spec index 8a774ea..cbb1460 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,7 +1,7 @@ -%if 0%{?fedora} >= 31 -%bcond_with python2 -%else +%if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_without python2 +%else +%bcond_with python2 %endif %bcond_without python3 @@ -9,7 +9,7 @@ Name: python-%{srcname} Version: 1.28 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library providing parsers for metadata related to OS installation License: LGPLv2+ @@ -102,6 +102,9 @@ Requires: python%{python3_pkgversion}-six %endif %changelog +* Tue Sep 29 2020 Lubomír Sedlář - 1.28-2 +- Fix Python 2 conditional for ELN + * Fri Sep 25 2020 Lubomír Sedlář - 1.28-1 - New upstream release