forked from pool/python-textfsm
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
82bf5ad32f
commit
2e327992bc
@@ -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
|
||||
|
Reference in New Issue
Block a user