commit python-qrcode for openSUSE:Factory

2020-05-19 Thread root
Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Factory 
checked in at 2020-05-19 14:57:28

Comparing /work/SRC/openSUSE:Factory/python-qrcode (Old)
 and  /work/SRC/openSUSE:Factory/.python-qrcode.new.2738 (New)


Package is "python-qrcode"

Tue May 19 14:57:28 2020 rev:6 rq:807267 version:6.1

Changes:

--- /work/SRC/openSUSE:Factory/python-qrcode/python-qrcode.changes  
2019-03-29 20:42:39.690678256 +0100
+++ /work/SRC/openSUSE:Factory/.python-qrcode.new.2738/python-qrcode.changes
2020-05-19 14:57:31.677273436 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:37 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-qrcode.spec ++
--- /var/tmp/diff_new_pack.2rtImP/_old  2020-05-19 14:57:34.641280009 +0200
+++ /var/tmp/diff_new_pack.2rtImP/_new  2020-05-19 14:57:34.645280018 +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




commit python-qrcode for openSUSE:Factory

2019-03-29 Thread root
Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Factory 
checked in at 2019-03-29 20:42:37

Comparing /work/SRC/openSUSE:Factory/python-qrcode (Old)
 and  /work/SRC/openSUSE:Factory/.python-qrcode.new.25356 (New)


Package is "python-qrcode"

Fri Mar 29 20:42:37 2019 rev:5 rq:689261 version:6.1

Changes:

--- /work/SRC/openSUSE:Factory/python-qrcode/python-qrcode.changes  
2017-06-28 10:37:34.652417421 +0200
+++ /work/SRC/openSUSE:Factory/.python-qrcode.new.25356/python-qrcode.changes   
2019-03-29 20:42:39.690678256 +0100
@@ -1,0 +2,9 @@
+Wed Mar 27 13:04:46 UTC 2019 - pgaj...@suse.com
+
+- version update to 6.1
+  * Fix short chunks of data not being optimized to the correct mode.
+  * Tests fixed for Python 3
+  * Fix optimize length being ignored in ``QRCode.add_data``.
+  * Better calculation of the best mask pattern and related optimizations.
+
+---

Old:

  qrcode-5.3.tar.gz

New:

  qrcode-6.1.tar.gz



Other differences:
--
++ python-qrcode.spec ++
--- /var/tmp/diff_new_pack.4p44iw/_old  2019-03-29 20:42:41.126678211 +0100
+++ /var/tmp/diff_new_pack.4p44iw/_new  2019-03-29 20:42:41.130678211 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-qrcode
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,13 +12,13 @@
 # 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-%{**}}
 Name:   python-qrcode
-Version:5.3
+Version:6.1
 Release:0
 Summary:QR Code image generator
 License:BSD-3-Clause

++ qrcode-5.3.tar.gz -> qrcode-6.1.tar.gz ++
 2118 lines of diff (skipped)




commit python-qrcode for openSUSE:Factory

2017-06-28 Thread root
Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Factory 
checked in at 2017-06-28 10:37:26

Comparing /work/SRC/openSUSE:Factory/python-qrcode (Old)
 and  /work/SRC/openSUSE:Factory/.python-qrcode.new (New)


Package is "python-qrcode"

Wed Jun 28 10:37:26 2017 rev:4 rq:506507 version:5.3

Changes:

--- /work/SRC/openSUSE:Factory/python-qrcode/python-qrcode.changes  
2017-06-05 18:51:35.406663000 +0200
+++ /work/SRC/openSUSE:Factory/.python-qrcode.new/python-qrcode.changes 
2017-06-28 10:37:34.652417421 +0200
@@ -1,0 +2,5 @@
+Tue Jun 27 15:51:30 UTC 2017 - jmate...@suse.com
+
+- pass -s to pytest, to work around bad interaction with older pytest
+
+---



