diff --git a/python-cffi.changes b/python-cffi.changes index 19cacaa..8f3d96b 100644 --- a/python-cffi.changes +++ b/python-cffi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 6 07:10:11 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Fri Apr 21 12:23:11 UTC 2023 - Dirk Müller diff --git a/python-cffi.spec b/python-cffi.spec index a62576f..844baba 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-cffi Version: 1.15.1 @@ -28,10 +27,11 @@ Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{ver Source1: python-cffi-rpmlintrc Patch1: https://foss.heptapod.net/pypy/cffi/-/commit/8a3c2c816d789639b49d3ae867213393ed7abdff.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pycparser} BuildRequires: %{python_module pytest} BuildRequires: %{python_module py} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -49,10 +49,10 @@ is to provide a convenient and reliable way of calling C code from Python. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -61,6 +61,8 @@ export CFLAGS="%{optflags}" %files %{python_files} %license LICENSE %doc README.md doc/source/*.rst doc/misc/*.rst -%{python_sitearch}/* +%{python_sitearch}/cffi +%{python_sitearch}/_cffi_backend.*.so +%{python_sitearch}/cffi-%{version}*-info %changelog