f4c7334
%global pypi_name hatasmota
f4c7334
f4c7334
Name:           python-%{pypi_name}
c316140
Version:        0.7.3
3b808bd
Release:        %autorelease
f4c7334
Summary:        Python module to help parse and construct Tasmota MQTT messages
f4c7334
f4c7334
License:        MIT
f4c7334
URL:            https://github.com/emontnemery/hatasmota
f4c7334
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
f4c7334
BuildArch:      noarch
f4c7334
f4c7334
%description
f4c7334
Python module to help parse and construct Tasmota MQTT messages.
f4c7334
f4c7334
%package -n     python3-%{pypi_name}
f4c7334
Summary:        %{summary}
f4c7334
f4c7334
BuildRequires:  python3-devel
f4c7334
BuildRequires:  python3dist(setuptools)
f4c7334
%{?python_provide:%python_provide python3-%{pypi_name}}
f4c7334
f4c7334
%description -n python3-%{pypi_name}
f4c7334
Python module to help parse and construct Tasmota MQTT messages.
f4c7334
f4c7334
%prep
f4c7334
%autosetup -n %{pypi_name}-%{version}
f4c7334
rm -rf %{pypi_name}.egg-info
f4c7334
f4c7334
%build
f4c7334
%py3_build
f4c7334
f4c7334
%install
f4c7334
%py3_install
f4c7334
f4c7334
%files -n python3-%{pypi_name}
f4c7334
%license LICENSE
f4c7334
%doc README.md
f4c7334
%{python3_sitelib}/%{pypi_name}/
f4c7334
%{python3_sitelib}/HATasmota-%{version}-py%{python3_version}.egg-info/
f4c7334
f4c7334
%changelog
3b808bd
%autochangelog