python-prettytable/python-prettytable.spec

122 lines
3.9 KiB
RPMSpec
Raw Normal View History

2022-11-23 17:33:47 +08:00
%global _empty_manifest_terminate_build 0
Name: python-prettytable
Version: 3.5.0
Release: 1
Summary: Display tabular data in a visually appealing ASCII table format.
License: BSD-3-Clause
URL: https://github.com/jazzband/prettytable
Source0: https://files.pythonhosted.org/packages/51/d8/f4739a1971029c00fdb97c9ea4abbfb20ea041f6aa7613343f12a468e217/prettytable-3.5.0.tar.gz
Patch0: 0001-add-setup.py.patch
BuildArch: noarch
2019-09-30 11:15:21 -04:00
%description
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.
%package -n python3-prettytable
2022-11-23 17:33:47 +08:00
Summary: Display tabular data in a visually appealing ASCII table format.
Provides: python-prettytable = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
2019-09-30 11:15:21 -04:00
%description -n python3-prettytable
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.
2022-11-23 17:33:47 +08:00
%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.
2019-09-30 11:15:21 -04:00
%prep
2020-01-09 20:49:36 +08:00
%autosetup -n prettytable-%{version}
2019-09-30 11:15:21 -04:00
%build
2022-11-23 17:33:47 +08:00
%py3_build
2019-09-30 11:15:21 -04:00
%install
2022-11-23 17:33:47 +08:00
%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 -n python3-prettytable -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2019-09-30 11:15:21 -04:00
%changelog
2022-11-23 17:33:47 +08:00
* 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
- Rebuild for next release
2021-12-27 21:04:35 +08:00
* Mon Dec 27 2021 yanglongkang <yanglongkang@huawei.com> -2.4.0-1
- upadate to 2.4.0
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -0.7.2-20
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
2020-09-05 10:14:51 +08:00
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 0.7.2-19
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: update Source0
* Wed Feb 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.7.2-18
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add macros of python-provides about python3
2020-01-09 20:49:36 +08:00
* Thu Jan 9 2020 hanxinke<hanxinke@huawei.com> - 0.7.2-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:sync community
2019-09-30 11:15:21 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.7.2-16
- Package init