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
3
0.4.1.tar.gz
Normal file
3
0.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:280a980330e6e83010bb29225091b4094d594a83f174142c5657beda7edf3300
|
||||
size 51409
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:21a31e212d625d84a8c7a52f35055d536bd3a1c63d3d41ed65ee5d8bd5f29f00
|
||||
size 38369
|
Reference in New Issue
Block a user