A new user interface for you! Read more...

File project.diff of Package python-ldap

--- python-ldap.spec.orig
+++ python-ldap.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ldap
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,8 @@
 #
 
 
+%bcond_without test
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ldap
 Version:        3.1.0
@@ -60,8 +62,10 @@ CFLAGS="%{optflags}" %python_build
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
+%if %{with test}
 %check
 %python_exec setup.py test
+%endif
 
 %files %{python_files}
 %license LICENCE