Fedora contributions by:
Bohuslav Kabrda <bkabrda@redhat.com>
Charalampos Stratakis <cstratak@redhat.com>
Dennis Gilmore <dennis@ausil.us>
Eric Smith <spacewar@gmail.com> 0.6-1
Gwyn Ciesla <limburgher@gmail.com>
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Iryna Shcherbina <ishcherb@redhat.com>
Joel Capitao <jcapitao@redhat.com>
John Dulaney <jdulaney@fedoraproject.org>
Lumír Balhar <lbalhar@redhat.com>
Miro Hrončok <mhroncok@redhat.com>
Nathaniel McCallum <npmccallum@redhat.com>
Orion Poplawski <orion@cora.nwra.com>
Parag Nemade <pnemade AT redhat DOT com>
Peter Robinson <pbrobinson@fedoraproject.org>
Petr Viktorin <pviktori@redhat.com>
Robert Kuska <rkuska@redhat.com>
Tomáš Hrnčiar <thrnciar@redhat.com>
Tom Stellard <tstellar@redhat.com>
Troy Dawson <tdawson@redhat.com>
56 lines
1.1 KiB
RPMSpec
56 lines
1.1 KiB
RPMSpec
%global python3_pkgversion 3.14
|
||
|
||
Name: python%{python3_pkgversion}-cffi
|
||
Version: 1.17.1
|
||
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
|
||
|
||
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 LuaJIT’s 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
|
||
%autochangelog
|