From 11179faf7f57c80540c45913ee5a25ca8d2ebaf7a7e33905be4c1eaf54aac9bd Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 15 Mar 2024 08:24:41 +0000 Subject: [PATCH] - Testing on SLE-15 is just too much. OBS-URL: https://build.opensuse.org/package/show/security:privacy/python-pass-git-helper?expand=0&rev=5 --- python-pass-git-helper.changes | 5 +++++ python-pass-git-helper.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-pass-git-helper.changes b/python-pass-git-helper.changes index 512a72a..0b50e4a 100644 --- a/python-pass-git-helper.changes +++ b/python-pass-git-helper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 15 08:23:55 UTC 2024 - Matej Cepl + +- Testing on SLE-15 is just too much. + ------------------------------------------------------------------- Sat Sep 2 19:21:38 UTC 2023 - Matej Cepl diff --git a/python-pass-git-helper.spec b/python-pass-git-helper.spec index 2cdfb54..93901c4 100644 --- a/python-pass-git-helper.spec +++ b/python-pass-git-helper.spec @@ -1,7 +1,7 @@ # # spec file for package python-pass-git-helper # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,11 @@ %define modname pass-git-helper +%if 0%{?suse_version} < 1600 +%bcond_with test +%else +%bcond_without test +%endif Name: python-pass-git-helper Version: 1.4.0 Release: 0 @@ -29,16 +34,18 @@ BuildRequires: %{python_module dataclasses >= 0.7 if %python-base < 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros +%if %{with test} # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pyxdg} # /SECTION +%endif BuildRequires: fdupes Requires: python-pyxdg BuildArch: noarch Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -59,7 +66,9 @@ sed -i -e '1{\@^#!%{_bindir}/env python@d}' passgithelper.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%if %{with test} %pytest +%endif %post %python_install_alternative pass-git-helper