diff --git a/python-textfsm.spec b/python-textfsm.spec index 28e7e85a7f2e3907c4ee393b2dfd22475910629b..7867210e66099a9eac12cb5125d76c85b7933d20 100644 --- a/python-textfsm.spec +++ b/python-textfsm.spec @@ -1,84 +1,40 @@ %global _empty_manifest_terminate_build 0 Name: python-textfsm -Version: 1.1.0 -Release: 1 +Version: 0.4.1 +Release: 2 Summary: Python module for parsing semi-structured text into python tables. -License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/google/textfsm -Source0: https://github.com/google/textfsm/archive/v%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/a1/0d/a1b490503545b3b4600b965eae5d44cc2b6ce27cfb44f4debc563dbb56d3/textfsm-0.4.1.tar.gz BuildArch: noarch - -Requires: python3-future -Requires: python3-six - %description -Python module which implements a template based state machine for parsing -semi-formatted text. Originally developed to allow programmatic access to -information returned from the command line interface (CLI) of networking -devices. -The engine takes two inputs - a template file, and text input (such as command -responses from the CLI of a device) and returns a list of records that contains -the data parsed from the text. -A template file is needed for each uniquely structured text input. Some examples -are provided with the code and users are encouraged to develop their own. -By developing a pool of template files, scripts can call TextFSM to parse useful -information from a variety of sources. It is also possible to use different -templates on the same data in order to create different tables (or views). -TextFSM was developed internally at Google and released under the Apache 2.0 -licence for the benefit of the wider community. -[**See documentation for more details.**](https://github.com/google/textfsm/wiki/TextFSM) +Python module for parsing semi-structured text into python tables. + -%package -n python3-textfsm +%package -n python2-textfsm Summary: Python module for parsing semi-structured text into python tables. -Provides: python-textfsm -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-six -%description -n python3-textfsm -Python module which implements a template based state machine for parsing -semi-formatted text. Originally developed to allow programmatic access to -information returned from the command line interface (CLI) of networking -devices. -The engine takes two inputs - a template file, and text input (such as command -responses from the CLI of a device) and returns a list of records that contains -the data parsed from the text. -A template file is needed for each uniquely structured text input. Some examples -are provided with the code and users are encouraged to develop their own. -By developing a pool of template files, scripts can call TextFSM to parse useful -information from a variety of sources. It is also possible to use different -templates on the same data in order to create different tables (or views). -TextFSM was developed internally at Google and released under the Apache 2.0 -licence for the benefit of the wider community. -[**See documentation for more details.**](https://github.com/google/textfsm/wiki/TextFSM) +Provides: python2-textfsm +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-textfsm +Python module for parsing semi-structured text into python tables. + %package help Summary: Development documents and examples for textfsm -Provides: python3-textfsm-doc +Provides: python2-textfsm-doc %description help -Python module which implements a template based state machine for parsing -semi-formatted text. Originally developed to allow programmatic access to -information returned from the command line interface (CLI) of networking -devices. -The engine takes two inputs - a template file, and text input (such as command -responses from the CLI of a device) and returns a list of records that contains -the data parsed from the text. -A template file is needed for each uniquely structured text input. Some examples -are provided with the code and users are encouraged to develop their own. -By developing a pool of template files, scripts can call TextFSM to parse useful -information from a variety of sources. It is also possible to use different -templates on the same data in order to create different tables (or views). -TextFSM was developed internally at Google and released under the Apache 2.0 -licence for the benefit of the wider community. -[**See documentation for more details.**](https://github.com/google/textfsm/wiki/TextFSM) +Python module for parsing semi-structured text into python tables. + %prep -%autosetup -n textfsm-1.1.0 +%autosetup -n textfsm-0.4.1 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -105,12 +61,14 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-textfsm -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-textfsm -f filelist.lst +%{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Mon Mar 15 2021 Python_Bot +* Wen May 26 2021 openstack-sig +- Fix Provides +* Sun May 16 2021 openstack-sig - Package Spec generated diff --git a/textfsm-0.4.1.tar.gz b/textfsm-0.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9afc7efe898974d950641be9fa6e773bc35963f7 Binary files /dev/null and b/textfsm-0.4.1.tar.gz differ diff --git a/v1.1.0.tar.gz b/v1.1.0.tar.gz deleted file mode 100644 index 9c5dcdbd5281c23b1f584628250b13ae303940d6..0000000000000000000000000000000000000000 Binary files a/v1.1.0.tar.gz and /dev/null differ