From 9cd3c89bafdb402dd1f0ebee5c8bd21cf53f6387fcc5a52112738a3837acbf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 28 Jan 2020 08:47:41 +0000 Subject: [PATCH] - Format with spec-cleaner - Remove devel dependency - Run the tests without setuptools OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diff-match-patch?expand=0&rev=2 --- python-diff-match-patch.changes | 7 +++++++ python-diff-match-patch.spec | 15 +++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/python-diff-match-patch.changes b/python-diff-match-patch.changes index f7b20ca..6a9fee8 100644 --- a/python-diff-match-patch.changes +++ b/python-diff-match-patch.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 28 08:47:06 UTC 2020 - Tomáš Chvátal + +- Format with spec-cleaner +- Remove devel dependency +- Run the tests without setuptools + ------------------------------------------------------------------- Sat Jan 25 14:05:38 UTC 2020 - Sebastian Wagner diff --git a/python-diff-match-patch.spec b/python-diff-match-patch.spec index 2c3d90c..0a58523 100644 --- a/python-diff-match-patch.spec +++ b/python-diff-match-patch.spec @@ -1,7 +1,7 @@ # # spec file for package python-diff-match-patch # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,26 +12,25 @@ # 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-diff-match-patch Version: 20181111 Release: 0 -License: Apache-2.0 Summary: Repackaging of Google's Diff Match and Patch libraries -Url: https://github.com/diff-match-patch-python/diff-match-patch +License: Apache-2.0 Group: Development/Languages/Python +URL: https://github.com/diff-match-patch-python/diff-match-patch Source: https://files.pythonhosted.org/packages/source/d/diff-match-patch/diff-match-patch-%{version}.tar.gz # PATCH-FIX-OPENSUSE make-tests-runable.patch -- running tests is too complicated to put that into the specfile Patch0: make-tests-runable.patch -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -50,7 +49,7 @@ find . -name "*.py" -type f -exec sed -i '1s/^#!.*//' {} \+ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test -s diff_match_patch.tests.run_all +%python_exec -m unittest diff_match_patch.tests.run_all %files %{python_files} %doc README.md