diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8030f0f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/py-smart-gardena-0.7.10.tar.gz diff --git a/python-smart-gardena.spec b/python-smart-gardena.spec new file mode 100644 index 0000000..d8ceb3f --- /dev/null +++ b/python-smart-gardena.spec @@ -0,0 +1,65 @@ +%global pypi_name py-smart-gardena +%global pkg_name smart-gardena + +Name: python-%{pkg_name} +Version: 0.7.10 +Release: 1%{?dist} +Summary: Python client to communicate with Gardena systems + +License: MIT +URL: https://github.com/py-smart-gardena/py-smart-gardena +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +The py-smart-gardena library aims to provide python way to communicate +with Gardena smart systems and all Gardena smart equipment. + +%package -n python3-%{pkg_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(coverage) +BuildRequires: python3dist(oauthlib) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) +BuildRequires: python3dist(pytest-runner) +BuildRequires: python3dist(requests) +BuildRequires: python3dist(requests-mock) +BuildRequires: python3dist(requests-oauthlib) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(websocket-client) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pkg_name} +The py-smart-gardena library aims to provide python way to communicate +with Gardena smart systems and all Gardena smart equipment. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +# Superfluous file +rm -rf src/__init__.py + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests + +%files -n python3-%{pkg_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/gardena/ +%{python3_sitelib}/py_smart_gardena-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Sat Sep 26 2020 Fabian Affolter - 0.7.10-1 +- Shebang issue was fixed upstream +- Update to latest upstream release 0.7.10 + +* Fri Sep 18 2020 Fabian Affolter - 0.7.9-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..1bdc91f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (py-smart-gardena-0.7.10.tar.gz) = 0d736230c9081ee9dfb19dddf5dd32fa4eadf7cab15162b8d5bd5389551c3940837bbc28c4da54426eb556c7c28b329adcd1eda7abfad22435fa84b433b83142