Other differences:
--
++ python-qrcode.spec ++
--- /var/tmp/diff_new_pack.kxrQs9/_old  2017-06-28 10:37:36.040221087 +0200
+++ /var/tmp/diff_new_pack.kxrQs9/_new  2017-06-28 10:37:36.044220521 +0200
@@ -54,7 +54,7 @@
 %fdupes %{buildroot}%{_prefix}
 
 %check
-%python_exec -m pytest qrcode
+%python_exec -m pytest -s qrcode
 
 %files %{python_files}
 %defattr(-,root,root,-)




commit python-qrcode for openSUSE:Factory

2017-06-05 Thread root
Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Factory 
checked in at 2017-06-05 18:51:03

Comparing /work/SRC/openSUSE:Factory/python-qrcode (Old)
 and  /work/SRC/openSUSE:Factory/.python-qrcode.new (New)


Package is "python-qrcode"

Mon Jun  5 18:51:03 2017 rev:3 rq:501164 version:5.3

Changes:

--- /work/SRC/openSUSE:Factory/python-qrcode/python-qrcode.changes  
2015-09-02 00:35:44.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-qrcode.new/python-qrcode.changes 
2017-06-05 18:51:35.406663000 +0200
@@ -1,0 +2,13 @@
+Mon Jun  5 12:38:43 UTC 2017 - jmate...@suse.com
+
+- convert to singlespec
+- make binary python3-only
+- enable tests
+- add proper requirements (fixes boo#1040540)
+- update to 5.3
+  * better support for tty output in python3
+  * --error-correction option
+  * fix incomplete block table for QR version 15
+  * fix BaseImage.get_image
+
+---

Old:

  qrcode-5.1.tar.gz

New:

  qrcode-5.3.tar.gz



Other differences:
--
++ python-qrcode.spec ++
--- /var/tmp/diff_new_pack.cnJ2NZ/_old  2017-06-05 18:51:40.465949839 +0200
+++ /var/tmp/diff_new_pack.cnJ2NZ/_new  2017-06-05 18:51:40.469949276 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-qrcode
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,26 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-qrcode
-Version:5.1
+Version:5.3
 Release:0
 Summary:QR Code image generator
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 Url:https://github.com/lincolnloop/python-qrcode
-Source: 
http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Source: 
https://files.pythonhosted.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
+BuildRequires:  %{python_module Pillow}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:   python-setuptools
+Recommends: python-Pillow
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:  noarch
-%endif
+%python_subpackages
 
 %description
 This module uses the Python Imaging Library (PIL) to allow for the generation
@@ -41,54 +43,24 @@
 
 %prep
 %setup -q -n qrcode-%{version}
+# drop shebang from console_scripts
+sed -i '1s@^#!.*@@' qrcode/console_scripts.py
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%fdupes %{buildroot}%{_prefix}
 
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv -v %{buildroot}%{_bindir}/qr %{buildroot}%{_bindir}/qr-%{py_ver}
-# rename man page too
-mv -v %{buildroot}%{_mandir}/man1/qr.1 
%{buildroot}%{_mandir}/man1/qr-%{py_ver}.1
-
-ln -s -f %{_sysconfdir}/alternatives/qr %{buildroot}%{_bindir}/qr
-ln -s -f %{_sysconfdir}/alternatives/qr.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/qr.1%{?ext_man}
-
-# create a dummy targets for /etc/alternatives
-touch %{buildroot}%{_sysconfdir}/alternatives/qr
-touch %{buildroot}%{_sysconfdir}/alternatives/qr.1%{?ext_man}
-
-# Fix warning about missing +x mode 
-chmod +x %{buildroot}%{python_sitelib}/qrcode/console_scripts.py
-
-%pre
-# Since /usr/bin/qr became ghosted to be used with update-alternatives, we 
have to get rid
-# of the old binary resulting from the non-update-alternativies-ified package:
-[ -h %{_bindir}/qr ] || rm -f %{_bindir}/qr
-[ -h %{_mandir}/man1/qr.1%{?ext_man} ] || rm -f %{_mandir}/man1/qr.1%{?ext_man}
-
-%post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/qr qr %{_bindir}/qr-%{py_ver} 30 \
-   --slave  %{_mandir}/man1/qr.1%{?ext_man} qr.1%{?ext_man} 
%{_mandir}/man1/qr-%{py_ver}.1%{?ext_man}
-
-%postun
-if [ $1 -eq 0 ] ; then
-%_sbindir/update-alternatives --remove qr %{_bindir}/qr-%{py_ver}
-fi
+%check
+%python_exec -m pytest qrcode
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc CHANGES.rst LICENSE 

commit python-qrcode for openSUSE:Factory

2015-09-01 Thread h_root
Hello community,

here is the log from the commit of package python-qrcode for openSUSE:Factory 
checked in at 2015-09-02 00:35:42

Comparing /work/SRC/openSUSE:Factory/python-qrcode (Old)
 and  /work/SRC/openSUSE:Factory/.python-qrcode.new (New)


Package is "python-qrcode"

Changes:

--- /work/SRC/openSUSE:Factory/python-qrcode/python-qrcode.changes  
2015-06-24 20:46:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-qrcode.new/python-qrcode.changes 
2015-09-02 00:35:44.0 +0200
@@ -1,0 +2,7 @@
+Sat Aug 22 07:58:58 UTC 2015 - br...@ioda-net.ch
+
+- Make qr binary alternative ready (preparing for python3 packaging)
+- man1 & qr alternative -py_ver to avoid conflict with python3
+- Fix console_script.py missing +x  
+
+---



Other differences:
--
++ python-qrcode.spec ++
--- /var/tmp/diff_new_pack.OVqZOl/_old  2015-09-02 00:35:44.0 +0200
+++ /var/tmp/diff_new_pack.OVqZOl/_new  2015-09-02 00:35:44.0 +0200
@@ -26,6 +26,8 @@
 Source: 
http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
@@ -46,11 +48,47 @@
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv -v %{buildroot}%{_bindir}/qr %{buildroot}%{_bindir}/qr-%{py_ver}
+# rename man page too
+mv -v %{buildroot}%{_mandir}/man1/qr.1 
%{buildroot}%{_mandir}/man1/qr-%{py_ver}.1
+
+ln -s -f %{_sysconfdir}/alternatives/qr %{buildroot}%{_bindir}/qr
+ln -s -f %{_sysconfdir}/alternatives/qr.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/qr.1%{?ext_man}
+
+# create a dummy targets for /etc/alternatives
+touch %{buildroot}%{_sysconfdir}/alternatives/qr
+touch %{buildroot}%{_sysconfdir}/alternatives/qr.1%{?ext_man}
+
+# Fix warning about missing +x mode 
+chmod +x %{buildroot}%{python_sitelib}/qrcode/console_scripts.py
+
+%pre
+# Since /usr/bin/qr became ghosted to be used with update-alternatives, we 
have to get rid
+# of the old binary resulting from the non-update-alternativies-ified package:
+[ -h %{_bindir}/qr ] || rm -f %{_bindir}/qr
+[ -h %{_mandir}/man1/qr.1%{?ext_man} ] || rm -f %{_mandir}/man1/qr.1%{?ext_man}
+
+%post
+%_sbindir/update-alternatives \
+   --install %{_bindir}/qr qr %{_bindir}/qr-%{py_ver} 30 \
+   --slave  %{_mandir}/man1/qr.1%{?ext_man} qr.1%{?ext_man} 
%{_mandir}/man1/qr-%{py_ver}.1%{?ext_man}
+
+%postun
+if [ $1 -eq 0 ] ; then
+%_sbindir/update-alternatives --remove qr %{_bindir}/qr-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc CHANGES.rst LICENSE README.rst
 %{_bindir}/qr
+%{_bindir}/qr-%{py_ver}
+%{_mandir}/man1/qr.1%{?ext_man}
+%{_mandir}/man1/qr-%{py_ver}.1%{?ext_man}
+%ghost %{_sysconfdir}/alternatives/qr
+%ghost %{_sysconfdir}/alternatives/qr.1%{?ext_man}
 %{python_sitelib}/*
-%doc %{_mandir}/man1/qr.*
 
 %changelog