15
0

- Format with spec-cleaner

- Fix tests
- Fix dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openwrt-luci-rpc?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2020-05-26 07:39:28 +00:00
committed by Git OBS Bridge
parent 0eae32361d
commit 2c1b8dca7e
2 changed files with 20 additions and 13 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 26 07:32:40 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Format with spec-cleaner
- Fix tests
- Fix dependencies
-------------------------------------------------------------------
Mon May 25 09:09:53 UTC 2020 - Adrian Schröter <adrian@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-psutil
# spec file for package python-openwrt-luci-rpc
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-openwrt-luci-rpc
Version: 1.1.3
Release: 0
@@ -25,17 +24,20 @@ 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 click >= 6.0}
BuildRequires: %{python_module packaging >= 19.1}
BuildRequires: %{python_module requests >= 2.21}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click >= 6.0
Requires: python-packaging >= 19.1
Requires: python-requests >= 2.21
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'
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
@@ -44,22 +46,20 @@ installed on your openwrt based router.
https://openwrt-luci-rpc.readthedocs.io
%prep
%setup -q -n openwrt-luci-rpc-%{version}
# do not harcode versions
sed -i -e 's:==:>=:g' setup.py
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{$python_sitearch}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover -v
%files %{python_files}
%license LICENSE