b1d735a
%global pypi_name pymochad
b1d735a
b1d735a
Name:           python-%{pypi_name}
b1d735a
Version:        0.2.0
1f07938
Release:        12%{?dist}
b1d735a
Summary:        Python library for interacting with moch
b1d735a
b1d735a
License:        GPLv3+
b1d735a
URL:            https://github.com/mtreinish/pymochad
b1d735a
Source0:        %{pypi_source}
b1d735a
BuildArch:      noarch
b1d735a
b1d735a
%description
b1d735a
A Python library for sending commands to the mochad TCP gateway daemon
b1d735a
for the X10 CMA15A controller.
b1d735a
b1d735a
%package -n     python3-%{pypi_name}
b1d735a
Summary:        %{summary}
b1d735a
b1d735a
BuildRequires:  python3-devel
b1d735a
BuildRequires:  python3dist(pytest)
b1d735a
BuildRequires:  python3dist(hacking)
b1d735a
BuildRequires:  python3dist(mock)
b1d735a
BuildRequires:  python3dist(pbr)
b1d735a
BuildRequires:  python3dist(pbr)
b1d735a
BuildRequires:  python3dist(setuptools)
b1d735a
BuildRequires:  python3dist(six)
b1d735a
BuildRequires:  python3dist(stestr)
b1d735a
%{?python_provide:%python_provide python3-%{pypi_name}}
b1d735a
b1d735a
%description -n python3-%{pypi_name}
b1d735a
A Python library for sending commands to the mochad TCP gateway daemon
b1d735a
for the X10 CMA15A controller.
b1d735a
b1d735a
%package -n python-%{pypi_name}-doc
b1d735a
Summary:        pymochad documentation
b1d735a
b1d735a
BuildRequires:  python3dist(sphinx)
b1d735a
%description -n python-%{pypi_name}-doc
b1d735a
Documentation for pymochad.
b1d735a
b1d735a
%prep
b1d735a
%autosetup -n %{pypi_name}-%{version}
b1d735a
rm -rf %{pypi_name}.egg-info
b1d735a
b1d735a
%build
b1d735a
%py3_build
b1d735a
PYTHONPATH=${PWD} sphinx-build-3 doc/source html
b1d735a
rm -rf html/.{doctrees,buildinfo}
b1d735a
b1d735a
%install
b1d735a
%py3_install
b1d735a
b1d735a
%check
b1d735a
%pytest -v pymochad/tests
b1d735a
b1d735a
%files -n python3-%{pypi_name}
b1d735a
%license LICENSE
b1d735a
%doc README.rst
b1d735a
%{python3_sitelib}/%{pypi_name}/
b1d735a
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
b1d735a
b1d735a
%files -n python-%{pypi_name}-doc
b1d735a
%doc html
b1d735a
%license LICENSE
b1d735a
b1d735a
%changelog
1f07938
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-12
1f07938
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
1f07938
619b2ed
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-11
619b2ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
619b2ed
a3ff908
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-10
a3ff908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a3ff908
75be68e
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 0.2.0-9
75be68e
- Rebuilt for Python 3.12
75be68e
f568287
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-8
f568287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
f568287
7cfa1a6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-7
7cfa1a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7cfa1a6
f5f030e
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 0.2.0-6
f5f030e
- Rebuilt for Python 3.11
f5f030e
9f6fd92
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-5
9f6fd92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9f6fd92
28329b2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
28329b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
28329b2
38bc409
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.0-3
38bc409
- Rebuilt for Python 3.10
38bc409
213a0ff
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
213a0ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
213a0ff
b1d735a
* Thu Sep 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.0-1
b1d735a
- Initial package for Fedora