Conditionally allow building without Cython
This commit is contained in:
parent
a50349c35b
commit
3b003d493f
|
@ -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 <mizdebsk@redhat.com> - 4.0.0-2
|
||||
- Conditionally allow building without Cython
|
||||
|
||||
* Thu Oct 05 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue