From 801ae50b9dbe853cf67bf355e31f74ba9be6cb7f7dc9ed20b33be8d5ab7b1aea Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 29 Feb 2024 15:39:31 +0000 Subject: [PATCH] Accepting request 1153209 from home:dimstar:Factory This might make sense here? python cli/lib to create swiss QR Bills OBS-URL: https://build.opensuse.org/request/show/1153209 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qrbill?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-qrbill.changes | 4 +++ python-qrbill.spec | 77 +++++++++++++++++++++++++++++++++++++++++++ qrbill-1.1.0.tar.gz | 3 ++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-qrbill.changes create mode 100644 python-qrbill.spec create mode 100644 qrbill-1.1.0.tar.gz 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/python-qrbill.changes b/python-qrbill.changes new file mode 100644 index 0000000..62f005f --- /dev/null +++ b/python-qrbill.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Feb 24 15:38:09 UTC 2024 - Dominique Leuenberger + +- Initial package, version 1.1.0. diff --git a/python-qrbill.spec b/python-qrbill.spec new file mode 100644 index 0000000..9affcbe --- /dev/null +++ b/python-qrbill.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-qrbill +# +# Copyright (c) 2024 SUSE LLC +# +# 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/ +# + + +Name: python-qrbill +Version: 1.1.0 +Release: 0 +Summary: A library to generate Swiss QR-bill payment slips +License: MIT +URL: https://github.com/claudep/swiss-qr-bill/ +Source: https://files.pythonhosted.org/packages/source/q/qrbill/qrbill-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module iso3166} +BuildRequires: %{python_module python-stdnum >= 1.13} +BuildRequires: %{python_module qrcode} +BuildRequires: %{python_module svgwrite} +# /SECTION +BuildRequires: fdupes +Requires: python-iso3166 +Requires: python-python-stdnum >= 1.13 +Requires: python-qrcode +Requires: python-svgwrite +BuildArch: noarch +Requires(pre): update-alternatives +Requires(post): update-alternatives +%python_subpackages + +%description +A library to generate Swiss QR-bill payment slips + +%prep +%autosetup -p1 -n qrbill-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/qrbill +%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}/%{$python_sitelib} $python tests/test_qrbill.py + +%post +%python_install_alternative qrbill + +%postun +%python_uninstall_alternative qrbill + +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license LICENSE.TXT +%python_alternative %{_bindir}/qrbill +%{python_sitelib}/qrbill +%{python_sitelib}/qrbill-%{version}.dist-info + +%changelog diff --git a/qrbill-1.1.0.tar.gz b/qrbill-1.1.0.tar.gz new file mode 100644 index 0000000..58f1c5f --- /dev/null +++ b/qrbill-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea2b09f48c1f1f8144358a67b1e5c60d91a7f7c50f5446005fd2d34e6c1a48ce +size 23036