f8591b
%global modname prettytable
f8591b
f8591b
f8591b
Name:		python-%{modname}
f8591b
Version:	0.7.2
f8591b
Release:	14%{?dist}
f8591b
Summary:	Python library to display tabular data in tables
f8591b
f8591b
Group:		Development/Languages
f8591b
License:	BSD
f8591b
Source0:    http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz
f8591b
URL:		http://pypi.python.org/pypi/PrettyTable
f8591b
f8591b
Patch0:         disable-encoding-check.patch
f8591b
f8591b
BuildArch:	noarch
f8591b
f8591b
BuildRequires:  python3-devel
f8591b
BuildRequires:  python3-setuptools
f8591b
f8591b
f8591b
%global _description\
f8591b
PrettyTable is a simple Python library designed to make it quick and easy to\
f8591b
represent tabular data in visually appealing ASCII tables. It was inspired by\
f8591b
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for\
f8591b
selection of which columns are to be printed, independent alignment of columns\
f8591b
(left or right justified or centred) and printing of "sub-tables" by specifying\
f8591b
a row range.
f8591b
f8591b
%description %_description
f8591b
f8591b
%package -n python3-%{modname}
f8591b
Summary:	Python library to display tabular data in tables
f8591b
Group:		Development/Languages
f8591b
f8591b
%description -n python3-%{modname}
f8591b
PrettyTable is a simple Python library designed to make it quick and easy to
f8591b
represent tabular data in visually appealing ASCII tables. It was inspired by
f8591b
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
f8591b
selection of which columns are to be printed, independent alignment of columns
f8591b
(left or right justified or centred) and printing of "sub-tables" by specifying
f8591b
a row range.
f8591b
f8591b
f8591b
%prep
f8591b
%setup -q -n %{modname}-%{version}
f8591b
f8591b
%patch0 -p1
f8591b
f8591b
f8591b
f8591b
%build
f8591b
%py3_build
f8591b
f8591b
%check
f8591b
%{__python3} %{modname}_test.py
f8591b
f8591b
f8591b
%install
f8591b
%py3_install
f8591b
f8591b
f8591b
%files -n python3-%{modname}
f8591b
%{!?_licensedir:%global license %%doc}
f8591b
%license COPYING
f8591b
%doc README CHANGELOG
f8591b
%{python3_sitelib}/%{modname}.py*
f8591b
%{python3_sitelib}/__pycache__/%{modname}*
f8591b
%{python3_sitelib}/%{modname}-%{version}*
f8591b
f8591b
f8591b
%changelog
f8591b
* Wed Jul 11 2018 Petr Viktorin <pviktori@redhat.com> - 0.7.2-14
f8591b
- Remove the Python 2 subpackage
f8591b
  https://bugzilla.redhat.com/show_bug.cgi?id=1567293
f8591b
f8591b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-13
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f8591b
f8591b
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.2-12
f8591b
- Python 2 binary package renamed to python2-prettytable
f8591b
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
f8591b
f8591b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-11
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f8591b
f8591b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-10
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f8591b
f8591b
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.7.2-9
f8591b
- Rebuild for Python 3.6
f8591b
f8591b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
f8591b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f8591b
f8591b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-7
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f8591b
f8591b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f8591b
f8591b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-5
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f8591b
f8591b
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 0.7.2-4
f8591b
- fix license handling
f8591b
f8591b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f8591b
f8591b
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.2-2
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
f8591b
f8591b
* Tue Jan 07 2014 Pádraig Brady <pbrady@redhat.com> - 0.7.2-1
f8591b
- Latest upstream
f8591b
f8591b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f8591b
f8591b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f8591b
f8591b
* Tue Aug 07 2012 Ralph Bean <rbean@redhat.com> - 0.6.1-1
f8591b
- New upstream version
f8591b
- Added support for python3
f8591b
- Included README, COPYING, and CHANGELOG in docs
f8591b
f8591b
* Tue Aug 07 2012 Pádraig Brady <P@draigBrady.com> - 0.6-1
f8591b
- Update to 0.6
f8591b
f8591b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f8591b
f8591b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
f8591b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f8591b
f8591b
* Tue Jul 05 2011 Chris Lalancette <clalance@redhat.com> - 0.5-2
f8591b
- BuildRequire python-setuptools
f8591b
f8591b
* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.5-1
f8591b
- Initial package.