From 4abf57ad3e8c73f825083a0aad3ff1f11528f3f6ac7735c6fff25ce1e26f42ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 25 Aug 2025 11:42:48 +0000 Subject: [PATCH] - Convert to libalternatives on SLE-16-based and newer systems OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Quart?expand=0&rev=9 --- python-Quart.changes | 5 +++++ python-Quart.spec | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/python-Quart.changes b/python-Quart.changes index 9531def..50869a7 100644 --- a/python-Quart.changes +++ b/python-Quart.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 25 11:42:22 UTC 2025 - Markéta Machová + +- Convert to libalternatives on SLE-16-based and newer systems + ------------------------------------------------------------------- Tue Feb 11 07:48:57 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-Quart.spec b/python-Quart.spec index 1193a5c..6dc5eee 100644 --- a/python-Quart.spec +++ b/python-Quart.spec @@ -1,7 +1,7 @@ # # spec file for package python-Quart # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,11 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-Quart Version: 0.20.0 @@ -54,9 +59,14 @@ Requires: python-blinker >= 1.6 Requires: python-click >= 8.0 Requires: python-hypercorn >= 0.11.2 Requires: python-itsdangerous +BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives -BuildArch: noarch +%endif %python_subpackages %description @@ -88,6 +98,9 @@ Quart is an async Python web microframework. Using Quart you can, %postun %python_uninstall_alternative quart +%pre +%python_libalternatives_reset_alternative quart + %files %{python_files} %doc README.md CHANGES.md %license LICENSE.txt