2018-11-06 18:52:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyprel
|
|
|
|
#
|
2021-02-13 10:29:55 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-11-06 18:52:07 +00:00
|
|
|
#
|
|
|
|
# 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-%{**}}
|
2019-12-06 19:35:30 +00:00
|
|
|
%define skip_python2 1
|
2021-02-13 10:29:55 +00:00
|
|
|
%define skip_python36 1
|
2018-11-06 18:52:07 +00:00
|
|
|
Name: python-pyprel
|
|
|
|
Version: 2018.9.14.1501
|
|
|
|
Release: 0
|
|
|
|
Summary: Python print elegant
|
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: Development/Languages/Python
|
2019-06-04 13:41:07 +00:00
|
|
|
URL: https://github.com/wdbm/pyprel
|
2018-11-06 18:52:07 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyprel/pyprel-%{version}.tar.gz
|
|
|
|
Source10: https://raw.githubusercontent.com/wdbm/pyprel/master/LICENSE
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-04 13:41:07 +00:00
|
|
|
Requires: python-Pillow
|
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-pandas
|
|
|
|
Requires: python-pyfiglet
|
|
|
|
Requires: python-shijian
|
|
|
|
BuildArch: noarch
|
2018-11-06 18:52:07 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module Pillow}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
BuildRequires: %{python_module pyfiglet}
|
|
|
|
BuildRequires: %{python_module shijian}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides Python rendering functionality. It can render a
|
|
|
|
dictionary such that it is displayed with indentations for
|
|
|
|
illustration of hierarchy. It can center blocks of text for terminal
|
|
|
|
output. It can render segment displays. It can render and display
|
|
|
|
tables of various specified widths and column widths with various
|
|
|
|
text wrapping features and delimiters. It can provide color palettes,
|
|
|
|
extend them and save images of them.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyprel-%{version}
|
|
|
|
cp %{SOURCE10} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-06-04 13:41:07 +00:00
|
|
|
%check
|
|
|
|
# no unit tests found
|
|
|
|
|
2018-11-06 18:52:07 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|