File python-openwrt-luci-rpc.spec of Package python-openwrt-luci-rpc

#
# 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.16
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.xz
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
openSUSE Build Service is sponsored by