Hello community,

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

Package is "python-ptr"

Tue May 19 14:49:17 2020 rev:3 rq:807042 version:20.2.26

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ptr/python-ptr.changes    2020-03-18 
12:52:08.417201512 +0100
+++ /work/SRC/openSUSE:Factory/.python-ptr.new.2738/python-ptr.changes  
2020-05-19 14:49:18.612179984 +0200
@@ -1,0 +2,5 @@
+Mon May 18 20:14:18 UTC 2020 - Matej Cepl <mc...@suse.com>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ptr.spec ++++++
--- /var/tmp/diff_new_pack.9iEA2G/_old  2020-05-19 14:49:19.200181288 +0200
+++ /var/tmp/diff_new_pack.9iEA2G/_new  2020-05-19 14:49:19.204181297 +0200
@@ -29,6 +29,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # Conflicts on site-packages/ptr.py
 Conflicts:      python-pytest-runner
 BuildArch:      noarch
@@ -47,15 +49,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/ptr
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python 
%{buildroot}%{_bindir}/ptr --help
 %python_exec setup.py test
 
+%post
+%python_install_alternative ptr
+
+%postun
+%python_uninstall_alternative ptr
+
 %files %{python_files}
 %doc CHANGES.md README.md
-%python3_only %{_bindir}/ptr
+%python_alternative %{_bindir}/ptr
 %{python_sitelib}/*
 
 %changelog


Reply via email to