7811aaf
%global pypi_name mystrom
7811aaf
7811aaf
Name:           python-%{pypi_name}
a9ad5e6
Version:        2.0.0
28569b9
Release:        5%{?dist}
a9ad5e6
Summary:        Python API client for interacting with myStrom devices
7811aaf
7811aaf
License:        MIT
a9ad5e6
URL:            https://github.com/home-assistant-ecosystem/python-mystrom
7722f1e
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
7811aaf
BuildArch:      noarch
7811aaf
7811aaf
%description
7811aaf
Asynchronous Python API client for interacting with myStrom devices like bulbs
7811aaf
and plugs. The buttons can be programmed easily with the command-line tool.
7811aaf
7811aaf
%package -n python3-%{pypi_name}
7811aaf
Summary:        %{summary}
7811aaf
7811aaf
BuildRequires:  python3-devel
62623fb
BuildRequires:  python3-setuptools
7811aaf
%{?python_provide:%python_provide python3-%{pypi_name}}
7811aaf
7811aaf
%description -n python3-%{pypi_name}
7811aaf
Asynchronous Python API client for interacting with myStrom devices like bulbs
7811aaf
and plugs. The buttons can be programmed easily with the command-line tool.
7811aaf
7811aaf
%package -n %{pypi_name}
7811aaf
Summary:        CLI tool to interact with myStrom devices
7811aaf
7811aaf
Requires:       python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
7811aaf
%{?python_provide:%python_provide python3-%{pypi_name}}
7811aaf
7811aaf
%description -n %{pypi_name}
7811aaf
CLI tool to interact with myStrom devices (bulbs, buttons and plugs).
7811aaf
7811aaf
%prep
7811aaf
%autosetup -n %{name}-%{version}
7811aaf
7811aaf
%build
7811aaf
%py3_build
7811aaf
7811aaf
%install
7811aaf
%py3_install
7811aaf
7811aaf
%files -n python3-%{pypi_name}
7811aaf
%doc README.rst
7811aaf
%license LICENSE
7811aaf
%{python3_sitelib}/py%{pypi_name}/
7811aaf
%{python3_sitelib}/python_mystrom*.egg-info
7811aaf
7811aaf
%files -n %{pypi_name}
7811aaf
%{_bindir}/%{pypi_name}
7811aaf
7811aaf
%changelog
28569b9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
28569b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
28569b9
eeeda5d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
eeeda5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
eeeda5d
0a26a98
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.0-3
0a26a98
- Rebuilt for Python 3.10
0a26a98
b339531
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
b339531
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b339531
a9ad5e6
* Fri Nov 13 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-1
a9ad5e6
- Update to latest upstream release 2.0.0
a9ad5e6
9b6218b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
9b6218b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9b6218b
62623fb
* Fri Jun 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.3-2
62623fb
- Add python3-setuptools as BR
62623fb
5daa10b
* Mon Jun 08 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.3-1
5daa10b
- Update to latest upstream release 1.1.3
5daa10b
446c527
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.1.2-2
446c527
- Rebuilt for Python 3.9
446c527
7722f1e
* Tue Apr 28 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.2-1
7722f1e
- Update to latest upstream release 1.1.2
7722f1e
49fce7e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
49fce7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
49fce7e
7811aaf
* Wed Jan 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.0-1
7811aaf
- Initial package for Fedora