6c4e984
Name:           python-mpd2
bc629bb
Version:        3.0.5
e6a0643
Release:        %autorelease
61f8719
Summary:        Python library providing a client interface for MPD
61f8719
61f8719
License:        LGPLv3+
61f8719
URL:            https://github.com/Mic92/python-mpd2
6c4e984
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
61f8719
61f8719
BuildArch:      noarch
748d5eb
BuildRequires:  %{_bindir}/tox
61f8719
61f8719
%description
61f8719
Python library providing a client interface for MPD.
61f8719
6c4e984
%package -n python3-mpd2
61f8719
BuildRequires:  python3-devel
61f8719
BuildRequires:  python3-setuptools
6c4e984
61f8719
Summary:        Python 3 mpd2 module
61f8719
6c4e984
%description -n python3-mpd2
61f8719
Python3 library providing a client interface for MPD.
61f8719
61f8719
61f8719
%package doc
6c4e984
Summary:    Examples for %{name}
61f8719
61f8719
%description doc
6c4e984
This package contains examples for %{name}.
61f8719
61f8719
%prep
61f8719
%autosetup -n %{name}-%{version}
f695a91
echo "whitelist_externals = coverage" >> tox.ini
e61c1f0
bc629bb
# Remove unecessary shebang
bc629bb
sed -i '/^#!\/usr\/bin\/env.*python$/ d' mpd/tests.py
bc629bb
6c4e984
%generate_buildrequires
6c4e984
%pyproject_buildrequires -t
6b13f8f
6c4e984
%build
6c4e984
%pyproject_wheel
61f8719
61f8719
%install
6c4e984
%pyproject_install
6c4e984
%pyproject_save_files mpd
61f8719
61f8719
%check
6c4e984
%{tox}
61f8719
6c4e984
%files -n python3-mpd2 -f %{pyproject_files}
61f8719
%doc README.rst
61f8719
61f8719
%files doc
6c4e984
%license LICENSE.txt
6c4e984
%doc examples
61f8719
61f8719
61f8719
%changelog
e6a0643
%autochangelog