From 2c1b8dca7e5890cf334eb1e9bcf1114aa6a853d67fa1022be5f1717a1243452b 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:39:28 +0000 Subject: [PATCH] - 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 --- python-openwrt-luci-rpc.changes | 7 +++++++ python-openwrt-luci-rpc.spec | 26 +++++++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/python-openwrt-luci-rpc.changes b/python-openwrt-luci-rpc.changes index 745e92d..08858aa 100644 --- a/python-openwrt-luci-rpc.changes +++ b/python-openwrt-luci-rpc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 26 07:32:40 UTC 2020 - Tomáš Chvátal + +- Format with spec-cleaner +- Fix tests +- Fix dependencies + ------------------------------------------------------------------- Mon May 25 09:09:53 UTC 2020 - Adrian Schröter diff --git a/python-openwrt-luci-rpc.spec b/python-openwrt-luci-rpc.spec index 15065f0..19696fa 100644 --- a/python-openwrt-luci-rpc.spec +++ b/python-openwrt-luci-rpc.spec @@ -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