diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch new file mode 100644 index 0000000000000000000000000000000000000000..35971239c9fcaafa0a09a651ddae0e5f907c9973 --- /dev/null +++ b/0001-add-setup.py.patch @@ -0,0 +1,17 @@ +--- c/setup.py 1970-01-01 08:00:00.000000000 +0800 ++++ a/setup.py 2022-12-06 09:22:10.203917839 +0800 +@@ -0,0 +1,14 @@ ++#!/usr/bin/env python ++ ++try: ++ from setuptools import setup ++except ImportError: ++ from distutils.core import setup ++ ++ ++setup( ++ name="tabulate", ++ version="0.9.0", ++ py_modules=["tabulate"], ++ entry_points={"console_scripts": ["tabulate = tabulate:_main"]} ++) diff --git a/python-tabulate.spec b/python-tabulate.spec index 7416d478dc03b3421f313fe06166e83635014d4e..848524217deaf37abb34711b767da47dab0e33b7 100644 --- a/python-tabulate.spec +++ b/python-tabulate.spec @@ -1,12 +1,14 @@ %global _empty_manifest_terminate_build 0 -Name: python-tabulate -Version: 0.8.10 -Release: 1 -Summary: Pretty-print tabular data -License: MIT -URL: https://github.com/astanin/python-tabulate -Source0: https://files.pythonhosted.org/packages/7a/53/afac341569b3fd558bf2b5428e925e2eb8753ad9627c1f9188104c6e0c4a/tabulate-0.8.10.tar.gz -BuildArch: noarch +Name: python-tabulate +Version: 0.9.0 +Release: 1 +Summary: Pretty-print tabular data +License: MIT +URL: https://github.com/astanin/python-tabulate +Source0: https://files.pythonhosted.org/packages/ec/fe/802052aecb21e3797b8f7902564ab6ea0d60ff8ca23952079064155d1ae1/tabulate-0.9.0.tar.gz +Patch0: 0001-add-setup.py.patch +BuildArch: noarch + %description Pretty-print tabular data in Python, a library and a command-line utility. @@ -20,16 +22,14 @@ The main use cases of the library are: decimal point %package -n python3-tabulate -Summary: Pretty-print tabular data -Provides: python-tabulate +Summary: Pretty-print tabular data +Provides: python-tabulate = %{version}-%{release} # Base build requires -BuildRequires: python3-devel -BuildRequires: python3-setuptools -# General requires -BuildRequires: python3-wcwidth -BuildRequires: python3-pytest +BuildRequires: python3-devel +BuildRequires: python3-setuptools # General requires -Requires: python3-wcwidth +BuildRequires: python3-wcwidth +BuildRequires: python3-pytest %description -n python3-tabulate Pretty-print tabular data in Python, a library and a command-line utility. @@ -43,8 +43,8 @@ The main use cases of the library are: decimal point %package help -Summary: Pretty-print tabular data -Provides: python3-tabulate-doc +Summary: Development documents and examples for tabulate +Provides: python3-tabulate-doc %description help Pretty-print tabular data in Python, a library and a command-line utility. @@ -65,28 +65,30 @@ The main use cases of the library are: %install %py3_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 +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst + 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 + 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 + 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 + 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 + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . @@ -102,6 +104,9 @@ PYTHONPATH=. pytest %{_docdir}/* %changelog +* Mon Dec 05 2022 wangjunqi - 0.9.0-1 +- Update package to version 0.9.0 + * Thu Sep 29 2022 jiangxinyu - 0.8.10-1 - Upgrade to 0.8.10 diff --git a/tabulate-0.8.10.tar.gz b/tabulate-0.8.10.tar.gz deleted file mode 100644 index 5fdf7367bc1bf55a6c6e30e45143c3a7f6da1c4a..0000000000000000000000000000000000000000 Binary files a/tabulate-0.8.10.tar.gz and /dev/null differ diff --git a/tabulate-0.9.0.tar.gz b/tabulate-0.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..31fa2fbc79665b657eee3433fa7f8d116b940e7c Binary files /dev/null and b/tabulate-0.9.0.tar.gz differ