diff --git a/python-openshift.spec b/python-openshift.spec index 4709fc5..f87d97f 100644 --- a/python-openshift.spec +++ b/python-openshift.spec @@ -10,14 +10,22 @@ %if 0%{?rhel} == 7 +%if 0%{?rhel} == 7 %global py3 python%{python3_pkgversion} -%else +%global py3dev python%{python3_pkgversion} +%endif +%if 0%{?rhel} == 8 +%global py3 python3 +%global py3dev python36 +%endif +%if 0%{?fedora} %global py3 python3 +%global py3dev python3 %endif Name: python-%{library} Version: 0.11.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python client for the OpenShift API License: ASL 2.0 URL: https://github.com/openshift/openshift-restclient-python @@ -54,7 +62,8 @@ Python client for the kubernetes API. %if 0%{?with_python3} %package -n %{py3}-%{library} Summary: Python client for the OpenShift API -BuildRequires: %{py3}-devel +BuildRequires: %{py3dev}-devel +BuildRequires: %{py3dev}-rpm-macros %if 0%{?rhel} != 7 BuildRequires: %{py3}-kubernetes >= 8.0.0 %endif