From db8df146eab005268a82f97805ca76d0bce6fa9edfe1c3f699e569bb0e4150d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 13:38:52 +0000 Subject: [PATCH] - Update to 1.5.2 release: * Many various drawing fixes * Css parsing improvements - Sort out with spec-cleaner - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansi2html?expand=0&rev=2 --- 1.5.2.tar.gz | 3 ++ ansi2html-1.2.0.tar.gz | 3 -- python-ansi2html.changes | 9 ++++++ python-ansi2html.spec | 63 +++++++++++++++++++++++----------------- 4 files changed, 49 insertions(+), 29 deletions(-) create mode 100644 1.5.2.tar.gz delete mode 100644 ansi2html-1.2.0.tar.gz diff --git a/1.5.2.tar.gz b/1.5.2.tar.gz new file mode 100644 index 0000000..4e4be0d --- /dev/null +++ b/1.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:019c336908b02705e43335a8f2f86dec5db0f5142c0870db639bf10efbd34636 +size 31582 diff --git a/ansi2html-1.2.0.tar.gz b/ansi2html-1.2.0.tar.gz deleted file mode 100644 index 3c0d1e7..0000000 --- a/ansi2html-1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e5d5ada557e0bbe3e204a686f959de17f76c86c20615c034767e5ebdc0740f1 -size 46748 diff --git a/python-ansi2html.changes b/python-ansi2html.changes index 95685e2..dc0cf24 100644 --- a/python-ansi2html.changes +++ b/python-ansi2html.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 14 13:31:49 UTC 2019 - Tomáš Chvátal + +- Update to 1.5.2 release: + * Many various drawing fixes + * Css parsing improvements +- Sort out with spec-cleaner +- Enable tests + ------------------------------------------------------------------- Tue Oct 24 15:13:53 UTC 2017 - rolf@rotkraut.de diff --git a/python-ansi2html.spec b/python-ansi2html.spec index c626a44..632ed2e 100644 --- a/python-ansi2html.spec +++ b/python-ansi2html.spec @@ -1,58 +1,69 @@ +# +# spec file for package python-ansi2html +# +# 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-ansi2html -Version: 1.2.0 -Release: 0 -Summary: Convert text with ANSI color codes to HTML or to LaTeX -License: GPL-3.0+ -Group: Development/Languages/Python -Url: https://github.com/ralphbean/ansi2html/ -Source: ansi2html-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +Name: python-ansi2html +Version: 1.5.2 +Release: 0 +Summary: Convert text with ANSI color codes to HTML or to LaTeX +License: LGPL-3.0-or-later +Group: Development/Languages/Python +URL: https://github.com/ralphbean/ansi2html/ +Source: https://github.com/ralphbean/ansi2html/archive/%{version}.tar.gz +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -Requires: python-six -BuildArch: noarch +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch %python_subpackages %description Convert text with ANSI color codes to HTML or to LaTeX. - %prep %setup -q -n ansi2html-%{version} - %build %python_build - %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/ansi2html +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/nosetests-%{$python_bin_suffix} tests/test_ansi2html.py %post %python_install_alternative ansi2html - %postun %python_uninstall_alternative ansi2html - -%clean -rm -rf %{buildroot} - - %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst +%license LICENSE +%doc README.rst CHANGELOG.rst %python_alternative %{_bindir}/ansi2html %{python_sitelib}/* - %changelog