Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Leap:15.2 
checked in at 2020-05-28 20:08:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-qrcode (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-qrcode.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-qrcode"

Thu May 28 20:08:10 2020 rev:12 rq:807323 version:6.1

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-qrcode/python-qrcode.changes    
2020-03-02 13:21:56.878230227 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-qrcode.new.3606/python-qrcode.changes  
2020-05-28 20:08:11.246647398 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:37 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-qrcode.spec ++++++
--- /var/tmp/diff_new_pack.Fa9gP8/_old  2020-05-28 20:08:11.610648482 +0200
+++ /var/tmp/diff_new_pack.Fa9gP8/_new  2020-05-28 20:08:11.610648482 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-qrcode
 #
-# 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:        QR Code image generator
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/lincolnloop/python-qrcode
+URL:            https://github.com/lincolnloop/python-qrcode
 Source:         
https://files.pythonhosted.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
 BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module mock}
@@ -32,8 +32,9 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-Pillow
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 %python_subpackages
 
@@ -51,16 +52,24 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_mandir}/man1/qr.1
+%python_clone -a %{buildroot}%{_bindir}/qr
 %fdupes %{buildroot}%{_prefix}
 
 %check
-%python_exec -m pytest -s qrcode
+%pytest -s qrcode
+
+%post
+%python_install_alternative qr qr.1
+
+%postun
+%python_uninstall_alternative qr qr.1
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc CHANGES.rst LICENSE README.rst
-%python3_only %{_bindir}/qr
-%python3_only %{_mandir}/man1/qr.1%{?ext_man}
+%license LICENSE
+%doc CHANGES.rst README.rst
+%python_alternative %{_bindir}/qr
+%python_alternative %{_mandir}/man1/qr.1%{?ext_man}
 %{python_sitelib}/*
 
 %changelog


Reply via email to