From d60ddca0abcca8137264dca87e7c050abec221d3fb8bb5cb5a43cbdd6e0d1bff Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:28 +0000 Subject: [PATCH] Accepting request 612025 from devel:languages:python:misc ANSI color output and colored highlighting and diffing OBS-URL: https://build.opensuse.org/request/show/612025 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansicolor?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + LICENSE | 13 +++++++++ ansicolor-0.2.6.tar.gz | 3 +++ python-ansicolor.changes | 13 +++++++++ python-ansicolor.spec | 58 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 ansicolor-0.2.6.tar.gz create mode 100644 python-ansicolor.changes create mode 100644 python-ansicolor.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f4c7a49 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2008-2014 Martin Matusiak + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/ansicolor-0.2.6.tar.gz b/ansicolor-0.2.6.tar.gz new file mode 100644 index 0000000..1e4d91f --- /dev/null +++ b/ansicolor-0.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d17e1b07b9dd7ded31699fbca53ae6cd373584f9b6dcbc124d1f321ebad31f1d +size 6224 diff --git a/python-ansicolor.changes b/python-ansicolor.changes new file mode 100644 index 0000000..599933a --- /dev/null +++ b/python-ansicolor.changes @@ -0,0 +1,13 @@ +------------------------------------------------------------------- +Thu May 24 17:26:59 UTC 2018 - toddrme2178@gmail.com + +- Update to version 0.2.6 + * First version supporting Python 3.4! +- Update to version 0.2.5 + * ansicolor.highlight_string accepts a new kwarg colors. color has been deprecated. +- Spec file cleanups + +------------------------------------------------------------------- +Fri Oct 20 16:13:04 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-ansicolor.spec b/python-ansicolor.spec new file mode 100644 index 0000000..24a40c4 --- /dev/null +++ b/python-ansicolor.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-ansicolor +# +# Copyright (c) 2018 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-ansicolor +Version: 0.2.6 +# For license file +%define tag a5a5c31dc6de5c864a0c5684ae326972573a712b +Release: 0 +License: Apache-2.0 +Summary: ANSI color output and colored highlighting and diffing +Url: https://github.com/numerodix/ansicolor +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/a/ansicolor/ansicolor-%{version}.tar.gz +Source10: https://raw.githubusercontent.com/numerodix/ansicolor/%{tag}/LICENSE +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch + +%python_subpackages + +%description +Ansicolor is a library that makes it easy to use ANSI color markup in +command line programs. + +%prep +%setup -q -n ansicolor-%{version} +cp %{SOURCE10} . + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog