Hello community,

here is the log from the commit of package python-dukpy for openSUSE:Factory 
checked in at 2020-05-28 09:17:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dukpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-dukpy.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dukpy"

Thu May 28 09:17:45 2020 rev:4 rq:809401 version:0.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dukpy/python-dukpy.changes        
2019-03-19 09:58:31.884099613 +0100
+++ /work/SRC/openSUSE:Factory/.python-dukpy.new.3606/python-dukpy.changes      
2020-05-28 09:17:46.497028223 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:47 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-dukpy.spec ++++++
--- /var/tmp/diff_new_pack.lw9vgK/_old  2020-05-28 09:17:47.077029592 +0200
+++ /var/tmp/diff_new_pack.lw9vgK/_new  2020-05-28 09:17:47.081029602 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dukpy
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,7 +23,7 @@
 Summary:        JavaScript interpreter for Python
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/amol-/dukpy
+URL:            https://github.com/amol-/dukpy
 Source:         https://github.com/amol-/dukpy/archive/%{version}.tar.gz
 Patch0:         pytest.patch
 BuildRequires:  %{python_module devel}
@@ -33,8 +33,9 @@
 BuildRequires:  %{python_module webassets}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-webassets
-
 %python_subpackages
 
 %description
@@ -63,16 +64,26 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/dukpy
+%python_clone -a %{buildroot}%{_bindir}/dukpy-install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
 %python_expand 
PYTHONPATH="%{buildroot}%{$python_sitearch}:%{buildroot}%{$python_sitearch}/dukpy"
 py.test-%{$python_bin_suffix} -v
 
+%post
+%python_install_alternative dukpy
+%python_install_alternative dukpy-install
+
+%postun
+%python_uninstall_alternative dukpy
+%python_uninstall_alternative dukpy-install
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/dukpy-install
-%python3_only %{_bindir}/dukpy
+%python_alternative %{_bindir}/dukpy-install
+%python_alternative %{_bindir}/dukpy
 %{python_sitearch}/*
 
 %changelog


Reply via email to