diff --git a/python-tkreadonly.changes b/python-tkreadonly.changes index 4688e53..a74a39a 100644 --- a/python-tkreadonly.changes +++ b/python-tkreadonly.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 13 14:35:09 UTC 2021 - pgajdos@suse.com + +- run spec cleaner +- use %pytest macro + ------------------------------------------------------------------- Sun Apr 14 09:56:25 AM UTC 2019 - John Vandenberg diff --git a/python-tkreadonly.spec b/python-tkreadonly.spec index 00cd2d1..f8b45ee 100644 --- a/python-tkreadonly.spec +++ b/python-tkreadonly.spec @@ -1,7 +1,7 @@ # # spec file for package python-tkreadonly # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,31 +12,32 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tkreadonly Version: 0.6.1 Release: 0 -License: BSD-3-Clause Summary: A set of Tkinter widgets to display readonly text and code -Url: http://github.org/pybee/tkreadonly +License: BSD-3-Clause Group: Development/Languages/Python +URL: http://github.org/pybee/tkreadonly Source: https://files.pythonhosted.org/packages/source/t/tkreadonly/tkreadonly-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module idle} -BuildRequires: %{python_module tk} BuildRequires: %{python_module setuptools} -# SECTION test requirements -BuildRequires: %{python_module Pygments >= 1.5} -# /SECTION +BuildRequires: %{python_module tk} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-Pygments >= 1.5 Requires: python-idle Requires: python-tk BuildArch: noarch - +# SECTION test requirements +BuildRequires: %{python_module Pygments >= 1.5} +BuildRequires: %{python_module pytest} +# /SECTION %python_subpackages %description @@ -53,7 +54,7 @@ A set of Tkinter widgets to display readonly text and code. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest tests.py %files %{python_files} %doc README.rst