fd81056
%global pypi_name textfsm
fd81056
fd81056
Name:           python-%{pypi_name}
a3d747c
Version:        1.1.2
311d865
Release:        7%{?dist}
fd81056
Summary:        Python module for parsing semi-structured text into python tables
fd81056
fd81056
License:        ASL 2.0
fd81056
URL:            https://github.com/google/textfsm
93e4ae1
Source0:        https://github.com/google/textfsm/archive/v%{version}.tar.gz
fd81056
BuildArch:      noarch
fd81056
fd81056
%description
fd81056
Python module which implements a template based state machine for parsing
fd81056
semi-formatted text. Originally developed to allow programmatic access to
fd81056
information returned from the command line interface (CLI) of networking
fd81056
devices.
fd81056
fd81056
%package -n     python3-%{pypi_name}
fd81056
Summary:        %{summary}
fd81056
%{?python_provide:%python_provide python3-%{pypi_name}}
fd81056
BuildRequires:  python3-devel
fd81056
BuildRequires:  python3-setuptools
1844eab
BuildRequires:  python3-six
93e4ae1
BuildRequires:  python3-pytest
93e4ae1
BuildRequires:  python3-pytest-runner
fd81056
Requires:       python3-six
fd81056
fd81056
%description -n python3-%{pypi_name}
fd81056
Python module which implements a template based state machine for parsing
fd81056
semi-formatted text. Originally developed to allow programmatic access to
fd81056
information returned from the command line interface (CLI) of networking
fd81056
devices.
fd81056
fd81056
%prep
fd81056
%autosetup -n %{pypi_name}-%{version}
fd81056
# Remove bundled egg-info
fd81056
rm -rf %{pypi_name}.egg-info
fd81056
fd81056
%build
fd81056
%py3_build
fd81056
fd81056
%install
fd81056
%py3_install
fd81056
fd81056
%check
d05a880
%pytest
93e4ae1
fd81056
%files -n python3-%{pypi_name}
fd81056
%license COPYING
93e4ae1
%exclude %{python3_sitelib}/testdata
93e4ae1
%{python3_sitelib}/%{pypi_name}
1a801f6
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
a3d747c
%{_bindir}/textfsm
fd81056
fd81056
%changelog
311d865
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-7
311d865
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
311d865
d1ef88a
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-6
d1ef88a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d1ef88a
09cdc4b
* Mon Sep 18 2023 Joel Capitao <jcapitao@redhat.com> - 1.1.2-5
09cdc4b
- Remove future dependency and use %pytest
09cdc4b
2c1f79f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
2c1f79f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2c1f79f
8d82712
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 1.1.2-3
8d82712
- Rebuilt for Python 3.12
8d82712
fccfe6b
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
fccfe6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
fccfe6b
a3d747c
* Tue Jul 26 2022 Joel Capitao <jcapitao@redhat.com> - 1.1.2-1
a3d747c
- Update to upstream version 1.1.2 (#1697095)
a3d747c
1547f33
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
1547f33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1547f33
c20c518
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-5
c20c518
- Rebuilt for Python 3.11
c20c518
fdf49af
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
fdf49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
fdf49af
0eaffa3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
0eaffa3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0eaffa3
f6d7629
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-2
f6d7629
- Rebuilt for Python 3.10
f6d7629
93e4ae1
* Mon Feb 22 2021 Javier Peña <jpena@redhat.com> - 1.1.0-1
93e4ae1
- Update to upstream version 1.1.0 (#1931302)
93e4ae1
- Remove python2 subpackage
93e4ae1
- Enable unit tests
93e4ae1
af0e394
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-13
af0e394
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
af0e394
2cee0c3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-12
2cee0c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2cee0c3
19b4b05
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-11
19b4b05
- Rebuilt for Python 3.9
19b4b05
2c9561d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-10
2c9561d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2c9561d
b3144f2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-9
b3144f2
- Rebuilt for Python 3.8.0rc1 (#1748018)
b3144f2
f3372f7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-8
f3372f7
- Rebuilt for Python 3.8
f3372f7
e045798
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-7
e045798
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e045798
1844eab
* Tue Mar 12 2019 Javier Peña <jpena@redhat.com> - 0.3.2-6
1844eab
- Switch sources to use GitHub release
1844eab
- Disable unit tests until they are present in the tarball
1844eab
6329c03
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-5
6329c03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6329c03
0927996
* Mon Oct 01 2018 Javier Peña <jpena@redhat.com> - 0.3.2-4
0927996
- Removed Python 2 package from Fedora 30+ (bz#1634614)
0927996
da3cc6e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
da3cc6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
da3cc6e
7f5747b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-2
7f5747b
- Rebuilt for Python 3.7
7f5747b
fd81056
* Fri Mar 16 2018 Javier Peña <jpena@redhat.com> - 0.3.2-1
fd81056
- Initial package.