diff --git a/python-zdaemon.changes b/python-zdaemon.changes index f4285ac..b332376 100644 --- a/python-zdaemon.changes +++ b/python-zdaemon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 24 07:52:41 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Thu Sep 12 17:12:56 UTC 2019 - Tomáš Chvátal diff --git a/python-zdaemon.spec b/python-zdaemon.spec index 1578efd..5d3295c 100644 --- a/python-zdaemon.spec +++ b/python-zdaemon.spec @@ -1,7 +1,7 @@ # -# spec file for package python-zdaemon +# spec file # -# 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 @@ -38,7 +38,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ZConfig Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives BuildArch: noarch %python_subpackages @@ -65,7 +65,8 @@ rm -rf src/zdaemon.egg-info %python_clone -a %{buildroot}%{_bindir}/zdaemon %check -%python_exec setup.py test +pushd src +%pyunittest discover -v %post %python_install_alternative zdaemon