Name: python-cffi Version: 1.15.1 Release: %autorelease Summary: Foreign Function Interface for Python to call C code # Patch 482f0af has bits copied from CPython (PSF-2.0) License: MIT AND PSF-2.0 URL: https://cffi.readthedocs.org/ Source: https://foss.heptapod.net/pypy/cffi/-/archive/v%{version}/cffi-v%{version}.tar.bz2 # Adjust tests for a last minute Python 3.11 change in the traceback format Patch: https://foss.heptapod.net/pypy/cffi/-/merge_requests/113.patch # Drop usage of the deprecated py.test package Patch: https://foss.heptapod.net/pypy/cffi/-/merge_requests/115.patch # Drop usage of the deprecated py.code package Patch: https://foss.heptapod.net/pypy/cffi/-/merge_requests/116.patch # Python 3.12 compatibility Patch: https://foss.heptapod.net/pypy/cffi/-/commit/482f0af.patch Patch: https://foss.heptapod.net/pypy/cffi/-/commit/c3593e4.patch Patch: https://foss.heptapod.net/pypy/cffi/-/commit/87f514b.patch Patch: https://foss.heptapod.net/pypy/cffi/-/commit/69660bd.patch Patch: https://foss.heptapod.net/pypy/cffi/-/commit/814c55e.patch BuildRequires: python3-devel BuildRequires: make BuildRequires: libffi-devel BuildRequires: gcc # For tests: BuildRequires: gcc-c++ %description 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: %{summary} %description -n python3-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 doc Summary: Documentation for CFFI BuildArch: noarch BuildRequires: python3-sphinx %description doc Documentation for CFFI, the Foreign Function Interface for Python. %prep %autosetup -p1 -n cffi-v%{version} %generate_buildrequires %pyproject_buildrequires requirements.txt %build %pyproject_wheel cd doc make html rm build/html/.buildinfo %install %pyproject_install %pyproject_save_files _cffi_backend cffi %check %pytest %files -n python3-cffi -f %{pyproject_files} %doc README.md %files doc %license LICENSE %doc doc/build/html %changelog %autochangelog