From de632598db4b287e389e2eae2859304dd5a9f75b Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Feb 02 2019 15:43:04 +0000 Subject: disable checks on EPEL 7 builds --- diff --git a/python-openshift.spec b/python-openshift.spec index 6977f5c..c885247 100644 --- a/python-openshift.spec +++ b/python-openshift.spec @@ -17,7 +17,7 @@ Name: python-%{library} Version: 0.8.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python client for the OpenShift API License: ASL 2.0 URL: https://github.com/openshift/openshift-restclient-python @@ -31,7 +31,9 @@ Summary: Python client for the OpenShift API %{?python_provide:%python_provide python2-%{library}} BuildRequires: python2-devel +%if 0%{?rhel} != 7 BuildRequires: python2-kubernetes +%endif BuildRequires: python-pytest BuildRequires: python-setuptools BuildRequires: git @@ -53,7 +55,9 @@ Python client for the kubernetes API. %package -n %{py3}-%{library} Summary: Python client for the OpenShift API BuildRequires: %{py3}-devel +%if 0%{?rhel} != 7 BuildRequires: %{py3}-kubernetes >= 8.0.0 +%endif BuildRequires: %{py3}-pytest BuildRequires: %{py3}-setuptools BuildRequires: git @@ -121,12 +125,14 @@ sphinx-build doc/source/ html %endif %check +%if 0%{?rhel} != 7 %if 0%{?with_python2} py.test test/unit -c /dev/null -v -r s --openshift-version=latest %endif %if 0%{?with_python3} pytest-3 test/unit -c /dev/null -v -r s --openshift-version=latest %endif +%endif %if 0%{?with_python2} %files -n python2-%{library} @@ -157,6 +163,11 @@ pytest-3 test/unit -c /dev/null -v -r s --openshift-version=latest %endif %changelog +* Sat Feb 2 2019 Jason Montleon 0.8.4-3 +- Disable checks for EPEL builds +- Remove kubernetes BuildRequire for EPEL builds, requires websocket-client +- websocket-client is in extras, required by EPEL, but not available in buildroot? + * Tue Jan 29 2019 Jason Montleon 0.8.4-2 - Fix orphaned library directories - Add unit tets to %%check