From 875029b0c8a370d11b6a861fcd7686e00db1a1402de02b6a1364a1bc46cfeb72 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 27 Dec 2021 16:45:51 +0000 Subject: [PATCH] Accepting request 942208 from home:dimstar:Factory - Use proper python-* requires instead of python_module: Do not require all python flavors. OBS-URL: https://build.opensuse.org/request/show/942208 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mockito?expand=0&rev=3 --- python-pytest-mockito.changes | 6 ++++++ python-pytest-mockito.spec | 15 +++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/python-pytest-mockito.changes b/python-pytest-mockito.changes index c98e6bc..e65df8f 100644 --- a/python-pytest-mockito.changes +++ b/python-pytest-mockito.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 23 09:06:19 UTC 2021 - Dominique Leuenberger + +- Use proper python-* requires instead of python_module: Do not + require all python flavors. + ------------------------------------------------------------------- Thu Dec 2 21:09:15 UTC 2021 - Fabrice BAUZAC-STEHLY diff --git a/python-pytest-mockito.spec b/python-pytest-mockito.spec index cf45b0e..363c9d0 100644 --- a/python-pytest-mockito.spec +++ b/python-pytest-mockito.spec @@ -1,6 +1,7 @@ # -# spec file +# spec file for package python-pytest-mockito # +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2021 Fabrice Bauzac-Stehly # # All modifications and additions to the file contributed by third parties @@ -13,6 +14,8 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -27,15 +30,15 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/kaste/pytest-mockito Source: https://github.com/kaste/pytest-mockito/archive/refs/tags/%{version}.tar.gz -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module mockito} -BuildRequires: python-rpm-macros +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: ca-certificates Requires: python -Requires: %{python_module pytest} -Requires: %{python_module mockito} +Requires: python-mockito +Requires: python-pytest BuildArch: noarch %python_subpackages