From 3ac546dd0cf7c495434c506bf0469e7f6e20fb20 Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Jun 10 2025 08:11:12 +0000
Subject: Update python-extratools to version 0.8.2.1 / rev 6 via SR 1284204


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

---

diff --git a/.files b/.files
index 9eb39b4..be87de8 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 4c95d9a..15b3068 100644
--- a/.rev
+++ b/.rev
@@ -40,4 +40,12 @@
     <comment>- Convert to pip-based build</comment>
     <requestid>1280515</requestid>
   </revision>
+  <revision rev="6" vrev="4">
+    <srcmd5>88478d5148b557028883d51a70baf243</srcmd5>
+    <version>0.8.2.1</version>
+    <time>1749539283</time>
+    <user>anag_factory</user>
+    <comment>- Convert to libalternatives</comment>
+    <requestid>1284204</requestid>
+  </revision>
 </revisionlist>
diff --git a/python-extratools.changes b/python-extratools.changes
index 0ecdf84..bd1edbc 100644
--- a/python-extratools.changes
+++ b/python-extratools.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Jun  9 13:56:39 UTC 2025 - Markéta Machová <mmachova@suse.com>
+
+- Convert to libalternatives
+
+-------------------------------------------------------------------
 Tue May 27 10:25:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
 
 - Convert to pip-based build
diff --git a/python-extratools.spec b/python-extratools.spec
index fea727d..803354e 100644
--- a/python-extratools.spec
+++ b/python-extratools.spec
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without libalternatives
 Name:           python-extratools
 Version:        0.8.2.1
 Release:        0
@@ -27,15 +28,15 @@ Source:         https://files.pythonhosted.org/packages/source/e/extratools/extr
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
 Requires:       python-RegexOrder >= 0.2
 Requires:       python-TagStats >= 0.1.2
 Requires:       python-sh >= 1.12.13
 Requires:       python-sortedcontainers >= 1.5.10
 Requires:       python-toolz >= 0.9.0
-Requires(post): alts
-Requires(postun): alts
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module RegexOrder >= 0.2}
@@ -67,15 +68,10 @@ chmod a-x extratools/*/*.js
 %python_clone -a %{buildroot}%{_bindir}/extratools-flatten
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%post
-%python_install_alternative extratools-teststats
-%python_install_alternative extratools-remap
-%python_install_alternative extratools-flatten
-
-%postun
-%python_uninstall_alternative extratools-teststats
-%python_uninstall_alternative extratools-remap
-%python_uninstall_alternative extratools-flatten
+%pre
+%python_libalternatives_reset_alternative extratools-teststats
+%python_libalternatives_reset_alternative extratools-remap
+%python_libalternatives_reset_alternative extratools-flatten
 
 %files %{python_files}
 %doc README.md