Hello community,

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

Package is "python-wakeonlan"

Tue May 19 14:46:38 2020 rev:2 rq:806804 version:1.1.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-wakeonlan/python-wakeonlan.changes        
2019-04-01 12:35:26.765830074 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-wakeonlan.new.2738/python-wakeonlan.changes  
    2020-05-19 14:46:40.247837858 +0200
@@ -1,0 +2,5 @@
+Mon May 18 07:25:33 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-wakeonlan.spec ++++++
--- /var/tmp/diff_new_pack.QsPdpY/_old  2020-05-19 14:46:41.375840268 +0200
+++ /var/tmp/diff_new_pack.QsPdpY/_new  2020-05-19 14:46:41.379840277 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-wakeonlan
 #
-# 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
@@ -31,6 +31,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -48,16 +50,23 @@
 %install
 export LANG=en_US.UTF8
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/wakeonlan
 %python_expand %fdupes %{buildroot}/%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF8
 %pytest
 
+%post
+%python_install_alternative wakeonlan
+
+%postun
+%python_uninstall_alternative wakeonlan
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/wakeonlan
+%python_alternative %{_bindir}/wakeonlan
 %{python_sitelib}/*
 
 %changelog


Reply via email to