|
|
ec2a0f |
%global __python3 /usr/bin/python3.11
|
|
|
ec2a0f |
%global python3_pkgversion 3.11
|
|
|
ec2a0f |
|
|
|
ec2a0f |
Name: python%{python3_pkgversion}-cffi
|
|
|
ec2a0f |
%global general_version 1.15.1
|
|
|
ec2a0f |
Version: %{general_version}%{?prerel:~%{prerel}}
|
|
|
ec2a0f |
Release: 1%{?dist}
|
|
|
ec2a0f |
Summary: Foreign Function Interface for Python to call C code
|
|
|
ec2a0f |
License: MIT
|
|
|
ec2a0f |
URL: https://cffi.readthedocs.org/
|
|
|
ec2a0f |
Source: https://foss.heptapod.net/pypy/cffi/-/archive/v%{version}/cffi-v%{version}.tar.bz2
|
|
|
ec2a0f |
|
|
|
ec2a0f |
# Adjust tests for a last minute Python 3.11 change in the traceback format
|
|
|
ec2a0f |
Patch0: https://foss.heptapod.net/pypy/cffi/-/merge_requests/113.patch
|
|
|
ec2a0f |
|
|
|
ec2a0f |
# Drop usage of the deprecated py.test package
|
|
|
ec2a0f |
Patch1: https://foss.heptapod.net/pypy/cffi/-/merge_requests/115.patch
|
|
|
ec2a0f |
# Drop usage of the deprecated py.code package
|
|
|
ec2a0f |
Patch2: https://foss.heptapod.net/pypy/cffi/-/merge_requests/116.patch
|
|
|
ec2a0f |
|
|
|
ec2a0f |
BuildRequires: make
|
|
|
ec2a0f |
BuildRequires: libffi-devel
|
|
|
ec2a0f |
BuildRequires: gcc
|
|
|
ec2a0f |
|
|
|
ec2a0f |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
ec2a0f |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
ec2a0f |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
ec2a0f |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
ec2a0f |
BuildRequires: python%{python3_pkgversion}-pycparser
|
|
|
ec2a0f |
|
|
|
ec2a0f |
Requires: python%{python3_pkgversion}-pycparser
|
|
|
ec2a0f |
|
|
|
ec2a0f |
# For tests:
|
|
|
ec2a0f |
BuildRequires: gcc-c++
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%description
|
|
|
ec2a0f |
Foreign Function Interface for Python, providing a convenient and
|
|
|
ec2a0f |
reliable way of calling existing C code from Python. The interface is
|
|
|
ec2a0f |
based on LuaJIT’s FFI.
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%prep
|
|
|
ec2a0f |
%autosetup -p1 -n cffi-v%{general_version}%{?prerel}
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%build
|
|
|
ec2a0f |
%py3_build
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%install
|
|
|
ec2a0f |
%py3_install
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%check
|
|
|
ec2a0f |
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%files -n python%{python3_pkgversion}-cffi
|
|
|
ec2a0f |
%doc README.md
|
|
|
ec2a0f |
%license LICENSE
|
|
|
ec2a0f |
%{python3_sitearch}/cffi/
|
|
|
ec2a0f |
%{python3_sitearch}/_cffi_backend.*.so
|
|
|
ec2a0f |
%{python3_sitearch}/cffi-%{general_version}%{?prerel}-py%{python3_version}.egg-info/
|
|
|
ec2a0f |
|
|
|
ec2a0f |
%changelog
|
|
|
ec2a0f |
* Tue Nov 29 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.15.1-1
|
|
|
ec2a0f |
- Initial package
|
|
|
ec2a0f |
- Fedora contributions by:
|
|
|
ec2a0f |
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
ec2a0f |
Dennis Gilmore <dennis@ausil.us>
|
|
|
ec2a0f |
Eric Smith <brouhaha@fedoraproject.org>
|
|
|
ec2a0f |
Gwyn Ciesla <limburgher@gmail.com>
|
|
|
ec2a0f |
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
|
ec2a0f |
Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|
|
ec2a0f |
Joel Capitao <jcapitao@redhat.com>
|
|
|
ec2a0f |
John Dulaney <jdulaney@fedoraproject.org>
|
|
|
ec2a0f |
Lumir Balhar <lbalhar@redhat.com>
|
|
|
ec2a0f |
Miro Hrončok <miro@hroncok.cz>
|
|
|
ec2a0f |
Nathaniel McCallum <nathaniel@themccallums.org>
|
|
|
ec2a0f |
Orion Poplawski <orion@cora.nwra.com>
|
|
|
ec2a0f |
Parag Nemade <pnemade@redhat.com>
|
|
|
ec2a0f |
Peter Robinson <pbrobinson@fedoraproject.org>
|
|
|
ec2a0f |
Petr Viktorin <pviktori@redhat.com>
|
|
|
ec2a0f |
Robert Kuska <rkuska@redhat.com>
|
|
|
ec2a0f |
Slavek Kabrda <bkabrda@redhat.com>
|
|
|
ec2a0f |
Tomáš Hrnčiar <thrnciar@redhat.com>
|
|
|
ec2a0f |
Tom Stellard <tstellar@redhat.com>
|
|
|
ec2a0f |
Troy Dawson <tdawson@redhat.com>
|