From 78ca3b3052320ebcd6e6aa1533b248f97205a38cc679429bfaefdf4b6c17f653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 25 Jun 2025 12:53:34 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=25 --- python-vobject.changes | 5 +++++ python-vobject.spec | 17 +++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/python-vobject.changes b/python-vobject.changes index 8f48805..b7de850 100644 --- a/python-vobject.changes +++ b/python-vobject.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 25 12:51:21 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 24 02:58:12 UTC 2025 - Steve Kowalik diff --git a/python-vobject.spec b/python-vobject.spec index 96505ea..ae1bc1c 100644 --- a/python-vobject.spec +++ b/python-vobject.spec @@ -17,6 +17,7 @@ %global modname vobject +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-vobject Version: 0.9.9 @@ -36,12 +37,12 @@ BuildRequires: %{python_module python-dateutil >= 2.7.0} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-python-dateutil >= 2.7.0 Requires: python-pytz -Requires(post): update-alternatives -Requires(preun): update-alternatives Recommends: python-PyICU Provides: %{modname} = %{version} Obsoletes: %{modname} < 0.9.2 @@ -59,7 +60,7 @@ unicode strings. # Fix wrong-file-end-of-line-encoding sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt -cp %{S:1} test_files/. +cp %{SOURCE1} test_files/. %build %pyproject_wheel @@ -74,13 +75,9 @@ done %check %pyunittest -v tests.py -%post -%python_install_alternative change_tz -%python_install_alternative ics_diff - -%postun -%python_uninstall_alternative change_tz -%python_uninstall_alternative ics_diff +%pre +%python_libalternatives_reset_alternative change_tz +%python_libalternatives_reset_alternative ics_diff %files %{python_files} %license LICENSE-2.0.txt