From 0eae32361dc644ee206873336995c403b1500c2ba0c439d2d1c7da5fad7140e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 May 2020 07:32:20 +0000 Subject: [PATCH] Accepting request 808858 from system:homeautomation:home-assistant openwrt interface api OBS-URL: https://build.opensuse.org/request/show/808858 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openwrt-luci-rpc?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + openwrt-luci-rpc-1.1.3.tar.gz | 3 ++ python-openwrt-luci-rpc.changes | 4 ++ python-openwrt-luci-rpc.spec | 69 +++++++++++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 openwrt-luci-rpc-1.1.3.tar.gz create mode 100644 python-openwrt-luci-rpc.changes create mode 100644 python-openwrt-luci-rpc.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/openwrt-luci-rpc-1.1.3.tar.gz b/openwrt-luci-rpc-1.1.3.tar.gz new file mode 100644 index 0000000..dff702f --- /dev/null +++ b/openwrt-luci-rpc-1.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8c27c98c0a1deac2d32d417c4ca536b08be2655a9a6de8a7897e8bc6431858c +size 13984 diff --git a/python-openwrt-luci-rpc.changes b/python-openwrt-luci-rpc.changes new file mode 100644 index 0000000..745e92d --- /dev/null +++ b/python-openwrt-luci-rpc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon May 25 09:09:53 UTC 2020 - Adrian Schröter + +- initial package version 1.1.3 diff --git a/python-openwrt-luci-rpc.spec b/python-openwrt-luci-rpc.spec new file mode 100644 index 0000000..15065f0 --- /dev/null +++ b/python-openwrt-luci-rpc.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-psutil +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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-%{**}} + +Name: python-openwrt-luci-rpc +Version: 1.1.3 +Release: 0 +Summary: Module for interacting with OpenWrt Luci RPC interface +License: Apache-2.0 +URL: https://github.com/fbradyirl/openwrt-luci-rpc +Source: https://files.pythonhosted.org/packages/source/o/openwrt-luci-rpc/openwrt-luci-rpc-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires: python-Click >= 6.0 +Requires: python-requests +%python_subpackages + +%description +Module for interacting with OpenWrt Luci RPC interface. You need to have 'luci-mod-rpc' +installed on your openwrt based router. + +- Allows you to use the Luci RPC interface to fetch connected devices + on your OpenWrt based router. +- Supports 15.X & 17.X & 18.X or newer releases of OpenWrt. + +https://openwrt-luci-rpc.readthedocs.io + + + + +%prep +%setup -q -n openwrt-luci-rpc-%{version} + +%build +%python_build + +%install +%python_install + +%fdupes %{buildroot}%{$python_sitearch} + +%check +export LANG=en_US.UTF-8 + +%files %{python_files} +%license LICENSE +%doc AUTHORS.rst CONTRIBUTING.rst HISTORY.rst README.rst +%{python_sitelib}/openwrt_luci_rpc* + +%changelog