update version to 0.9.0
This commit is contained in:
parent
6300ce1c8d
commit
39dae02c9f
17
0001-add-setup.py.patch
Normal file
17
0001-add-setup.py.patch
Normal file
@ -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"]}
|
||||||
|
+)
|
||||||
@ -1,12 +1,14 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-tabulate
|
Name: python-tabulate
|
||||||
Version: 0.8.10
|
Version: 0.9.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Pretty-print tabular data
|
Summary: Pretty-print tabular data
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/astanin/python-tabulate
|
URL: https://github.com/astanin/python-tabulate
|
||||||
Source0: https://files.pythonhosted.org/packages/7a/53/afac341569b3fd558bf2b5428e925e2eb8753ad9627c1f9188104c6e0c4a/tabulate-0.8.10.tar.gz
|
Source0: https://files.pythonhosted.org/packages/ec/fe/802052aecb21e3797b8f7902564ab6ea0d60ff8ca23952079064155d1ae1/tabulate-0.9.0.tar.gz
|
||||||
BuildArch: noarch
|
Patch0: 0001-add-setup.py.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pretty-print tabular data in Python, a library and a command-line
|
Pretty-print tabular data in Python, a library and a command-line
|
||||||
utility.
|
utility.
|
||||||
@ -20,16 +22,14 @@ The main use cases of the library are:
|
|||||||
decimal point
|
decimal point
|
||||||
|
|
||||||
%package -n python3-tabulate
|
%package -n python3-tabulate
|
||||||
Summary: Pretty-print tabular data
|
Summary: Pretty-print tabular data
|
||||||
Provides: python-tabulate
|
Provides: python-tabulate = %{version}-%{release}
|
||||||
# Base build requires
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
# General requires
|
# General requires
|
||||||
BuildRequires: python3-wcwidth
|
BuildRequires: python3-wcwidth
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
# General requires
|
|
||||||
Requires: python3-wcwidth
|
|
||||||
%description -n python3-tabulate
|
%description -n python3-tabulate
|
||||||
Pretty-print tabular data in Python, a library and a command-line
|
Pretty-print tabular data in Python, a library and a command-line
|
||||||
utility.
|
utility.
|
||||||
@ -43,8 +43,8 @@ The main use cases of the library are:
|
|||||||
decimal point
|
decimal point
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Pretty-print tabular data
|
Summary: Development documents and examples for tabulate
|
||||||
Provides: python3-tabulate-doc
|
Provides: python3-tabulate-doc
|
||||||
%description help
|
%description help
|
||||||
Pretty-print tabular data in Python, a library and a command-line
|
Pretty-print tabular data in Python, a library and a command-line
|
||||||
utility.
|
utility.
|
||||||
@ -65,28 +65,30 @@ The main use cases of the library are:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{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}
|
pushd %{buildroot}
|
||||||
if [ -d usr/lib ]; then
|
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
|
fi
|
||||||
if [ -d usr/lib64 ]; then
|
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
|
fi
|
||||||
if [ -d usr/bin ]; then
|
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
|
fi
|
||||||
if [ -d usr/sbin ]; then
|
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
|
fi
|
||||||
touch doclist.lst
|
touch doclist.lst
|
||||||
if [ -d usr/share/man ]; then
|
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
|
fi
|
||||||
popd
|
popd
|
||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
@ -102,6 +104,9 @@ PYTHONPATH=. pytest
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.9.0-1
|
||||||
|
- Update package to version 0.9.0
|
||||||
|
|
||||||
* Thu Sep 29 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.8.10-1
|
* Thu Sep 29 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 0.8.10-1
|
||||||
- Upgrade to 0.8.10
|
- Upgrade to 0.8.10
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
tabulate-0.9.0.tar.gz
Normal file
BIN
tabulate-0.9.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user