Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2020-05-26 17:23:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and      /work/SRC/openSUSE:Factory/.python-memory_profiler.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-memory_profiler"

Tue May 26 17:23:13 2020 rev:7 rq:808679 version:0.57.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
    2020-01-22 22:47:03.740599539 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.2738/python-memory_profiler.changes
  2020-05-26 17:23:19.632491652 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:46 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-memory_profiler.spec ++++++
--- /var/tmp/diff_new_pack.AMV1r0/_old  2020-05-26 17:23:20.144492753 +0200
+++ /var/tmp/diff_new_pack.AMV1r0/_new  2020-05-26 17:23:20.148492761 +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


Reply via email to