python-prettytable/python-prettytable.spec

89 lines
2.5 KiB
RPMSpec
Raw Normal View History

2021-02-02 20:38:10 +08:00
%global srcname prettytable
Name: python-%{srcname}
Version: 2.0.0
Release: 1
2019-09-30 11:15:21 -04:00
Summary: Display tabular data in a visually appealing ASCII table format.
License: BSD
URL: http://pypi.python.org/pypi/PrettyTable
2021-02-02 20:38:10 +08:00
Source0: %{pypi_source}
2019-09-30 11:15:21 -04:00
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
2021-02-02 20:38:10 +08:00
BuildRequires: python3-setuptools_scm python3-pytest python3-py python3-wcwidth
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_help
%package -n python3-prettytable
Summary: Display tabular data in a visually appealing ASCII table format.
%{?python_provide:%python_provide python3-prettytable}
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.
This package is for python3.
%prep
2020-01-09 20:49:36 +08:00
%autosetup -n prettytable-%{version}
2019-09-30 11:15:21 -04:00
%build
%{__python3} setup.py build
%check
2021-02-02 20:38:10 +08:00
%{__python3} setup.py test
2019-09-30 11:15:21 -04:00
%install
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files help
%defattr(-,root,root)
2021-02-02 20:38:10 +08:00
%doc COPYING
2019-09-30 11:15:21 -04:00
%files -n python3-prettytable
%defattr(-,root,root)
%license COPYING
2021-02-02 20:38:10 +08:00
%{python3_sitelib}/*
2019-09-30 11:15:21 -04:00
%changelog
2021-02-02 20:38:10 +08:00
* Tue Feb 2 2021 shangyibin <shangyibin1@huawei.com> - 2.0.0-1
- Upgrade tp version 2.0.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