forked from pool/python-python-rtmidi
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 27 12:56:49 UTC 2023 - Edgar Aichinger <edogawa@aon.at>
|
||||||
|
|
||||||
|
- 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 <daniel.garcia@suse.com>
|
Tue Feb 21 09:57:05 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -15,9 +15,6 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# 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
|
Name: python-python-rtmidi
|
||||||
Version: 1.4.9
|
Version: 1.4.9
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -29,7 +26,10 @@ Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/p
|
|||||||
BuildRequires: %{python_module Sphinx}
|
BuildRequires: %{python_module Sphinx}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module Cython <= 1.0.0}
|
||||||
BuildRequires: c++_compiler
|
BuildRequires: c++_compiler
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@@ -62,9 +62,10 @@ Contains HTML documentation and examples for python-rtmidi.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n python-rtmidi-%{version}
|
%setup -q -n python-rtmidi-%{version}
|
||||||
sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py
|
sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py
|
||||||
|
rm src/_rtmidi.cpp
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
# docs
|
# docs
|
||||||
rm docs/rtmidi.rst
|
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
|
rm docs/_build/html/.buildinfo docs/_build/html/objects.inv
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
# not running tests since they require working JACK/ALSA,
|
# not running tests since they require working JACK/ALSA,
|
||||||
|
Reference in New Issue
Block a user