File project.diff of Package python-lxml
--- python-lxml.spec
+++ python-lxml.spec
@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+%undefine have_python2
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lxml
@@ -29,6 +30,7 @@
Source1: https://lxml.de/lxmldoc-4.5.2.pdf
BuildRequires: %{python_module Cython >= 0.29.7}
BuildRequires: %{python_module cssselect >= 0.9.1}
+BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: fdupes
BuildRequires: libxml2-devel >= 2.7.0
@@ -86,9 +88,6 @@
export CFLAGS="%{optflags}"
export LANG=en_US.UTF-8
export PYTHONUNBUFFERED=x
-%if 0%{?have_python2}
-make %{?_smp_mflags} test
-%endif
%if 0%{?have_python3}
make %{?_smp_mflags} test3
%endif