diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78a3985 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/aioflo-0.4.1.tar.gz diff --git a/python-aioflo.spec b/python-aioflo.spec new file mode 100644 index 0000000..9552067 --- /dev/null +++ b/python-aioflo.spec @@ -0,0 +1,58 @@ +%global pypi_name aioflo + +Name: python-%{pypi_name} +Version: 0.4.1 +Release: 2%{?dist} +Summary: Python library for Flo by Moen Smart Water Detectors + +License: MIT +URL: https://github.com/bachya/aioflo +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +An asyncio-friendly Python library for Flo Smart Water Detectors. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(aiohttp) +BuildRequires: python3dist(aresponses) +BuildRequires: python3dist(pytest-aiohttp) +BuildRequires: python3dist(pytest-cov) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +An asyncio-friendly Python library for Flo Smart Water Detectors. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%check +%pytest -v tests + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE +%doc AUTHORS.md README.md + +%changelog +* Tue Sep 15 2020 Fabian Affolter - 0.4.1-2 +- Switch to GitHub as source +- Switch to pyproject-rpm-macros +- Enable tests (rhbz#1875868) + +* Fri Sep 04 2020 Fabian Affolter - 0.4.1-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..80ad237 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (aioflo-0.4.1.tar.gz) = 6fbbe21b1f197c2a3108d2eb2713eb692096f46ccf2d8a42dc30e10298042f271cf805bbd0b38e552a48982c14837e7c7cb2b6178a2cf3ba5ca37f20cd91a85b