14
0
Files
python-texttable/python-texttable.spec
Tomáš Chvátal 4acbb44c14 Accepting request 676515 from home:jayvdb:pyexcel
- Update to 1.6.0
  * Added texttable.pyi 
  * Added missing set_header_align method stub
  * Allow chaining of method calls
  * Replace distutils with setuptools
  * Create a method for redefining the max_width 
  * Switch to MIT License
  * Use wcwidth if available for better rendering (basic emoji support)
  * Update README.md

OBS-URL: https://build.opensuse.org/request/show/676515
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-texttable?expand=0&rev=9
2019-02-15 12:05:53 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-texttable
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-texttable
Version: 1.6.0
Release: 0
Summary: Module for creating simple ASCII tables
License: MIT
Group: Development/Languages/Python
URL: https://github.com/foutaise/texttable/
Source: https://files.pythonhosted.org/packages/source/t/texttable/texttable-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/foutaise/texttable/v%{version}/LICENSE
Source2: https://raw.githubusercontent.com/foutaise/texttable/master/tests.py
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-base
Recommends: python-wcwidth
BuildArch: noarch
%python_subpackages
%description
texttable is a module to generate a formatted text table, using ASCII
characters.
%prep
%setup -q -n texttable-%{version}
cp %{SOURCE1} %{SOURCE2} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand py.test-%{$python_bin_suffix} tests.py
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*
%changelog