diff --git a/ntc_templates-4.4.0.tar.gz b/ntc_templates-4.4.0.tar.gz deleted file mode 100644 index 527e86e969921973188d79c2556842380a7164a9..0000000000000000000000000000000000000000 Binary files a/ntc_templates-4.4.0.tar.gz and /dev/null differ diff --git a/ntc_templates-7.9.0.tar.gz b/ntc_templates-7.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5ac9b5f1876bfdb7b9d760c5736876815c985fa2 Binary files /dev/null and b/ntc_templates-7.9.0.tar.gz differ diff --git a/python-ntc-templates.spec b/python-ntc-templates.spec index 93d18ea91e9de737e7a7a33f670d4d6b5a755cd5..041e7b00e1501dea5f8c15ff5e0de2c3c56f8138 100644 --- a/python-ntc-templates.spec +++ b/python-ntc-templates.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-ntc-templates -Version: 4.4.0 +Version: 7.9.0 Release: 1 Summary: TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable. License: Apache-2.0 URL: https://github.com/networktocode/ntc-templates -Source0: https://files.pythonhosted.org/packages/fe/a6/903ec6a1de234dd3dd4a448ec91e038a96eb1036f8f8da807c2614d5b0d0/ntc_templates-4.4.0.tar.gz +Source0: %{pypi_source ntc_templates} BuildArch: noarch %description TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable. @@ -18,7 +18,7 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip -BuildRequires: python3-wheel +BuildRequires: python3-wheel python3-hatchling python3-hatch-vcs python3-pytest # General requires BuildRequires: python3-textfsm # General requires @@ -36,47 +36,31 @@ TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable %autosetup -n ntc_templates-%{version} %build -%py3_build +pip install --user poetry || pip install --prefix=%{_builddir} poetry +%pyproject_build %install -%py3_install +%pyproject_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 if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +%{__python3} -m pytest -%files -n python3-ntc-templates -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-ntc-templates +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Mon Jun 23 2025 yanyu - 7.9.0-1 +- Update package to version 7.9.0 + * Tue Apr 02 2024 wangqiang - 4.4.0-1 - Update package to version 4.4.0