1
0
Files
python-fritzconnection/python-fritzconnection.spec
Dirk Mueller 0ef084a748 - update to 1.13.2:
* bugfix: fix a crash in the cache-verification in case the cache
    is activated in combination with the Fritz!Box default-ip and
    multiple AVM-devices are connected in the local network, so an
    arbitrary device may respond (which would also be a bug in
    applications using fritzconnection anyway) (introduced in
    version 1.10.0).
  * bugfix: fix broken reconnection of fritzmonitor in case of
    socket loss. (#196)
  * cleaner type-hints for public api.
  * documentation: Style change to “Furo” and minor content improvements.
  * bugfix: added a missing import to the /docs/requirements.in
    file to generate the API-documentation on readthedocs.org
  * support added for Python 3.12
  * support removed for Python 3.6
  * type-hints added for the public API.
  * command-line interface: the check for a given password has been
    removed
  * bugfix: unneeded required password removed from the fritzstatus
    command-line interface. (#192)
  * bugfix: make fritzwlan.get_beacon_security() work with older
    router models not supporting the
    NewX_AVM-DE_PossibleBeaconTypes argument. (#191)
  * bugfix in ‘setup.py`: add
    long_description_content_type=”text/markdown”, because it is
    not used as default.
  * New method hangup(). (#184)
  * bugfix: removed issues preventing the method
    get_hosts_attributes() to return a list of dictionaries
    representing the host-attributes. (#190)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=16
2024-01-14 17:41:29 +00:00

81 lines
2.5 KiB
RPMSpec

#
# spec file for package python-fritzconnection
#
# Copyright (c) 2024 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/
#
%global pythons python3
Name: python-fritzconnection
Version: 1.13.2
Release: 0
Summary: A Python module to talk to a AVM fritzbox
License: MIT
Group: Development/Languages/Python
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 pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires: python-requests
Requires: python-setuptools
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
%python_build
%install
export LC_ALL=C.utf-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# 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
%doc README.md
%{_bindir}/fritzcall
%{_bindir}/fritzconnection
%{_bindir}/fritzhomeauto
%{_bindir}/fritzhosts
%{_bindir}/fritzmonitor
%{_bindir}/fritzphonebook
%{_bindir}/fritzstatus
%{_bindir}/fritzwlan
%{python_sitelib}/*
%changelog