python3.14-cffi/SPECS/python3.14-cffi.spec
2026-04-16 04:55:35 -04:00

87 lines
2.3 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 2;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global python3_pkgversion 3.14
Name: python%{python3_pkgversion}-cffi
Version: 2.0.0
Release: %autorelease
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
# Fix coverity scan issue
# Possibility of using Py_XDECREF on an uninitialized pointer
# Resolved upstream: https://github.com/python-cffi/cffi/pull/221
Patch: fix-pyxdecref-uninit-pointer.patch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pytest
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 LuaJITs FFI.
%prep
%autosetup -p1 -n cffi-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files _cffi_backend cffi
%check
%pytest
%files -n python%{python3_pkgversion}-cffi -f %{pyproject_files}
%doc README.md
%license LICENSE
%changelog
## START: Generated by rpmautospec
* Tue Jan 13 2026 Charalampos Stratakis <cstratak@redhat.com> - 2.0.0-2
- Fix Py_XDECREF of an unitialized pointer
- Resolves: RHEL-120834
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.0.0-1
- Update to 2.0.0 - taken from Fedora 4e8a485
* Fri Nov 28 2025 Lukáš Zachar <lzachar@redhat.com> - 1.17.1-3
- Add gating
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.17.1-2
- Convert from Fedora for the Python 3.14 stack in RHEL
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.17.1-1
- RHEL: Rename SPEC to python3.14-cffi.spec
## END: Generated by rpmautospec