File python-PrettyTable.spec of Package python-PrettyTable

# spec file for package python-PrettyTable
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Christian Berendt.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name:           python-PrettyTable
Version:        0.7.2
Release:        0
Summary:        Library for displaying tabular data in formatted fashion
License:        BSD-2-Clause
Group:          Development/Languages/Python
Url:  {version}.tar.bz2
Source:         prettytable-%{version}.tar.bz2
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildArch:      noarch
Provides:       %{oldpython}-prettytable = 0.7.2
Obsoletes:      %{oldpython}-prettytable < 0.7.2

PrettyTable is a Python library for representing tabular data in
ASCII tables, inspired by the tables emitted by 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.

%setup -q -n prettytable-%{version}
sed -i '1s/^#!.*//'



export LANG=en_US.UTF-8
%python_exec test

%files %{python_files}

openSUSE Build Service is sponsored by