From bf61940a2e23ae3f9411b240730439fcdde5d887a684afc9145a620e3e82a630 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 1 Jun 2021 16:43:18 +0000 Subject: [PATCH] Accepting request 896664 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/896664 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-aiml?expand=0&rev=9 --- python-python-aiml.changes | 5 +++++ python-python-aiml.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-python-aiml.changes b/python-python-aiml.changes index 3bb36d6..8591047 100644 --- a/python-python-aiml.changes +++ b/python-python-aiml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 1 11:28:14 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Wed May 20 07:26:47 UTC 2020 - Petr Gajdos diff --git a/python-python-aiml.spec b/python-python-aiml.spec index babad2d..2c93ec7 100644 --- a/python-python-aiml.spec +++ b/python-python-aiml.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-aiml # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -30,7 +30,7 @@ BuildRequires: python-rpm-macros BuildRequires: unzip Requires: python-setuptools Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Obsoletes: python-aiml < 0.9.0 BuildArch: noarch %python_subpackages @@ -56,7 +56,7 @@ for a long time. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %post %python_install_alternative aiml-bot