135378
%global pypi_name python-rtmidi
135378
%global srcname rtmidi
135378
135378
Name:           python-%{srcname}
135378
Version:        1.3.1
1432cf
Release:        4%{?dist}
135378
Summary:        Python binding for the RtMidi C++ library
135378
135378
License:        MIT
135378
URL:            https://chrisarndt.de/projects/python-rtmidi/
135378
Source0:        %{pypi_source %{pypi_name}}
135378
135378
BuildRequires:  gcc-c++
135378
BuildRequires:  alsa-lib-devel
135378
BuildRequires:  jack-audio-connection-kit-devel
135378
135378
%description
135378
python-rtmidi is a Python binding for RtMidi implemented using Cython and
135378
provides a thin wrapper around the RtMidi C++ interface. The API is basically
135378
the same as the C++ one but with the naming scheme of classes, methods and
135378
parameters adapted to the Python PEP-8 conventions and requirements of the
135378
Python package naming structure.
135378
135378
%package -n     python3-%{srcname}
135378
Summary:        %{summary}
135378
135378
BuildRequires:  python3-devel
135378
BuildRequires:  python3-setuptools
135378
BuildRequires:  python3-Cython
135378
#BuildRequires:  python3-tox
135378
%{?python_provide:%python_provide python3-%{srcname}}
135378
135378
%description -n python3-%{srcname}
135378
python-rtmidi is a Python binding for RtMidi implemented using Cython and
135378
provides a thin wrapper around the RtMidi C++ interface. The API is basically
135378
the same as the C++ one but with the naming scheme of classes, methods and
135378
parameters adapted to the Python PEP-8 conventions and requirements of the
135378
Python package naming structure.
135378
135378
%package -n python-%{srcname}-doc
135378
Summary:        %{srcname} documentation
135378
135378
BuildRequires:  python3-sphinx
135378
BuildRequires:  python3-sphinx_rtd_theme
135378
BuildRequires:  python3-sphinxcontrib-websupport
135378
135378
%description -n python-%{srcname}-doc
135378
Documentation for %{name}.
135378
135378
%prep
135378
%autosetup -n %{pypi_name}-%{version}
135378
rm -rf %{pypi_name}.egg-info
135378
135378
%build
135378
%py3_build
135378
PYTHONPATH={PWD} sphinx-build-3 docs html
135378
rm -rf html/.{doctrees,buildinfo}
135378
135378
%install
135378
%py3_install
135378
135378
# The tox tests are excessive (Py2), pyteet is not working out of-the-box
135378
# and they requires a running JACK server
135378
#%check
135378
#%{__python3} setup.py test
135378
135378
%files -n python3-%{srcname}
135378
%license LICENSE.txt docs/license.rst
135378
%doc README.rst
135378
%{python3_sitearch}/rtmidi/
135378
%{python3_sitearch}/python_rtmidi-%{version}-py*.egg-info
135378
135378
%files -n python-%{srcname}-doc
135378
%doc html
135378
%license LICENSE.txt docs/license.rst
135378
135378
%changelog
1432cf
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
1432cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1432cf
55df3a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-3
55df3a
- Rebuilt for Python 3.9
55df3a
c2e119
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
c2e119
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c2e119
135378
* Wed Jan 08 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-1
135378
- Initial package