From 9ded541a8fe94d60f18302dbcd2bb881479e5039139881a4b4ad3645940fae13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 15 Mar 2020 09:11:43 +0000 Subject: [PATCH] Accepting request 785233 from home:mnhauke:monitoring Initial package for python-fritzconnection OBS-URL: https://build.opensuse.org/request/show/785233 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fritzconnection?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + fritzconnection-1.2.0.tar.gz | 3 ++ python-fritzconnection.changes | 27 +++++++++++ python-fritzconnection.spec | 85 ++++++++++++++++++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fritzconnection-1.2.0.tar.gz create mode 100644 python-fritzconnection.changes create mode 100644 python-fritzconnection.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fritzconnection-1.2.0.tar.gz b/fritzconnection-1.2.0.tar.gz new file mode 100644 index 0000000..efe2c8d --- /dev/null +++ b/fritzconnection-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f244bfa310801319865b34e72d00dd4be657baa0df88dfab63f61be00d5390a3 +size 57795 diff --git a/python-fritzconnection.changes b/python-fritzconnection.changes new file mode 100644 index 0000000..956a431 --- /dev/null +++ b/python-fritzconnection.changes @@ -0,0 +1,27 @@ +------------------------------------------------------------------- +Sat Mar 14 20:39:40 UTC 2020 - Martin Hauke + +- Update to version 1.2.1 +- Fill description +- Package README and license file +- Run testsuite + +------------------------------------------------------------------- +Thu Feb 27 02:08:26 CET 2020 - ro@suse.de + +- update to 1.2.0 + +------------------------------------------------------------------- +Fri Jan 24 01:50:42 CET 2020 - ro@suse.de + +- update to 0.8.4, use git url and add service file + +------------------------------------------------------------------- +Mon Jul 8 00:20:33 CEST 2019 - ro@suse.de + +- update to 0.6.5 + +------------------------------------------------------------------- +Sun Jul 7 22:12:20 UTC 2019 - Ruediger Oertel + +- initial version 0.4.5 diff --git a/python-fritzconnection.spec b/python-fritzconnection.spec new file mode 100644 index 0000000..dcca0bf --- /dev/null +++ b/python-fritzconnection.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-fritzconnection +# +# Copyright (c) 2020 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-fritzconnection +Version: 1.2.0 +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 +%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} +for i in fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan ; do + %python_clone -a %{buildroot}%{_bindir}/${i} +done + +%post +%{python_install_alternative fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan} + +%preun +%{python_uninstall_alternative fritzcall fritzconnection fritzhomeauto fritzhosts fritzphonebook fritzstatus fritzwlan} + +%check +# Don't run functional tests that require connections to a physical fritzbox router +rm fritzconnection/tests/test_functional.py +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%python_alternative %{_bindir}/fritzcall +%python_alternative %{_bindir}/fritzconnection +%python_alternative %{_bindir}/fritzhomeauto +%python_alternative %{_bindir}/fritzhosts +%python_alternative %{_bindir}/fritzphonebook +%python_alternative %{_bindir}/fritzstatus +%python_alternative %{_bindir}/fritzwlan +%{python_sitelib}/* + +%changelog