9e25c1c
%global pypi_name pycomm3
9e25c1c
# A physical device is needed to run the tests
9e25c1c
%bcond_with device
9e25c1c
9e25c1c
Name:           python-%{pypi_name}
9e25c1c
Version:        0.10.2
216e9a1
Release:        12%{?dist}
9e25c1c
Summary:        Python library for communicating with Allen-Bradley PLCs
9e25c1c
9e25c1c
License:        MIT
9e25c1c
URL:            https://github.com/ottowayi/pycomm3
9e25c1c
Source0:        %{pypi_source}
9e25c1c
BuildArch:      noarch
9e25c1c
9e25c1c
BuildRequires:  python3-devel
9e25c1c
BuildRequires:  python3dist(setuptools)
9e25c1c
9e25c1c
%description
9e25c1c
pycomm3 is a native Python library for communicating with PLCs
9e25c1c
from Allen-Bradley using Ethernet/IP.
9e25c1c
9e25c1c
%package -n     python3-%{pypi_name}
9e25c1c
Summary:        %{summary}
9e25c1c
9e25c1c
BuildRequires:  python3-devel
9e25c1c
BuildRequires:  python3dist(setuptools)
9e25c1c
%{?python_provide:%python_provide python3-%{pypi_name}}
9e25c1c
9e25c1c
%description -n python3-%{pypi_name}
9e25c1c
pycomm3 is a native Python library for communicating with PLCs
9e25c1c
from Allen-Bradley using Ethernet/IP.
9e25c1c
9e25c1c
%prep
9e25c1c
%autosetup -n %{pypi_name}-%{version}
9e25c1c
rm -rf %{pypi_name}.egg-info
9e25c1c
sed -i 's/\r$//' README.rst
9e25c1c
9e25c1c
%build
9e25c1c
%py3_build
9e25c1c
9e25c1c
%install
9e25c1c
%py3_install
9e25c1c
9e25c1c
%if %{with device}
9e25c1c
%check
9e25c1c
%pytest -v tests
9e25c1c
%endif
9e25c1c
9e25c1c
%files -n python3-%{pypi_name}
9e25c1c
%license LICENSE
9e25c1c
%doc README.rst
9e25c1c
%{python3_sitelib}/%{pypi_name}/
9e25c1c
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
9e25c1c
9e25c1c
%changelog
216e9a1
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-12
216e9a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
216e9a1
38ffa43
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-11
38ffa43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
38ffa43
ca7e8c1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-10
ca7e8c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
ca7e8c1
e1c5095
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.10.2-9
e1c5095
- Rebuilt for Python 3.12
e1c5095
e8e9e45
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-8
e8e9e45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e8e9e45
b9a2bbf
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-7
b9a2bbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b9a2bbf
df292fd
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.10.2-6
df292fd
- Rebuilt for Python 3.11
df292fd
f541135
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-5
f541135
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f541135
df1337a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
df1337a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
df1337a
ae739e4
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.10.2-3
ae739e4
- Rebuilt for Python 3.10
ae739e4
3d65a5c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
3d65a5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3d65a5c
9e25c1c
* Tue Oct 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.10.2-1
9e25c1c
- Initial package for Fedora