From a02f898dcba65a2b68d26bb9d072d1ec860c4f44de4e9742b29aec0e3a3b4470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:54:46 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sge-pygame?expand=0&rev=14 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-sge-pygame.changes | 64 +++++++++++++++++++++++++++++++++++++++ python-sge-pygame.spec | 61 +++++++++++++++++++++++++++++++++++++ sge-1.7.1.tar.gz | 3 ++ 5 files changed, 152 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sge-pygame.changes create mode 100644 python-sge-pygame.spec create mode 100644 sge-1.7.1.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-sge-pygame.changes b/python-sge-pygame.changes new file mode 100644 index 0000000..59ae2be --- /dev/null +++ b/python-sge-pygame.changes @@ -0,0 +1,64 @@ +------------------------------------------------------------------- +Thu Jun 12 10:52:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue May 11 12:24:03 UTC 2021 - Markéta Machová + +- Skip python36 because pygame skipped it + +------------------------------------------------------------------- +Mon May 3 23:18:04 UTC 2021 - Ferdinand Thiessen + +- Update to version 1.7.1 + * Fix incompatibility with Pygame 2 + +------------------------------------------------------------------- +Sun Sep 13 14:00:35 UTC 2020 - Martin Hauke + +- Update to version 1.7 + Specification additions: + * sge.gfx.Font.linesize + * sge.gfx.Sprite.size + Specification misc changes: + * Added an outline and outline_thickness argument to + sge.gfx.Sprite.draw_text and related methods. + * Added use of an argument by the pixelate transition to control + rate of pixelation updates. + * Specified that extending sge.s with additional string variables + is allowed. + * Removed the warning about use of MP3 files in the documentation + since MP3 patents expired a couple years ago. + Specification bugfixes: + * Missing documentation for sge.gfx.Sprite.get_spritelist + * Missing documentation for sge.gfx.Color.__init__ + * sge.gfx.Sprite.scale docs talking about rotation rather than + scaling +- Update to version 1.7 + Specification additions: + * sge.s.isometric + * sge.s.orthogonal + * sge.gfx.Sprite.get_spritelist + Specification misc changes: + * Full name changed from "SGE Game Engine" to "Seclusion Game Engine" + Specification bugfixes: + * Misspelling of "backgrounds" as "bckgrounds" + +------------------------------------------------------------------- +Wed Dec 5 19:35:36 UTC 2018 - mardnh@gmx.de + +- Update to version 1.5.1 + * Made the uniseg dependency optional. + * Altered the way fonts are handled. + +------------------------------------------------------------------- +Thu Jul 26 15:01:55 UTC 2018 - jengelh@inai.de + +- Trim bias from description, add a few mentions of what "details" + SGE takes care of. + +------------------------------------------------------------------- +Sat Jul 21 21:33:19 UTC 2018 - mardnh@gmx.de + +- Initial package, version 1.5 diff --git a/python-sge-pygame.spec b/python-sge-pygame.spec new file mode 100644 index 0000000..0bd8c67 --- /dev/null +++ b/python-sge-pygame.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-sge-pygame +# +# 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/ +# + + +Name: python-sge-pygame +Version: 1.7.1 +Release: 0 +Summary: A 2-D game engine for Python +License: LGPL-3.0-or-later +Group: Development/Languages/Python +URL: https://python-sge.github.io +Source: https://files.pythonhosted.org/packages/source/s/sge/sge-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pygame >= 1.9.1 +Requires: python-six >= 1.4.0 +Requires: python-uniseg +BuildArch: noarch +%python_subpackages + +%description +The SGE Game Engine is a general-purpose 2-D game engine. It takes +care of several details, such as window size management, collision +detection, parallax scrolling, image transformation. + +This implementation of the SGE uses Pygame as a backend. + +%prep +%setup -q -n sge-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README README.pygame WHATSNEW WHATSNEW.pygame +%license sge/COPYING sge/COPYING.LESSER +%{python_sitelib}/sge +%{python_sitelib}/sge-%{version}*-info + +%changelog diff --git a/sge-1.7.1.tar.gz b/sge-1.7.1.tar.gz new file mode 100644 index 0000000..8f4f777 --- /dev/null +++ b/sge-1.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dac82107f7a41419d07fec50d0a3e67d6504680668219d447cf81ea7a7d5bd1 +size 1375640