Reduce Python 2 build dependencies

This commit is contained in:
Miro Hrončok 2019-08-26 13:31:35 +02:00
parent 76ff2656be
commit a59154a7cf
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: python-cffi
Version: 1.12.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Foreign Function Interface for Python to call C code
License: MIT
URL: https://cffi.readthedocs.org/
@ -21,10 +21,12 @@ based on LuaJITs FFI.
%package -n python2-cffi
Summary: Foreign Function Interface for Python 3 to call C code
BuildRequires: python2-pytest
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pycparser
%if 0%{?fedora} < 32
BuildRequires: python2-pytest
%endif
%{?python_provide:%python_provide python2-cffi}
%description -n python2-cffi
@ -69,7 +71,9 @@ rm build/html/.buildinfo
%py3_install
%check
%if 0%{?fedora} < 32
PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest c/ testing/
%endif
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%files -n python2-cffi
@ -90,6 +94,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%doc doc/build/html
%changelog
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-3
- Reduce Python 2 build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.3-2
- Rebuilt for Python 3.8