14
0

Accepting request 921234 from home:pgajdos:python

- %check: use %pyunittest rpm macro

OBS-URL: https://build.opensuse.org/request/show/921234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=33
This commit is contained in:
2021-10-16 09:41:38 +00:00
committed by Git OBS Bridge
parent a880359252
commit 7c52c52e97
2 changed files with 10 additions and 4 deletions

View File

@@ -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 <tchvatal@suse.com> Thu Sep 12 17:12:56 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -38,7 +38,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-ZConfig Requires: python-ZConfig
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun):update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -65,7 +65,8 @@ rm -rf src/zdaemon.egg-info
%python_clone -a %{buildroot}%{_bindir}/zdaemon %python_clone -a %{buildroot}%{_bindir}/zdaemon
%check %check
%python_exec setup.py test pushd src
%pyunittest discover -v
%post %post
%python_install_alternative zdaemon %python_install_alternative zdaemon