Generate C files using py3 Cython

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-09-07 13:36:10 +02:00
parent 9f539bef55
commit 960a9c1ff7
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
1 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@
Name: python-%{modname}
Version: 4.4.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: XML processing library combining libxml2/libxslt with the ElementTree API
License: BSD
@ -52,16 +52,15 @@ Python 3 version.
%prep
%autosetup -n %{modname}-%{version}
# Remove pregenerated Cython C sources
# TODO: re-enable after dropping py2
#find -type f -name '*.c' -print -delete
find -type f -name '*.c' -print -delete
%build
%py2_build
env WITH_CYTHON=true %py3_build
%py2_build
%install
%py2_install
env WITH_CYTHON=true %py3_install
%py3_install
%check
%{__python2} setup.py test
@ -80,6 +79,9 @@ env WITH_CYTHON=true %py3_install
%{python3_sitearch}/%{modname}-*.egg-info/
%changelog
* Sat Sep 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-2
- Generate C files using py3 Cython
* Sat Sep 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.1-1
- Update to 4.4.1