commit df9b8eb013a00ae2ff1983eda285c00dee46a588a6f212175599062f9b27cf2d Author: Tomáš Chvátal Date: Tue Jun 23 08:39:14 2020 +0000 Accepting request 816456 from home:mia This provides a Python binding for RtMidi. OBS-URL: https://build.opensuse.org/request/show/816456 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rtmidi?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-python-rtmidi.changes b/python-python-rtmidi.changes new file mode 100644 index 0000000..ca52115 --- /dev/null +++ b/python-python-rtmidi.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jun 22 19:29:15 UTC 2020 - Mia Herkt + +- init, 1.4.1 diff --git a/python-python-rtmidi.spec b/python-python-rtmidi.spec new file mode 100644 index 0000000..6683cb3 --- /dev/null +++ b/python-python-rtmidi.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-python-rtmidi +# +# Copyright (c) 2020 SUSE LLC +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-python-rtmidi +Version: 1.4.1 +Release: 0 +Summary: Python binding for the RtMidi C++ library +License: MIT +Group: Development/Languages/Python +URL: https://chrisarndt.de/projects/python-rtmidi/ +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 setuptools} +BuildRequires: c++_compiler +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(jack) +%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. + +%package doc +Summary: HTML documentation and examples for python-rtmidi +Group: Documentation/Other +BuildArch: noarch + +%description doc +Contains HTML documentation and examples for python-rtmidi. + +%prep +%setup -q -n python-rtmidi-%{version} + +%build +%python_build + +# docs +rm docs/rtmidi.rst +rm docs/modules.rst +%{python_for_executables} ./setup.py build_ext --inplace +sphinx-apidoc -o docs/ rtmidi rtmidi/release.py +cat docs/api.rst.inc >> docs/rtmidi.rst +%make_build -C docs html + +%install +%python_install +%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} +%license LICENSE.txt +%doc AUTHORS.rst CHANGELOG.rst README.rst +%{python_sitearch}/* + +%files doc +%doc docs/_build/html examples + +%changelog diff --git a/python-rtmidi-1.4.1.tar.gz b/python-rtmidi-1.4.1.tar.gz new file mode 100644 index 0000000..871c57a --- /dev/null +++ b/python-rtmidi-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07bfecdbd6f1abe11f57f4448cf1da29dc199daee16ee7e5a8db092a2d1c1e2c +size 246566