From 33cdcdd2f7a219dfa0d78da8a709d0ee8f06f071ea80c8788c65a4c7eef77221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:25:57 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-progressbar?expand=0&rev=25 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + progressbar-2.5.tar.gz | 3 ++ python-progressbar.changes | 79 ++++++++++++++++++++++++++++++++++++++ python-progressbar.spec | 55 ++++++++++++++++++++++++++ 5 files changed, 161 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 progressbar-2.5.tar.gz create mode 100644 python-progressbar.changes create mode 100644 python-progressbar.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/progressbar-2.5.tar.gz b/progressbar-2.5.tar.gz new file mode 100644 index 0000000..4a0d4b5 --- /dev/null +++ b/progressbar-2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d81cb529da2e223b53962afd6c8ca0f05c6670e40309a7219eacc36af9b6c63 +size 10046 diff --git a/python-progressbar.changes b/python-progressbar.changes new file mode 100644 index 0000000..9e53b36 --- /dev/null +++ b/python-progressbar.changes @@ -0,0 +1,79 @@ +------------------------------------------------------------------- +Tue Jun 3 12:25:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Sun Jul 2 11:18:04 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Dec 4 12:51:43 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Oct 11 15:18:59 UTC 2018 - Todd R + +- Update to version 2.5 + * fix issue with recursive import and mixed tabs with spaces + * Add support for python3.6 + * Don't use `sys.stderr` as a default value +- Drop progressbar-python3-relative-imports.patch + It is included upstream + +------------------------------------------------------------------- +Thu Aug 31 17:13:34 UTC 2017 - toddrme2178@gmail.com + +- Use progressbar-python3-relative-imports.patch on python2 and + python3 since it is compatible with both. +- Make progressbar-python3-relative-imports.patch simpler. + +------------------------------------------------------------------- +Thu Aug 24 13:49:59 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Thu Oct 24 11:10:20 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Mon Nov 5 22:20:32 UTC 2012 - saschpe@suse.de + +- Update to 2.3+hg20121105.3c94a3a1ebe1 + + See mercurial changes + +------------------------------------------------------------------- +Wed May 23 02:44:33 UTC 2012 - highwaystar.ru@gmail.com + +- python3 package added +- slight spec improvement + +------------------------------------------------------------------- +Tue Jan 31 14:53:57 UTC 2012 - cfarrell@suse.com + +- license update: LGPL-2.1+ or BSD-3-Clause + Look at License.txt + +------------------------------------------------------------------- +Tue Jan 31 13:43:19 UTC 2012 - saschpe@suse.de + +- Add a %changelog line + +------------------------------------------------------------------- +Tue Jan 31 13:00:34 UTC 2012 - saschpe@suse.de + +- Spec file cleanup: + * Simplified macro mania + * Removed unused build requirements + * Set license to SDPX style (LGPL-3.0+) + +------------------------------------------------------------------- +Thu Jun 16 20:08:05 CET 2011 - pascal.bleser@opensuse.org + +- initial version (2.3) + + diff --git a/python-progressbar.spec b/python-progressbar.spec new file mode 100644 index 0000000..01a4f1a --- /dev/null +++ b/python-progressbar.spec @@ -0,0 +1,55 @@ +# +# spec file for package python-progressbar +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-progressbar +Version: 2.5 +Release: 0 +Summary: Text Progressbar Library for Python +License: BSD-3-Clause OR LGPL-2.1-or-later +Group: Development/Libraries/Python +URL: https://github.com/niltonvolpato/python-progressbar +Source: https://files.pythonhosted.org/packages/source/p/progressbar/progressbar-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +This library provides a text mode progressbar. This is tipically used to +display the progress of a long running operation, providing a visual clue that +processing is underway. + +%prep +%setup -q -n progressbar-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%files %{python_files} +%doc README.txt examples.py +%license LICENSE.txt +%{python_sitelib}/progressbar/ +%{python_sitelib}/progressbar-%{version}*-info + +%changelog