From fd472e949690c2ec91648da8ddad16ba11f2f5f33d6137dee8d1322363581072 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 30 Jun 2023 20:58:44 +0000 Subject: [PATCH] Accepting request 1096099 from home:edogawa - remove src/_rtmidi.cpp to let it be regenerated, to allow for python 3.11 flavour - use %pyproject_wheel/%pyproject_install macros OBS-URL: https://build.opensuse.org/request/show/1096099 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rtmidi?expand=0&rev=17 --- python-python-rtmidi.changes | 5 +++++ python-python-rtmidi.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-python-rtmidi.changes b/python-python-rtmidi.changes index c3c89a3..7c8a969 100644 --- a/python-python-rtmidi.changes +++ b/python-python-rtmidi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 27 12:56:49 UTC 2023 - Edgar Aichinger + +- remove src/_rtmidi.cpp to let it be regenerated, to allow for python 3.11 flavour + ------------------------------------------------------------------- Tue Feb 21 09:57:05 UTC 2023 - Daniel Garcia diff --git a/python-python-rtmidi.spec b/python-python-rtmidi.spec index 9223c4f..8e9777a 100644 --- a/python-python-rtmidi.spec +++ b/python-python-rtmidi.spec @@ -15,9 +15,6 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - -# Do not support python 3.11 yet, gh#SpotlightKid/python-rtmidi#115 -%define skip_python311 1 Name: python-python-rtmidi Version: 1.4.9 Release: 0 @@ -25,11 +22,14 @@ Summary: Python binding for the RtMidi C++ library License: MIT Group: Development/Languages/Python URL: https://spotlightkid.github.io/python-rtmidi/ -Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/python-rtmidi-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/python-rtmidi-%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module Cython <= 1.0.0} BuildRequires: c++_compiler BuildRequires: fdupes BuildRequires: pkgconfig @@ -62,9 +62,10 @@ Contains HTML documentation and examples for python-rtmidi. %prep %setup -q -n python-rtmidi-%{version} sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py +rm src/_rtmidi.cpp %build -%python_build +%pyproject_wheel # docs rm docs/rtmidi.rst @@ -76,7 +77,7 @@ cat docs/api.rst.inc >> docs/rtmidi.rst rm docs/_build/html/.buildinfo docs/_build/html/objects.inv %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} # not running tests since they require working JACK/ALSA,