From 2e327992bcf54ee57d024190130d452b180c0b50c13c059694dd7e567e05ecd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 21 Jun 2018 07:37:39 +0000 Subject: [PATCH] - Add dependency over python-six as it is stated by upstream - Switch to github archive as it contains the testdata OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textfsm?expand=0&rev=2 --- 0.4.1.tar.gz | 3 +++ python-textfsm.changes | 6 ++++++ python-textfsm.spec | 19 +++++++++++++++---- textfsm-0.4.1.tar.gz | 3 --- 4 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 0.4.1.tar.gz delete mode 100644 textfsm-0.4.1.tar.gz diff --git a/0.4.1.tar.gz b/0.4.1.tar.gz new file mode 100644 index 0000000..cee2139 --- /dev/null +++ b/0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:280a980330e6e83010bb29225091b4094d594a83f174142c5657beda7edf3300 +size 51409 diff --git a/python-textfsm.changes b/python-textfsm.changes index 8266ba9..1e7356d 100644 --- a/python-textfsm.changes +++ b/python-textfsm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 21 07:33:03 UTC 2018 - tchvatal@suse.com + +- Add dependency over python-six as it is stated by upstream +- Switch to github archive as it contains the testdata + ------------------------------------------------------------------- Wed Jun 20 21:02:45 UTC 2018 - gyee@suse.com diff --git a/python-textfsm.spec b/python-textfsm.spec index 556c6b9..6660d52 100644 --- a/python-textfsm.spec +++ b/python-textfsm.spec @@ -13,19 +13,22 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-textfsm Version: 0.4.1 Release: 0 -License: Apache-2.0 Summary: Python module for parsing semi-structured text into python tables -Url: https://github.com/google/textfsm +License: Apache-2.0 Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/t/textfsm/textfsm-%{version}.tar.gz -BuildRequires: python-rpm-macros +Url: https://github.com/google/textfsm +Source: https://github.com/google/textfsm/archive/0.4.1.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros +Requires: python-six BuildRequires: fdupes BuildArch: noarch @@ -47,6 +50,14 @@ devices. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_exec clitable_test.py +%python_exec copyable_regex_object_test.py +%python_exec terminal_test.py +# textfsm_test.py is not working under python2 +python3 textfsm_test.py +%python_exec texttable_test.py + %files %{python_files} %license COPYING %doc README.md diff --git a/textfsm-0.4.1.tar.gz b/textfsm-0.4.1.tar.gz deleted file mode 100644 index e726848..0000000 --- a/textfsm-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21a31e212d625d84a8c7a52f35055d536bd3a1c63d3d41ed65ee5d8bd5f29f00 -size 38369