84a5555
%global pypi_name pyemby
84a5555
%global upstream_name pyEmby
84a5555
84a5555
Name:           python-%{pypi_name}
84a5555
Version:        1.6
84a5555
Release:        1%{?dist}
84a5555
Summary:        Python module to interact with a Emby media server
84a5555
84a5555
License:        MIT
84a5555
URL:            https://github.com/mezz64/pyemby
84a5555
Source0:        %{pypi_source %{upstream_name}}
84a5555
BuildArch:      noarch
84a5555
84a5555
%description
84a5555
This is a Python module aiming to interact with the Emby Media
84a5555
Server API.
84a5555
84a5555
%package -n     python3-%{pypi_name}
84a5555
Summary:        %{summary}
84a5555
84a5555
BuildRequires:  python3-devel
84a5555
BuildRequires:  python3dist(setuptools)
84a5555
%{?python_provide:%python_provide python3-%{pypi_name}}
84a5555
84a5555
%description -n python3-%{pypi_name}
84a5555
This is a Python module aiming to interact with the Emby Media
84a5555
Server API.
84a5555
84a5555
%prep
84a5555
%autosetup -n %{upstream_name}-%{version}
84a5555
84a5555
%build
84a5555
%py3_build
84a5555
84a5555
%install
84a5555
%py3_install
84a5555
84a5555
%files -n python3-%{pypi_name}
84a5555
%license LICENSE.txt
84a5555
%doc README.md
84a5555
%{python3_sitelib}/%{pypi_name}/
84a5555
%{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info
84a5555
84a5555
%changelog
84a5555
* Thu Sep 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.6-1
84a5555
- Initial package for Fedora