From 16b0c6bebbff410c3dbd023c6b18dca72a4fe9e39448dd6095237935d101ae5e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 15 Mar 2024 17:05:18 +0000 Subject: [PATCH] Accepting request 1158277 from home:mcalabkova:branches:devel:languages:python - Really add dependency on pyasyncore OBS-URL: https://build.opensuse.org/request/show/1158277 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-snimpy?expand=0&rev=17 --- python-snimpy.changes | 5 +++++ python-snimpy.spec | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python-snimpy.changes b/python-snimpy.changes index 0364925..f585063 100644 --- a/python-snimpy.changes +++ b/python-snimpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 15 15:39:11 UTC 2024 - Markéta Machová + +- Really add dependency on pyasyncore + ------------------------------------------------------------------- Fri Dec 29 10:26:57 UTC 2023 - Dirk Müller diff --git a/python-snimpy.spec b/python-snimpy.spec index 652e2f2..df8a2c1 100644 --- a/python-snimpy.spec +++ b/python-snimpy.spec @@ -1,7 +1,7 @@ # # spec file for package python-snimpy # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2016-2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -38,12 +38,19 @@ BuildRequires: %{python_module cffi >= 1.0.0} BuildRequires: %{python_module pysnmp >= 5} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +%if 0%{?suse_version} >= 1699 +# The classic "if %%python-base > 3.11" made the build unresolvable (at least for me). Sorry for this, feel free to rewrite. +BuildRequires: python312-pyasyncore +%endif # /SECTION Requires: python-cffi >= 1.0.0 Requires: python-pysnmp >= 5 Requires: python-setuptools +%if 0%{?python_version_nodots} > 311 +Requires: python-pyasyncore +%endif Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %python_subpackages %description