update version to 3.5.0
This commit is contained in:
parent
f7acfcc543
commit
a6d29ebc3a
12
0001-add-setup.py.patch
Normal file
12
0001-add-setup.py.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- c/setup.py 1970-01-01 08:00:00.000000000 +0800
|
||||||
|
+++ a/setup.py 2022-11-23 17:31:28.835786258 +0800
|
||||||
|
@@ -0,0 +1,9 @@
|
||||||
|
+#!/usr/bin/env python
|
||||||
|
+
|
||||||
|
+from setuptools import setup
|
||||||
|
+
|
||||||
|
+if __name__ == "__main__":
|
||||||
|
+ setup(
|
||||||
|
+ name = "prettytable",
|
||||||
|
+ version = "3.5.0"
|
||||||
|
+ )
|
||||||
Binary file not shown.
BIN
prettytable-3.5.0.tar.gz
Normal file
BIN
prettytable-3.5.0.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,14 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-prettytable
|
Name: python-prettytable
|
||||||
Version: 2.4.0
|
Version: 3.5.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Display tabular data in a visually appealing ASCII table format.
|
Summary: Display tabular data in a visually appealing ASCII table format.
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: http://pypi.python.org/pypi/PrettyTable
|
URL: https://github.com/jazzband/prettytable
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/51/d8/f4739a1971029c00fdb97c9ea4abbfb20ea041f6aa7613343f12a468e217/prettytable-3.5.0.tar.gz
|
||||||
|
Patch0: 0001-add-setup.py.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PrettyTable is a simple Python library designed to make it quick and easy to
|
PrettyTable is a simple Python library designed to make it quick and easy to
|
||||||
@ -17,12 +18,12 @@ selection of which columns are to be printed, independent alignment of columns
|
|||||||
(left or right justified or centred) and printing of "sub-tables" by specifying
|
(left or right justified or centred) and printing of "sub-tables" by specifying
|
||||||
a row range.
|
a row range.
|
||||||
|
|
||||||
%package_help
|
|
||||||
|
|
||||||
%package -n python3-prettytable
|
%package -n python3-prettytable
|
||||||
Summary: Display tabular data in a visually appealing ASCII table format.
|
Summary: Display tabular data in a visually appealing ASCII table format.
|
||||||
%{?python_provide:%python_provide python3-prettytable}
|
Provides: python-prettytable = %{version}-%{release}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-setuptools_scm
|
||||||
%description -n python3-prettytable
|
%description -n python3-prettytable
|
||||||
PrettyTable is a simple Python library designed to make it quick and easy to
|
PrettyTable is a simple Python library designed to make it quick and easy to
|
||||||
represent tabular data in visually appealing ASCII tables. It was inspired by
|
represent tabular data in visually appealing ASCII tables. It was inspired by
|
||||||
@ -30,29 +31,62 @@ the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
|
|||||||
selection of which columns are to be printed, independent alignment of columns
|
selection of which columns are to be printed, independent alignment of columns
|
||||||
(left or right justified or centred) and printing of "sub-tables" by specifying
|
(left or right justified or centred) and printing of "sub-tables" by specifying
|
||||||
a row range.
|
a row range.
|
||||||
This package is for python3.
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for prettytable
|
||||||
|
Provides: python3-prettytable-doc
|
||||||
|
%description help
|
||||||
|
PrettyTable is a simple Python library designed to make it quick and easy to
|
||||||
|
represent tabular data in visually appealing ASCII tables. It was inspired by
|
||||||
|
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
|
||||||
|
selection of which columns are to be printed, independent alignment of columns
|
||||||
|
(left or right justified or centred) and printing of "sub-tables" by specifying
|
||||||
|
a row range.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n prettytable-%{version}
|
%autosetup -n prettytable-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python3} setup.py build
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%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
|
||||||
|
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 .
|
||||||
|
|
||||||
%files help
|
%files -n python3-prettytable -f filelist.lst
|
||||||
%defattr(-,root,root)
|
%dir %{python3_sitelib}/*
|
||||||
%doc README.md CHANGELOG.md
|
|
||||||
|
|
||||||
%files -n python3-prettytable
|
%files help -f doclist.lst
|
||||||
%defattr(-,root,root)
|
%{_docdir}/*
|
||||||
%license COPYING
|
|
||||||
%{python3_sitelib}/prettytable*
|
|
||||||
%{python3_sitelib}/prettytable-%{version}*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 23 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.5.0-1
|
||||||
|
- Update package to version 3.5.0
|
||||||
|
|
||||||
* Wed Oct 26 2022 zhangruifang <zhangruifang1@h-partners.com> - 2.4.0-2
|
* Wed Oct 26 2022 zhangruifang <zhangruifang1@h-partners.com> - 2.4.0-2
|
||||||
- Rebuild for next release
|
- Rebuild for next release
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user