From 7f883e8d2b6a2f6538f00795c313efdeced8624c Mon Sep 17 00:00:00 2001 From: Jeroen van Meeuwen (Kolab Systems) Date: Mar 08 2019 12:20:45 +0000 Subject: Add bcond_without tests to break dependency loop on pytest --- diff --git a/python-ptyprocess.spec b/python-ptyprocess.spec index 731abca..95d92ba 100644 --- a/python-ptyprocess.spec +++ b/python-ptyprocess.spec @@ -1,5 +1,7 @@ %global modname ptyprocess +%bcond_without tests + Name: python-ptyprocess Version: 0.6.0 Release: 4%{?dist} @@ -11,9 +13,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyp BuildArch: noarch BuildRequires: python2-devel -BuildRequires: pytest BuildRequires: python%{python3_pkgversion}-devel +%if %{with tests} +BuildRequires: pytest BuildRequires: python%{python3_pkgversion}-pytest +%endif %description Launch a subprocess in a pseudo terminal (pty), and interact with both the @@ -44,9 +48,11 @@ process and its pty. %py3_install %py2_install +%if %{with tests} %check %{_bindir}/py.test-3.* -v %{_bindir}/py.test-2.* -v +%endif %files -n python2-ptyprocess %license LICENSE