2017-11-20 14:31:00 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-crayons
|
|
|
|
|
#
|
2021-01-06 05:04:48 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-11-20 14:31:00 +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.
|
|
|
|
|
|
2019-03-04 14:45:15 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-11-20 14:31:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-05-11 22:08:31 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-06-15 17:37:44 +00:00
|
|
|
%define modname crayons
|
2017-11-20 14:31:00 +00:00
|
|
|
Name: python-crayons
|
2021-06-15 17:37:44 +00:00
|
|
|
Version: 0.4.0
|
2017-11-20 14:31:00 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Colored strings for terminal usage
|
|
|
|
|
License: MIT
|
2020-02-24 05:07:09 +00:00
|
|
|
URL: https://github.com/MasterOdin/crayons
|
2021-06-18 15:29:28 +00:00
|
|
|
Source: https://github.com/MasterOdin/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
2021-06-15 17:37:44 +00:00
|
|
|
BuildRequires: %{python_module colorama}
|
2017-11-20 14:31:00 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-04 14:45:15 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-11-20 14:31:00 +00:00
|
|
|
Requires: python-colorama
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2020-02-24 05:07:09 +00:00
|
|
|
Crayons is a simple module to give you colored strings for terminal usage.
|
|
|
|
|
Included colors are red, green, yellow, blue, black, magenta, cyan, white,
|
|
|
|
|
and normal.
|
2017-11-20 14:31:00 +00:00
|
|
|
|
|
|
|
|
%prep
|
2021-06-15 17:37:44 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2017-11-20 14:31:00 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
|
2021-06-15 17:37:44 +00:00
|
|
|
%check
|
|
|
|
|
%python_exec test_crayons.py
|
|
|
|
|
|
2017-11-20 14:31:00 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2021-06-15 17:37:44 +00:00
|
|
|
%{python_sitelib}/%{modname}.py
|
|
|
|
|
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/%{modname}*
|
2017-11-20 14:31:00 +00:00
|
|
|
|
|
|
|
|
%changelog
|