Hello community,

here is the log from the commit of package python-xerox for openSUSE:Factory 
checked in at 2020-05-16 22:27:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xerox (Old)
 and      /work/SRC/openSUSE:Factory/.python-xerox.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xerox"

Sat May 16 22:27:01 2020 rev:2 rq:805892 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xerox/python-xerox.changes        
2019-08-13 13:25:29.065351754 +0200
+++ /work/SRC/openSUSE:Factory/.python-xerox.new.2738/python-xerox.changes      
2020-05-16 22:27:04.773364896 +0200
@@ -1,0 +2,5 @@
+Fri May 15 12:57:05 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-xerox.spec ++++++
--- /var/tmp/diff_new_pack.l9Voqx/_old  2020-05-16 22:27:05.765366933 +0200
+++ /var/tmp/diff_new_pack.l9Voqx/_new  2020-05-16 22:27:05.765366933 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xerox
 #
-# 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
@@ -12,7 +12,8 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,20 +21,21 @@
 Name:           python-xerox
 Version:        0.4.1
 Release:        0
-License:        MIT
 Summary:        Simple Copy + Paste in Python
-Url:            http://github.com/kennethreitz/xerox
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://github.com/kennethreitz/xerox
 Source:         
https://files.pythonhosted.org/packages/source/x/xerox/xerox-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildRequires:  xclip
 BuildRequires:  xvfb-run
 Requires:       xclip
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -47,15 +49,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/xerox
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_expand xvfb-run $python -m pytest
 
+%post
+%python_install_alternative xerox
+
+%postun
+%python_uninstall_alternative xerox
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/xerox
+%python_alternative %{_bindir}/xerox
 %{python_sitelib}/*
 
 %changelog


Reply via email to