From 028cc03253ccb6144a6d6a600db5ccb9ab636045406c0a33d7965ab330c8fe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 09:40:54 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kismetdb?expand=0&rev=8 --- python-kismetdb.changes | 5 +++++ python-kismetdb.spec | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/python-kismetdb.changes b/python-kismetdb.changes index 5aa041f..74d6191 100644 --- a/python-kismetdb.changes +++ b/python-kismetdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 09:38:54 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri May 30 09:31:46 UTC 2025 - Markéta Machová diff --git a/python-kismetdb.spec b/python-kismetdb.spec index 1b67bab..3ad7ddf 100644 --- a/python-kismetdb.spec +++ b/python-kismetdb.spec @@ -18,6 +18,7 @@ %define binaries kismet_log_devices_to_filebeat_json kismet_log_to_pcap kismet_log_to_csv kismet_log_devices_to_json kismet_log_to_kml +%bcond_without libalternatives %define pkg_version 2019.5.5 Name: python-kismetdb Version: 2019.05.05 @@ -29,12 +30,12 @@ Source: https://github.com/kismetwireless/python-kismet-db/archive/%{ver BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-python-dateutil Requires: python-simplekml -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -58,14 +59,9 @@ done # tests are disabled for now since those need a docker environment for testing #%%pytest -%post +%pre for b in %{binaries}; do - %python_install_alternative $b -done - -%postun -for b in %{binaries}; do - %python_uninstall_alternative $b + %python_libalternatives_reset_alternative $b done %files %{python_files}