fb359dc
%global pypi_name pycomfoair
fb359dc
fb359dc
Name:           python-%{pypi_name}
fb359dc
Version:        0.0.4
a798147
Release:        8%{?dist}
fb359dc
Summary:        Interface for Zehnder ComfoAir 350 ventilation units
fb359dc
fb359dc
License:        MIT
fb359dc
URL:            https://github.com/mtdcr/pycomfoair
fb359dc
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
fb359dc
BuildArch:      noarch
fb359dc
fb359dc
%description
fb359dc
pycomfoair Python library to monitor and control Zehnder
fb359dc
ComfoAir 350 units.
fb359dc
fb359dc
%package -n     python3-%{pypi_name}
fb359dc
Summary:        %{summary}
fb359dc
fb359dc
BuildRequires:  python3-devel
fb359dc
BuildRequires:  python3dist(async-timeout)
fb359dc
BuildRequires:  python3dist(bitstring)
fb359dc
BuildRequires:  python3dist(pytest)
fb359dc
BuildRequires:  python3dist(pyserial-asyncio)
fb359dc
BuildRequires:  python3dist(setuptools)
fb359dc
%{?python_provide:%python_provide python3-%{pypi_name}}
fb359dc
fb359dc
%description -n python3-%{pypi_name}
fb359dc
pycomfoair Python library to monitor and control Zehnder
fb359dc
ComfoAir 350 units.
fb359dc
fb359dc
%prep
fb359dc
%autosetup -n %{pypi_name}-%{version}
fb359dc
rm -rf %{pypi_name}.egg-info
fb359dc
fb359dc
%build
fb359dc
%py3_build
fb359dc
fb359dc
%install
fb359dc
%py3_install
fb359dc
fb359dc
# https://github.com/mtdcr/pycomfoair/issues/2
fb359dc
%check
fb359dc
%pytest -v test -k "not test_create_parse and not test_create_parse_hex and not test_bytes"
fb359dc
fb359dc
%files -n python3-%{pypi_name}
fb359dc
%doc README.md
fb359dc
%license LICENSE
fb359dc
%{python3_sitelib}/comfoair/
fb359dc
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
fb359dc
fb359dc
%changelog
a798147
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-8
a798147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a798147
6dbe9f1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-7
6dbe9f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6dbe9f1
19dc1bb
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.4-6
19dc1bb
- Rebuilt for Python 3.11
19dc1bb
98e330e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-5
98e330e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
98e330e
4e7d4a7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-4
4e7d4a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4e7d4a7
59b73f1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.4-3
59b73f1
- Rebuilt for Python 3.10
59b73f1
d8ea5ec
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-2
d8ea5ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d8ea5ec
fb359dc
* Fri Sep 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.0.4-1
fb359dc
- Initial package for Fedora