Subpackage python2-cffi has been removed

This commit is contained in:
Miro Hrončok 2019-10-13 12:41:04 +02:00
parent db04ce7be3
commit d0eb25474a
1 changed files with 5 additions and 28 deletions

View File

@ -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 LuaJITs 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 LuaJITs 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 <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 1.12.3-4
- Rebuilt for Python 3.8.0rc1 (#1748018)