Fix Python configuration for ELN/RHEL 9

Rework bconds for Python now that there are no Fedoras left that should
  use Python2

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2020-05-11 15:05:12 -04:00
parent 44db6840d5
commit 52e339296a
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11

View File

@ -1,18 +1,15 @@
%global pypi_name distro
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%bcond_without python2
%else
%bcond_without python3
%endif
%if 0%{?fedora} > 29
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{pypi_name}
Version: 1.5.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Linux Distribution - a Linux OS platform information API
License: ASL 2.0
@ -122,6 +119,11 @@ rm -rf %{pypi_name}.egg-info
%endif
%changelog
* Mon May 11 2020 Stephen Gallagher <sgallagh@redhat.com> - 1.5.0-2
- Fix Python configuration for ELN/RHEL 9
- Rework bconds for Python now that there are no Fedoras left that should
use Python2
* Tue Mar 31 2020 Marek Blaha <mblaha@redhat.com> - 1.5.0-1
- rebase to distro 1.5.0