From 8a1f05d92465cd3cdaa27cad7051fbae7d298f2c Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Thu, 28 Mar 2024 18:17:07 +0300 Subject: [PATCH] import python3.12-cffi-1.16.0-2.el9 --- .gitignore | 1 + .python3.12-cffi.metadata | 1 + SPECS/python3.12-cffi.spec | 91 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 .gitignore create mode 100644 .python3.12-cffi.metadata create mode 100644 SPECS/python3.12-cffi.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..320110f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cffi-1.16.0.tar.gz diff --git a/.python3.12-cffi.metadata b/.python3.12-cffi.metadata new file mode 100644 index 0000000..6eea430 --- /dev/null +++ b/.python3.12-cffi.metadata @@ -0,0 +1 @@ +907c177687fc820052ae26b77bf519e92e683527 SOURCES/cffi-1.16.0.tar.gz diff --git a/SPECS/python3.12-cffi.spec b/SPECS/python3.12-cffi.spec new file mode 100644 index 0000000..b5dc43d --- /dev/null +++ b/SPECS/python3.12-cffi.spec @@ -0,0 +1,91 @@ +%global __python3 /usr/bin/python3.12 +%global python3_pkgversion 3.12 + +Name: python%{python3_pkgversion}-cffi +Version: 1.16.0 +Release: 2%{?dist} +Summary: Foreign Function Interface for Python to call C code +# cffi is MIT +# cffi/_imp_emulation.py has bits copied from CPython (Python) +License: MIT and Python +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 + +# For tests: +BuildRequires: gcc-c++ + +Requires: python%{python3_pkgversion}-pycparser + +%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 +* Thu Mar 28 2024 MSVSphere Packaging Team - 1.16.0-2 +- Rebuilt for MSVSphere 9.4 beta + +* Tue Jan 23 2024 Miro Hrončok - 1.16.0-2 +- Rebuilt for timestamp .pyc invalidation mode + +* 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 +