From a59154a7cf8c293023603288f14f1a3277f50718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 26 Aug 2019 13:31:35 +0200 Subject: [PATCH] Reduce Python 2 build dependencies --- python-cffi.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python-cffi.spec b/python-cffi.spec index 2fb7b05..4d418b3 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -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 LuaJIT’s 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 - 1.12.3-3 +- Reduce Python 2 build dependencies + * Fri Aug 16 2019 Miro Hrončok - 1.12.3-2 - Rebuilt for Python 3.8