LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File project.diff of Package python-pyOpenSSL (Project home:frispete:python)

--- python-pyOpenSSL.spec.orig
+++ python-pyOpenSSL.spec
@@ -16,6 +16,8 @@
 #
 
 
+%bcond_without test
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:           python-pyOpenSSL
@@ -69,11 +71,13 @@ other things) a cffi-based interface to
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%if %{with test}
 %check
 export LC_ALL=en_US.UTF-8
 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
 py.test-%{$python_bin_suffix} -m "not network"
 }
+%endif
 
 %files %{python_files}
 %license LICENSE