15
0
Files
python-fritzconnection/python-fritzconnection.spec

82 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-fritzconnection
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- update to 1.9.0: * New method `get_wifi_qr_code()` for QR-code creation for wifi-access * New method `channel_info * FritzHomeAutomation: New method `device_information * FritzConnection: new command line option `-R` to reboot the system * New method `get_generic_host_entries` returning a generator to iterate over all entries as reported by the method `get_generic_host_entry`. * The methods `get_active_hosts` and `get_hosts_info` provide additional host attributes * Refactoring of the logging module `fritzconnection.core.logger` (introduced in 1.7.0). Now emitting messages from INFO-level and up by default. * Connection errors with the router raised from the underlying `urllib3` library are caught and raised again as FritzConnectionException preserving the connection error information * bugfix: logger deactivated by default * Tests extended for Python 3.10 * `enable` and `disable` to enable and disable a wlan network. * `get_password` and `set_password` to get the current password or set a new one for a wlan network. * New FritzGuestWLAN library class. * New FritzConnection method `reboot`. * New logging module `fritzconnection.core.logger`. * New arguments for FritzConnection: `pool_connections` and `pool_maxsize` to adapt the default urllib3 settings (used by requests). (#114). * New properties `FritzStatus.device_uptime` and `FritzStatus.connection_uptime``; the latter a replacement for `FritzStatus.uptime` – still existing as an alias. * bugfix: html-escape arguments in case that special characters are allowed by the protocol. * bugfix: `FritzStatus.bytes_sent` will return the 32 bit value from older OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=7
2022-01-15 17:32:04 +00:00
%global pythons python3
Name: python-fritzconnection
Version: 1.15.0
Release: 0
Summary: A Python module to talk to a AVM fritzbox
License: MIT
URL: https://github.com/kbr/fritzconnection/
Source: https://github.com/kbr/fritzconnection/archive/%{version}.tar.gz#/fritzconnection-%{version}.tar.gz
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires: python-requests
BuildArch: noarch
Obsoletes: python310-fritzconnection < 1.9.0
Obsoletes: python39-fritzconnection < 1.9.0
%python_subpackages
%description
fritzconnection is a Python library to communicate with the AVM
Fritz!Box by the TR-064 protocol.
This allows to read status-informations from the box and to read
and change configuration settings and state.
%prep
%setup -q -n fritzconnection-%{version}
%build
export LC_ALL=C.utf-8
%pyproject_wheel
%install
export LC_ALL=C.utf-8
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
- update to 1.9.0: * New method `get_wifi_qr_code()` for QR-code creation for wifi-access * New method `channel_info * FritzHomeAutomation: New method `device_information * FritzConnection: new command line option `-R` to reboot the system * New method `get_generic_host_entries` returning a generator to iterate over all entries as reported by the method `get_generic_host_entry`. * The methods `get_active_hosts` and `get_hosts_info` provide additional host attributes * Refactoring of the logging module `fritzconnection.core.logger` (introduced in 1.7.0). Now emitting messages from INFO-level and up by default. * Connection errors with the router raised from the underlying `urllib3` library are caught and raised again as FritzConnectionException preserving the connection error information * bugfix: logger deactivated by default * Tests extended for Python 3.10 * `enable` and `disable` to enable and disable a wlan network. * `get_password` and `set_password` to get the current password or set a new one for a wlan network. * New FritzGuestWLAN library class. * New FritzConnection method `reboot`. * New logging module `fritzconnection.core.logger`. * New arguments for FritzConnection: `pool_connections` and `pool_maxsize` to adapt the default urllib3 settings (used by requests). (#114). * New properties `FritzStatus.device_uptime` and `FritzStatus.connection_uptime``; the latter a replacement for `FritzStatus.uptime` – still existing as an alias. * bugfix: html-escape arguments in case that special characters are allowed by the protocol. * bugfix: `FritzStatus.bytes_sent` will return the 32 bit value from older OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=7
2022-01-15 17:32:04 +00:00
# Don't run functional tests that require connections to a physical fritzbox router
rm fritzconnection/tests/test_functional.py
# https://github.com/kbr/fritzconnection/issues/154
%pytest -k 'not (test_terminate_thread_on_failed_reconnection or test_restart_failed_monitor)'
%files %{python_files}
%license LICENSE.txt
2024-01-14 17:41:29 +00:00
%doc README.md
- update to 1.9.0: * New method `get_wifi_qr_code()` for QR-code creation for wifi-access * New method `channel_info * FritzHomeAutomation: New method `device_information * FritzConnection: new command line option `-R` to reboot the system * New method `get_generic_host_entries` returning a generator to iterate over all entries as reported by the method `get_generic_host_entry`. * The methods `get_active_hosts` and `get_hosts_info` provide additional host attributes * Refactoring of the logging module `fritzconnection.core.logger` (introduced in 1.7.0). Now emitting messages from INFO-level and up by default. * Connection errors with the router raised from the underlying `urllib3` library are caught and raised again as FritzConnectionException preserving the connection error information * bugfix: logger deactivated by default * Tests extended for Python 3.10 * `enable` and `disable` to enable and disable a wlan network. * `get_password` and `set_password` to get the current password or set a new one for a wlan network. * New FritzGuestWLAN library class. * New FritzConnection method `reboot`. * New logging module `fritzconnection.core.logger`. * New arguments for FritzConnection: `pool_connections` and `pool_maxsize` to adapt the default urllib3 settings (used by requests). (#114). * New properties `FritzStatus.device_uptime` and `FritzStatus.connection_uptime``; the latter a replacement for `FritzStatus.uptime` – still existing as an alias. * bugfix: html-escape arguments in case that special characters are allowed by the protocol. * bugfix: `FritzStatus.bytes_sent` will return the 32 bit value from older OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=7
2022-01-15 17:32:04 +00:00
%{_bindir}/fritzcall
%{_bindir}/fritzconnection
%{_bindir}/fritzhomeauto
%{_bindir}/fritzhosts
%{_bindir}/fritzmonitor
%{_bindir}/fritzphonebook
%{_bindir}/fritzstatus
%{_bindir}/fritzwlan
%{python_sitelib}/fritzconnection
%{python_sitelib}/fritzconnection-%{version}.dist-info
%changelog