diff --git a/python-lxml.spec b/python-lxml.spec index 23a8a09..2f64fc5 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -1,8 +1,10 @@ %global modname lxml +%bcond_without cython + Name: python-%{modname} Version: 4.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: XML processing library combining libxml2/libxslt with the ElementTree API License: BSD @@ -26,7 +28,9 @@ home page < or see our bug tracker at case you want to use the current ... Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools +%if %{with cython} BuildRequires: python2-Cython +%endif Recommends: python2-cssselect Recommends: python2-html5lib Recommends: python2-beautifulsoup4 @@ -40,7 +44,9 @@ Python 2 version. Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools +%if %{with cython} BuildRequires: python3-Cython +%endif Recommends: python3-cssselect Recommends: python3-html5lib Recommends: python3-beautifulsoup4 @@ -54,7 +60,9 @@ Python 3 version. %autosetup -n %{modname}-%{version} %build +%if %{with cython} export WITH_CYTHON=true +%endif %py2_build %py3_build @@ -79,6 +87,9 @@ export WITH_CYTHON=true %{python3_sitearch}/%{modname}-*.egg-info/ %changelog +* Tue Oct 10 2017 Mikolaj Izdebski - 4.0.0-2 +- Conditionally allow building without Cython + * Thu Oct 05 2017 Igor Gnatenko - 4.0.0-1 - Update to 4.0.0