Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jfscripts for
openSUSE:Factory checked in at 2025-06-10 09:07:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jfscripts (Old)
and /work/SRC/openSUSE:Factory/.python-jfscripts.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jfscripts"
Tue Jun 10 09:07:02 2025 rev:5 rq:1284031 version:1.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jfscripts/python-jfscripts.changes
2025-06-02 22:00:43.529631551 +0200
+++
/work/SRC/openSUSE:Factory/.python-jfscripts.new.19631/python-jfscripts.changes
2025-06-10 09:09:43.786458339 +0200
@@ -1,0 +2,5 @@
+Mon Jun 9 09:02:36 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jfscripts.spec ++++++
--- /var/tmp/diff_new_pack.MHiTqW/_old 2025-06-10 09:09:44.290479182 +0200
+++ /var/tmp/diff_new_pack.MHiTqW/_new 2025-06-10 09:09:44.294479347 +0200
@@ -17,6 +17,7 @@
#
+%bcond_without libalternatives
Name: python-jfscripts
Version: 1.1.0
Release: 0
@@ -28,12 +29,12 @@
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module wheel}
+BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: alts
Requires: python-termcolor
Requires: python-typing-extensions
-Requires(post): alts
-Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -69,23 +70,15 @@
#%%check
# Upstream does not provide any tests
-%post
-%python_install_alternative dns-ipv6-prefix
-%python_install_alternative extract-pdftext
-%python_install_alternative find-dupes-by-size
-%python_install_alternative image-into-pdf
-%python_install_alternative list-files
-%python_install_alternative mac-to-eui64
-%python_install_alternative pdf-compress
-
-%postun
-%python_uninstall_alternative dns-ipv6-prefix
-%python_uninstall_alternative extract-pdftext
-%python_uninstall_alternative find-dupes-by-size
-%python_uninstall_alternative image-into-pdf
-%python_uninstall_alternative list-files
-%python_uninstall_alternative mac-to-eui64
-%python_uninstall_alternative pdf-compress
+%pre
+# removing old update-alternatives entries
+%python_libalternatives_reset_alternative dns-ipv6-prefix
+%python_libalternatives_reset_alternative extract-pdftext
+%python_libalternatives_reset_alternative find-dupes-by-size
+%python_libalternatives_reset_alternative image-into-pdf
+%python_libalternatives_reset_alternative list-files
+%python_libalternatives_reset_alternative mac-to-eui64
+%python_libalternatives_reset_alternative pdf-compress
%files %{python_files}
%license LICENSE