2020-06-23 08:39:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-python-rtmidi
|
|
|
|
#
|
2024-07-08 06:42:37 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-06-23 08:39:14 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2023-11-07 00:18:40 +00:00
|
|
|
|
2020-06-23 08:39:14 +00:00
|
|
|
Name: python-python-rtmidi
|
2023-12-11 13:57:40 +00:00
|
|
|
Version: 1.5.8
|
2020-06-23 08:39:14 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python binding for the RtMidi C++ library
|
|
|
|
License: MIT
|
2021-06-23 17:42:16 +00:00
|
|
|
URL: https://spotlightkid.github.io/python-rtmidi/
|
2023-11-07 00:18:40 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-rtmidi/python_rtmidi-%{version}.tar.gz
|
2024-07-08 06:42:37 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
2020-06-23 08:39:14 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
|
|
|
BuildRequires: %{python_module devel}
|
2023-11-07 00:18:40 +00:00
|
|
|
BuildRequires: %{python_module meson-python}
|
2023-06-30 20:58:44 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-11-07 00:18:40 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-06-23 08:39:14 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-11-07 00:18:40 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-06-23 08:39:14 +00:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(jack)
|
2023-11-07 00:18:40 +00:00
|
|
|
BuildRequires: python(abi) > 3.8
|
2020-06-23 08:39:14 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
RtMidi is a set of C++ classes which provides an API for realtime
|
|
|
|
MIDI I/O across Linux (ALSA & JACK), macOS (CoreMIDI & JACK),
|
|
|
|
and Windows (MultiMedia System) operating systems.
|
|
|
|
|
|
|
|
python-rtmidi is a Python binding for RtMidi implemented using
|
|
|
|
Cython and provides a thin wrapper around the RtMidi C++ interface.
|
|
|
|
The API is basically the same as the C++ one but with the naming
|
|
|
|
scheme of classes, methods and parameters adapted to the Python
|
|
|
|
PEP-8 conventions and requirements of the Python package naming
|
|
|
|
structure.
|
|
|
|
|
|
|
|
%prep
|
2023-11-07 00:18:40 +00:00
|
|
|
%setup -q -n python_rtmidi-%{version}
|
2020-10-15 22:25:56 +00:00
|
|
|
sed -i 's,/usr/bin/env python,%{_bindir}/%{python_for_executables},' examples/*.py examples/*/*.py
|
2023-06-30 20:58:44 +00:00
|
|
|
rm src/_rtmidi.cpp
|
2020-06-23 08:39:14 +00:00
|
|
|
|
|
|
|
%build
|
2023-06-30 20:58:44 +00:00
|
|
|
%pyproject_wheel
|
2020-06-23 08:39:14 +00:00
|
|
|
|
|
|
|
%install
|
2023-06-30 20:58:44 +00:00
|
|
|
%pyproject_install
|
2020-06-23 08:39:14 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
# not running tests since they require working JACK/ALSA,
|
|
|
|
# which cannot be provided on OBS workers
|
|
|
|
|
|
|
|
%files %{python_files}
|
2023-11-07 00:18:40 +00:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc AUTHORS.md CHANGELOG.md README.md
|
|
|
|
%doc examples
|
2023-02-21 09:58:02 +00:00
|
|
|
%{python_sitearch}/rtmidi
|
2024-07-08 06:42:37 +00:00
|
|
|
%{python_sitearch}/python_rtmidi-%{version}.dist-info
|
2020-06-23 08:39:14 +00:00
|
|
|
|
|
|
|
%changelog
|