2013-02-10 10:02:31 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-cffi
|
|
|
|
|
#
|
2024-06-30 21:27:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-02-10 10:02:31 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-09-18 16:00:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-30 08:50:15 +00:00
|
|
|
#
|
2013-02-10 10:02:31 +00:00
|
|
|
|
|
|
|
|
|
2023-04-21 14:49:53 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-02-20 08:20:54 +00:00
|
|
|
Name: python-cffi
|
2023-10-06 16:35:58 +00:00
|
|
|
Version: 1.16.0
|
2013-02-10 10:02:31 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Foreign Function Interface for Python calling C code
|
2013-09-30 08:50:15 +00:00
|
|
|
License: MIT
|
2020-02-24 14:59:21 +00:00
|
|
|
URL: https://cffi.readthedocs.org
|
2018-02-20 08:20:54 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
|
2015-06-02 17:47:58 +00:00
|
|
|
Source1: python-cffi-rpmlintrc
|
2024-06-30 21:27:50 +00:00
|
|
|
Patch1: https://github.com/python-cffi/cffi/commit/49127c6929bfc7186fbfd3819dd5e058ad888de4.patch#/py313-use-format-unraisable.patch
|
|
|
|
|
Patch2: https://github.com/python-cffi/cffi/commit/14723b0bbd127790c450945099db31018d80fa83.patch#/py313-compat.patch
|
|
|
|
|
Patch3: https://github.com/python-cffi/cffi/commit/c27335f0f8e1e4436082236e92ddabe1b8324d22.patch#/py313-use-hashpointer.patch
|
2017-03-16 18:03:17 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-10-06 07:10:19 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-01-18 13:30:58 +00:00
|
|
|
BuildRequires: %{python_module pycparser}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-10-06 07:10:19 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-09-18 16:00:36 +00:00
|
|
|
BuildRequires: fdupes
|
2015-06-02 17:47:58 +00:00
|
|
|
BuildRequires: gcc-c++
|
2018-01-18 13:30:58 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-16 18:03:17 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-03-31 14:19:07 +00:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
2018-01-18 13:30:58 +00:00
|
|
|
Requires: python-pycparser
|
2017-03-16 18:03:17 +00:00
|
|
|
%python_subpackages
|
2013-02-10 10:02:31 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Foreign Function Interface for Python calling C code. The aim of this project
|
|
|
|
|
is to provide a convenient and reliable way of calling C code from Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-01-06 09:01:16 +00:00
|
|
|
%autosetup -p1 -n cffi-%{version}
|
2013-02-10 10:02:31 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-03-16 18:03:17 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2023-10-06 07:10:19 +00:00
|
|
|
%pyproject_wheel
|
2013-02-10 10:02:31 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-10-06 07:10:19 +00:00
|
|
|
%pyproject_install
|
2018-09-18 16:00:36 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-02-10 10:02:31 +00:00
|
|
|
|
2014-04-02 08:15:41 +00:00
|
|
|
%check
|
2023-10-06 17:02:57 +00:00
|
|
|
%pytest_arch -W ignore::UserWarning src/c/ testing/
|
2013-02-10 10:02:31 +00:00
|
|
|
|
2017-03-16 18:03:17 +00:00
|
|
|
%files %{python_files}
|
2018-09-18 16:00:36 +00:00
|
|
|
%license LICENSE
|
2019-03-07 16:39:07 +00:00
|
|
|
%doc README.md doc/source/*.rst doc/misc/*.rst
|
2023-10-06 07:10:19 +00:00
|
|
|
%{python_sitearch}/cffi
|
|
|
|
|
%{python_sitearch}/_cffi_backend.*.so
|
|
|
|
|
%{python_sitearch}/cffi-%{version}*-info
|
2013-02-10 10:02:31 +00:00
|
|
|
|
|
|
|
|
%changelog
|