8aa2adc
%global pypi_name aioiotprov
8aa2adc
8aa2adc
Name:           python-%{pypi_name}
8aa2adc
Version:        0.0.7
8aa2adc
Release:        1%{?dist}
8aa2adc
Summary:        Library/utility to help provision various IoT devices
8aa2adc
8aa2adc
License:        MIT
8aa2adc
URL:            http://github.com/frawau/aioiotprov
8aa2adc
Source0:        %{pypi_source}
8aa2adc
BuildArch:      noarch
8aa2adc
8aa2adc
%description
8aa2adc
A library/utility to provision IoT devices. It can provision TP-Link
8aa2adc
smartplugs, Broadlink IR blasters, Sonoff switches running the Tasmota
8aa2adc
firmware, Shelly devices and E-Trix power monitors.
8aa2adc
8aa2adc
%package -n     python3-%{pypi_name}
8aa2adc
Summary:        %{summary}
8aa2adc
8aa2adc
BuildRequires:  python3-devel
8aa2adc
BuildRequires:  python3dist(setuptools)
8aa2adc
%{?python_provide:%python_provide python3-%{pypi_name}}
8aa2adc
8aa2adc
%description -n python3-%{pypi_name}
8aa2adc
A library/utility to provision IoT devices. It can provision TP-Link
8aa2adc
smartplugs, Broadlink IR blasters, Sonoff switches running the Tasmota
8aa2adc
firmware, Shelly devices and E-Trix power monitors.
8aa2adc
8aa2adc
%prep
8aa2adc
%autosetup -n %{pypi_name}-%{version}
8aa2adc
rm -rf %{pypi_name}.egg-info
8aa2adc
sed -i -e '/^#!\//, 1d' {aioiotprov/plugins/*.py,aioiotprov/*.py}
8aa2adc
8aa2adc
%build
8aa2adc
%py3_build
8aa2adc
8aa2adc
%install
8aa2adc
%py3_install
8aa2adc
8aa2adc
%files -n python3-%{pypi_name}
8aa2adc
%doc README.md
8aa2adc
%{_bindir}/aioiotprov
8aa2adc
%{python3_sitelib}/%{pypi_name}/
8aa2adc
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
8aa2adc
8aa2adc
%changelog
8aa2adc
* Tue Sep 08 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.7-1
8aa2adc
- Initial package for Fedora