From 6a67753a78431a0a066383a4c66bbb1ccd82711f Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Jun 05 2025 18:47:32 +0000
Subject: Update python-labels to version 20.1.0 / rev 5 via SR 1283033


https://build.opensuse.org/request/show/1283033
by user mcalabkova + anag_factory
- Convert to libalternatives

---

diff --git a/.files b/.files
index 2ec5004..9873556 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 94d1f64..cc583bd 100644
--- a/.rev
+++ b/.rev
@@ -32,4 +32,12 @@
 </comment>
     <requestid>1281348</requestid>
   </revision>
+  <revision rev="5" vrev="3">
+    <srcmd5>f0d42bf81955ac4744629692b142b9fa</srcmd5>
+    <version>20.1.0</version>
+    <time>1749148502</time>
+    <user>anag_factory</user>
+    <comment>- Convert to libalternatives</comment>
+    <requestid>1283033</requestid>
+  </revision>
 </revisionlist>
diff --git a/python-labels.changes b/python-labels.changes
index 1f35fb3..3d976d6 100644
--- a/python-labels.changes
+++ b/python-labels.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Thu Jun  5 09:25:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
+
+- Convert to libalternatives
+
+-------------------------------------------------------------------
 Fri May 30 09:38:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
 
 - Convert to pip-based build
diff --git a/python-labels.spec b/python-labels.spec
index 5e29dd0..ac94d2e 100644
--- a/python-labels.spec
+++ b/python-labels.spec
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without libalternatives
 Name:           python-labels
 Version:        20.1.0
 Release:        0
@@ -29,12 +30,12 @@ BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
 Requires:       python-attrs
 Requires:       python-click
 Requires:       python-pytoml
 Requires:       python-requests
-Requires(post): alts
-Requires(postun): alts
+BuildRequires:  alts
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module attrs}
@@ -65,11 +66,9 @@ CLI app for managing GitHub labels.
 export LANG=en_US.UTF-8
 %pytest
 
-%post
-%python_install_alternative labels
-
-%postun
-%python_uninstall_alternative labels
+%pre
+# removing old update-alternatives entries
+%python_libalternatives_reset_alternative labels
 
 %files %{python_files}
 %doc README.md