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.
This commit is contained in:
Lubomír Sedlář 2020-09-29 11:40:27 +02:00
parent 79dd93d80a
commit 951412fd6a
1 changed files with 7 additions and 4 deletions

View File

@ -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ář <lsedlar@redhat.com> - 1.28-2
- Fix Python 2 conditional for ELN
* Fri Sep 25 2020 Lubomír Sedlář <lsedlar@redhat.com> - 1.28-1
- New upstream release