Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-memory_profiler"

Wed Jun  4 20:29:59 2025 rev:9 rq:1282790 version:0.57.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
    2025-06-03 17:58:07.661020791 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.16005/python-memory_profiler.changes
 2025-06-04 20:30:18.705354966 +0200
@@ -1,0 +2,5 @@
+Wed Jun  4 13:21:52 UTC 2025 - Nico Krapp <nico.kr...@suse.com>
+
+- fix usage of libalternatives
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-memory_profiler.spec ++++++
--- /var/tmp/diff_new_pack.8DlMQf/_old  2025-06-04 20:30:19.473386812 +0200
+++ /var/tmp/diff_new_pack.8DlMQf/_new  2025-06-04 20:30:19.473386812 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%bcond_without libalternatives
 Name:           python-memory_profiler
 Version:        0.57.0
 Release:        0
@@ -30,11 +31,11 @@
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       alts
 Requires:       python-psutil
-Requires(post): alts
-Requires(postun): alts
 BuildArch:      noarch
 # SECTION tests
 BuildRequires:  %{python_module psutil}
@@ -48,8 +49,7 @@
 module as optional (but highly recommended) dependencies.
 
 %prep
-%setup -q -n memory_profiler-%{version}
-%autopatch -p1
+%autosetup -p1 -n memory_profiler-%{version}
 
 %build
 %pyproject_wheel
@@ -73,11 +73,11 @@
 %python_exec -m memory_profiler test/test_memory_usage.py
 %python_exec -m memory_profiler test/test_precision_import.py
 
-%post
-%python_install_alternative mprof
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative mprof
 
-%postun
-%python_uninstall_alternative mprof
+# post and postun macro call is not needed with only libalternatives
 
 %files %{python_files}
 %doc README.rst

Reply via email to