From 082a0549af2f795996fbf6a9c34651cccfa1a9f5f7d3295010a66d42c25457c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 21 Jul 2021 10:20:57 +0000 Subject: [PATCH] - Use %pyunittest macro instead of directly calling %python_exec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-checkdmarc?expand=0&rev=2 --- python-checkdmarc.changes | 5 +++++ python-checkdmarc.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-checkdmarc.changes b/python-checkdmarc.changes index 42aa4dc..c125e3d 100644 --- a/python-checkdmarc.changes +++ b/python-checkdmarc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 21 10:20:44 UTC 2021 - Matej Cepl + +- Use %pyunittest macro instead of directly calling %python_exec + ------------------------------------------------------------------- Tue Jul 20 17:00:06 UTC 2021 - Martin Hauke diff --git a/python-checkdmarc.spec b/python-checkdmarc.spec index 78040fe..955ecf5 100644 --- a/python-checkdmarc.spec +++ b/python-checkdmarc.spec @@ -1,6 +1,7 @@ # # spec file for package python-checkdmarc # +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -27,8 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/c/checkdmarc/chec Source1: https://raw.githubusercontent.com/domainaware/checkdmarc/master/LICENSE Source2: https://raw.githubusercontent.com/domainaware/checkdmarc/master/tests.py Patch0: skip-broken-tests.patch -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module dnspython >= 2.0.0} BuildRequires: %{python_module expiringdict >= 1.1.4} @@ -70,7 +71,7 @@ cp %{SOURCE1} %{SOURCE2} . %python_uninstall_alternative checkdmarc %check -%python_exec -m unittest tests.py -v +%pyunittest -v tests.py %files %{python_files} %license LICENSE