diff --git a/python-Cython-rpmlintrc b/python-Cython-rpmlintrc index e87788f..8055173 100644 --- a/python-Cython-rpmlintrc +++ b/python-Cython-rpmlintrc @@ -1,4 +1,4 @@ addFilter('devel-file-in-non-devel-package .*/Cython/.*') -addFilter('devel-dependency python38-devel') addFilter('devel-dependency python39-devel') addFilter('devel-dependency python310-devel') +addFilter('devel-dependency python311-devel') diff --git a/python-Cython.changes b/python-Cython.changes index 8ed05dc..8e6b6bc 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 10 19:03:16 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Sat Jul 8 20:26:51 UTC 2023 - Arun Persaud diff --git a/python-Cython.spec b/python-Cython.spec index ffdba73..7cb83e5 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -16,6 +16,7 @@ # +%{?sle15_python_module_pythons} %bcond_with test Name: python-Cython Version: 0.29.36 @@ -26,6 +27,8 @@ URL: https://cython.org/ Source: https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{version}.tar.gz Source1: python-Cython-rpmlintrc BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: gcc-c++ @@ -34,7 +37,6 @@ Requires: python-devel Requires: python-xml Requires(post): update-alternatives Requires(postun):update-alternatives -%{?sle15_python_module_pythons} %python_subpackages %description @@ -54,10 +56,10 @@ sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py %build export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for p in cython cythonize cygdb ; do %python_clone -a %{buildroot}%{_bindir}/$p done @@ -89,7 +91,7 @@ $python runtests.py -v %python_alternative %{_bindir}/cython %python_alternative %{_bindir}/cythonize %{python_sitearch}/Cython/ -%{python_sitearch}/Cython-%{version}-py*.egg-info +%{python_sitearch}/Cython-%{version}*-info %{python_sitearch}/cython.py* %pycache_only %{python_sitearch}/__pycache__/cython*.py* %{python_sitearch}/pyximport/