From 801d80be8425d1b75557ed0169caaf60d31098e9820e9a62e95cf40b96af62b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:17:29 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutt-ics?expand=0&rev=21 --- python-mutt-ics.changes | 5 +++++ python-mutt-ics.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-mutt-ics.changes b/python-mutt-ics.changes index a36e365..8b68da7 100644 --- a/python-mutt-ics.changes +++ b/python-mutt-ics.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:17:10 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 14:15:16 UTC 2025 - Markéta Machová diff --git a/python-mutt-ics.spec b/python-mutt-ics.spec index 9fddabd..48fe92a 100644 --- a/python-mutt-ics.spec +++ b/python-mutt-ics.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-mutt-ics Version: 0.9.2 Release: 0 @@ -27,12 +28,12 @@ BuildRequires: %{python_module icalendar >= 3.9.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-icalendar >= 3.9.0 Requires: python-setuptools -Requires(post): alts -Requires(postun): alts Provides: mutt-ics Provides: mutt_ics BuildArch: noarch @@ -59,11 +60,8 @@ exit_code=0 %python_exec mutt_ics/mutt_ics.py samples/3.ics | grep Organizer || exit_code=3 exit $exit_code -%post -%python_install_alternative mutt-ics - -%postun -%python_uninstall_alternative mutt-ics +%pre +%python_libalternatives_reset_alternative mutt-ics %files %{python_files} %doc README.md