2013-02-10 11:02:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-cffi
|
|
|
|
#
|
2023-01-06 10:01:16 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2013-02-10 11:02:31 +01: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 18:00:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-30 10:50:15 +02:00
|
|
|
#
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
|
2023-04-21 16:49:53 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-02-20 09:20:54 +01:00
|
|
|
Name: python-cffi
|
2023-10-06 18:35:58 +02:00
|
|
|
Version: 1.16.0
|
2013-02-10 11:02:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Foreign Function Interface for Python calling C code
|
2013-09-30 10:50:15 +02:00
|
|
|
License: MIT
|
2020-02-24 15:59:21 +01:00
|
|
|
URL: https://cffi.readthedocs.org
|
2018-02-20 09:20:54 +01:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
|
2015-06-02 19:47:58 +02:00
|
|
|
Source1: python-cffi-rpmlintrc
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-10-06 09:10:19 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-01-18 14:30:58 +01:00
|
|
|
BuildRequires: %{python_module pycparser}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-10-06 09:10:19 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-09-18 18:00:36 +02:00
|
|
|
BuildRequires: fdupes
|
2015-06-02 19:47:58 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-01-18 14:30:58 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-03-31 16:19:07 +02:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
2018-01-18 14:30:58 +01:00
|
|
|
Requires: python-pycparser
|
2017-03-16 19:03:17 +01:00
|
|
|
%python_subpackages
|
2013-02-10 11:02:31 +01: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 10:01:16 +01:00
|
|
|
%autosetup -p1 -n cffi-%{version}
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%build
|
2017-03-16 19:03:17 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2023-10-06 09:10:19 +02:00
|
|
|
%pyproject_wheel
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%install
|
2023-10-06 09:10:19 +02:00
|
|
|
%pyproject_install
|
2018-09-18 18:00:36 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2014-04-02 10:15:41 +02:00
|
|
|
%check
|
2023-10-06 19:02:57 +02:00
|
|
|
%pytest_arch -W ignore::UserWarning src/c/ testing/
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2017-03-16 19:03:17 +01:00
|
|
|
%files %{python_files}
|
2018-09-18 18:00:36 +02:00
|
|
|
%license LICENSE
|
2019-03-07 17:39:07 +01:00
|
|
|
%doc README.md doc/source/*.rst doc/misc/*.rst
|
2023-10-06 09:10:19 +02:00
|
|
|
%{python_sitearch}/cffi
|
|
|
|
%{python_sitearch}/_cffi_backend.*.so
|
|
|
|
%{python_sitearch}/cffi-%{version}*-info
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%changelog
|