Hello community,
here is the log from the commit of package python-memory_profiler for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:09:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-memory_profiler (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-memory_profiler.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-memory_profiler"
Thu May 28 20:09:57 2020 rev:13 rq:809219 version:0.57.0
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-memory_profiler/python-memory_profiler.changes
2020-03-09 18:08:47.828975694 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-memory_profiler.new.3606/python-memory_profiler.changes
2020-05-28 20:09:58.466966547 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:46 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-memory_profiler.spec ++++++
--- /var/tmp/diff_new_pack.svrYkd/_old 2020-05-28 20:09:58.910967868 +0200
+++ /var/tmp/diff_new_pack.svrYkd/_new 2020-05-28 20:09:58.910967868 +0200
@@ -32,6 +32,8 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-psutil
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION tests
BuildRequires: %{python_module psutil}
@@ -53,6 +55,7 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/mprof
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand chmod -x
%{buildroot}%{$python_sitelib}/memory_profiler-%{version}-py%{$python_bin_suffix}.egg-info/*
@@ -71,10 +74,16 @@
%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
+
+%postun
+%python_uninstall_alternative mprof
+
%files %{python_files}
%doc README.rst
%license COPYING
-%python3_only %{_bindir}/mprof
+%python_alternative %{_bindir}/mprof
%{python_sitelib}/*
%changelog