%global __python3 /usr/bin/python3.12 %global python3_pkgversion 3.12 Name: python%{python3_pkgversion}-cffi Version: 1.16.0 Release: 1%{?dist} Summary: Foreign Function Interface for Python to call C code # cffi is MIT # cffi/_imp_emulation.py has bits copied from CPython (PSF-2.0) License: MIT AND PSF-2.0 URL: https://github.com/python-cffi/cffi Source: %{url}/archive/v%{version}/cffi-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: make BuildRequires: libffi-devel BuildRequires: gcc BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pycparser Requires: python%{python3_pkgversion}-pycparser # 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. %prep %autosetup -p1 -n cffi-%{version} %build %py3_build %install %py3_install %check %pytest %files -n python%{python3_pkgversion}-cffi %doc README.md %license LICENSE %{python3_sitearch}/cffi/ %{python3_sitearch}/_cffi_backend.*.so %{python3_sitearch}/cffi-*.egg-info/ %changelog * Tue Oct 17 2023 Tomáš Hrnčiar - 1.16.0-1 - Initial package - Fedora contributions by: Charalampos Stratakis Dennis Gilmore Eric Smith Gwyn Ciesla Igor Gnatenko Iryna Shcherbina Joel Capitao John Dulaney Lumir Balhar Miro Hrončok Nathaniel McCallum Orion Poplawski Parag Nemade Peter Robinson Petr Viktorin Robert Kuska Slavek Kabrda Tomáš Hrnčiar Tom Stellard Troy Dawson