Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-blockdiag for 
openSUSE:Factory checked in at 2025-06-04 20:30:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-blockdiag (Old)
 and      /work/SRC/openSUSE:Factory/.python-blockdiag.new.16005 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-blockdiag"

Wed Jun  4 20:30:13 2025 rev:12 rq:1282830 version:3.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-blockdiag/python-blockdiag.changes        
2025-05-15 17:02:55.898117906 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-blockdiag.new.16005/python-blockdiag.changes 
    2025-06-04 20:30:29.601806790 +0200
@@ -1,0 +2,5 @@
+Wed Jun  4 14:58:34 UTC 2025 - Nico Krapp <nico.kr...@suse.com>
+
+- fix usage of libalternatives
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-blockdiag.spec ++++++
--- /var/tmp/diff_new_pack.Kut9t7/_old  2025-06-04 20:30:30.097827358 +0200
+++ /var/tmp/diff_new_pack.Kut9t7/_new  2025-06-04 20:30:30.097827358 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without libalternatives
 %{?sle15_python_module_pythons}
 Name:           python-blockdiag
 Version:        3.0.0
@@ -37,14 +38,14 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module webcolors}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
 Requires:       python-Pillow >= 3
 Requires:       python-funcparserlib >= 1.0.0~a0
 Requires:       python-setuptools
 Requires:       python-webcolors
-Requires(post): alts
-Requires(preun): alts
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module docutils}
@@ -73,11 +74,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %python_clone -a %{buildroot}%{_bindir}/blockdiag
 
-%post
-%python_install_alternative blockdiag
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative blockdiag
 
-%postun
-%python_uninstall_alternative blockdiag
+# post and postun macro call is not needed with only libalternatives
 
 %check
 pushd src

Reply via email to