| |
@@ -1,5 +1,7 @@
|
| |
%global modname ptyprocess
|
| |
|
| |
+ %bcond_without tests
|
| |
+
|
| |
Name: python-ptyprocess
|
| |
Version: 0.6.0
|
| |
Release: 4%{?dist}
|
| |
@@ -11,9 +13,11 @@
|
| |
|
| |
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 @@
|
| |
%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
|
| |
Allow ptyprocess to be built without requiring pytest so pytest can be built.