Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-ajsonrpc"

Wed Jun  4 20:30:14 2025 rev:5 rq:1282835 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ajsonrpc/python-ajsonrpc.changes  
2025-05-13 20:09:28.096906745 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-ajsonrpc.new.16005/python-ajsonrpc.changes   
    2025-06-04 20:30:30.213832168 +0200
@@ -1,0 +2,5 @@
+Wed Jun  4 15:18:22 UTC 2025 - Nico Krapp <nico.kr...@suse.com>
+
+- Migrate to libalternatives
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ajsonrpc.spec ++++++
--- /var/tmp/diff_new_pack.v9Ncn0/_old  2025-06-04 20:30:30.737853897 +0200
+++ /var/tmp/diff_new_pack.v9Ncn0/_new  2025-06-04 20:30:30.741854063 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without libalternatives
 Name:           python-ajsonrpc
 Version:        1.2.0
 Release:        0
@@ -27,8 +28,10 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
 BuildArch:      noarch
 %python_subpackages
 
@@ -36,7 +39,7 @@
 Async JSON-RPC 2.0 protocol + server powered by asyncio.
 
 %prep
-%setup -q -n ajsonrpc-%{version}
+%autosetup -p1 -n ajsonrpc-%{version}
 
 %build
 %pyproject_wheel
@@ -49,11 +52,11 @@
 %check
 %pytest
 
-%post
-%python_install_alternative async-json-rpc-server
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative async-json-rpc-server
 
-%postun
-%python_uninstall_alternative async-json-rpc-server
+# post and postun macro call is not needed with only libalternatives
 
 %files %{python_files}
 %doc README.md

Reply via email to