From a996cca30ce3c9abb2f88c26e0cd721bd16ff9ef2f4a47ea565c37dc56c09109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Mar 2019 12:34:04 +0000 Subject: [PATCH] Accepting request 688700 from home:mcepl:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/688700 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + 1.3.0.tar.gz | 3 ++ python-PyQRCode.changes | 26 ++++++++++++++ python-PyQRCode.spec | 77 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.3.0.tar.gz create mode 100644 python-PyQRCode.changes create mode 100644 python-PyQRCode.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.3.0.tar.gz b/1.3.0.tar.gz new file mode 100644 index 0000000..d424346 --- /dev/null +++ b/1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebfee5759ffcd54fb792c76f5043f8380d483001f2bf28b899cd7ab5e1609eac +size 75525 diff --git a/python-PyQRCode.changes b/python-PyQRCode.changes new file mode 100644 index 0000000..73929c0 --- /dev/null +++ b/python-PyQRCode.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Mon Mar 25 17:35:15 CET 2019 - Matej Cepl + +- Upgrade to 1.3.0 (from https://github.com/heuer/pyqrcode/): + - Added support for meCards etc. contributed by Riccardo Metere + - Skip detecting content type if constructor mode is given to + constructor. Contributed by Martijn van Rheenen. + - Moved tests from nose to pytest since nose is deprecated + - Updated test environment: Added PyPy, PyPy3 and Python 3.6 + - QRCode.get_png_size() is deprecated, use + QRCode.symbol_size(). The latter returns a (width, height) + tuple, not an integer. + - Deprecated QRCode.png_as_base64_str(), use + QRCode.png_data_uri() which returns a valid URI instead of + a Base64 encoded string + - Faster PNG generation + - Added CLI + - Added term() method to QRCode which prints the QR Code to the + terminal. This works with Windows and Unix. + - Deprecated QRCode.terminal() in favor of QRCode.term() + - Added "scale" parameter to QRCode.text + +------------------------------------------------------------------- +Mon Mar 25 15:30:58 UTC 2019 - Matěj Cepl + +- Initial packaging of the version 1.2.1 diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec new file mode 100644 index 0000000..8270f32 --- /dev/null +++ b/python-PyQRCode.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-PyQRCode +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define modname PyQRCode +Name: python-PyQRCode +Version: 1.3.0 +Release: 0 +Summary: Python 3 module to generate QR Codes +License: MIT +Group: Development/Languages/Python +URL: https://github.com/mnooner256/pyqrcode +# This is unofficial fork with some additional fixes, the canonical +# upstream repository is dead. +Source: https://github.com/heuer/pyqrcode/archive/%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pypng} +BuildRequires: %{python_module Sphinx} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives +%python_subpackages + +%description +The PyQRCode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created using only two lines of code! + +%prep +%setup -q -n pyqrcode-%{version} +sed -i -e '1{\@^#!/usr/bin/env python@d}' pyqrcode/{cli,qrspecial}.py + + +%build +%python_build +python3 setup.py build_sphinx -v +rm -rvf build/sphinx/html/.buildinfo + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pyqr +%python_expand %fdupes -s %{buildroot}/%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative pyqr + +%postun +%python_uninstall_alternative pyqr + +%files %{python_files} +%license LICENSE +%doc README.rst CHANGES.rst build/sphinx/html +%{_bindir}/pyqr-%{python_bin_suffix} +%python_alternative %{_bindir}/pyqr +%{python_sitelib}/* + +%changelog