diff --git a/python-cffi.spec b/python-cffi.spec index 8c70d3d..b153036 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -1,6 +1,6 @@ Name: python-cffi Version: 1.12.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Foreign Function Interface for Python to call C code License: MIT URL: https://cffi.readthedocs.org/ @@ -19,21 +19,6 @@ Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI. -%package -n python2-cffi -Summary: Foreign Function Interface for Python 3 to call C code -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 -Foreign Function Interface for Python, providing a convenient and -reliable way of calling existing C code from Python. The interface is -based on LuaJIT’s FFI. - %package -n python3-cffi Summary: Foreign Function Interface for Python 3 to call C code BuildRequires: python3-sphinx @@ -59,7 +44,6 @@ Documentation for CFFI, the Foreign Function Interface for Python. %autosetup -p1 -n cffi-%{version} %build -%py2_build %py3_build cd doc @@ -67,22 +51,11 @@ make SPHINXBUILD=sphinx-build-3 html rm build/html/.buildinfo %install -%py2_install %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 -%doc PKG-INFO -%license LICENSE -%{python2_sitearch}/cffi/ -%{python2_sitearch}/_cffi_backend.so -%{python2_sitearch}/cffi-%{version}-py%{python2_version}.egg-info/ - %files -n python3-cffi %doc PKG-INFO %license LICENSE @@ -94,6 +67,10 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ %doc doc/build/html %changelog +* Sun Oct 13 2019 Miro Hrončok - 1.12.3-5 +- Subpackage python2-cffi has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Thu Oct 03 2019 Miro Hrončok - 1.12.3-4 - Rebuilt for Python 3.8.0rc1 (#1748018)