Blame SPECS/python3.11-cffi.spec

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