pygame 2.1.3-1 (aarch64;znver1;x86_64) 2023-17285
0

Status rejected
Submitter mandian [@T] tutanota.com
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/291215
Packages
python-pygame-2.1.3-1.aarch64.binary
python-pygame-2.1.3-1.aarch64.source
python-pygame-debuginfo-2.1.3-1.aarch64.debuginfo
python-pygame-debugsource-2.1.3-1.aarch64.binary
python-pygame-devel-2.1.3-1.aarch64.binary
python-pygame-doc-2.1.3-1.aarch64.binary
python-pygame-2.1.3-1.znver1.source
python-pygame-2.1.3-1.znver1.binary
python-pygame-debuginfo-2.1.3-1.znver1.debuginfo
python-pygame-debugsource-2.1.3-1.znver1.binary
python-pygame-devel-2.1.3-1.znver1.binary
python-pygame-doc-2.1.3-1.znver1.binary
python-pygame-2.1.3-1.x86_64.source
python-pygame-2.1.3-1.x86_64.binary
python-pygame-debuginfo-2.1.3-1.x86_64.debuginfo
python-pygame-debugsource-2.1.3-1.x86_64.binary
python-pygame-devel-2.1.3-1.x86_64.binary
python-pygame-doc-2.1.3-1.x86_64.binary
Build Date 2023-02-20 22:27:06 +0000 UTC
Last Updated 2023-02-21 14:05:20.984273103 +0000 UTC
$ git diff --patch-with-stat --summary 754a9ac610aba1d62c2440dabdf77e43a61935c4..48ffd04e0cd30a0cb8252d2f1e3e9df06aa1f6d6

 .abf.yml        |  3 +--
 check-update.sh |  5 -----
 pygame.spec     | 32 +++++++++++++-------------------
 3 files changed, 14 insertions(+), 26 deletions(-)
 delete mode 100755 check-update.sh

diff --git a/.abf.yml b/.abf.yml
index 8fb2e08..4ea6e43 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,3 +1,2 @@
 sources:
-  pygame-1.9.1release.tar.gz: a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa
-  pygame-2.1.2.tar.gz: a6f174020ad12c04f09ad7b42a3f6823ad27dd87
+  pygame-2.1.3.tar.gz: e8f0014161040e956c12fec4e50cdc382b842378
diff --git a/check-update.sh b/check-update.sh
deleted file mode 100755
index 1988e59..0000000
--- a/check-update.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-py_module=pygame
-curl https://pypi.org/project/${py_module}/ 2>/dev/null |grep -A1 "package-header__name" |sed -ne "s,.*${py_module} ,,p"
-
-
diff --git a/pygame.spec b/pygame.spec
index 6919498..0687d2e 100644
--- a/pygame.spec
+++ b/pygame.spec
@@ -1,24 +1,17 @@
-#%%define debug_package %{nil}
-%global module pygame
-%global mod %(m=%{module}; echo ${m:0:1})
-
 Summary:	Python module for interfacing with the SDL multimedia library
-Name:		%{module}
-Version:	2.1.2
+Name:		python-pygame
+Version:	2.1.3
 Release:	1
-Source0:	https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
-#Source0:	https://pypi.io/packages/source/%{mod}/%{module}/%{module}-%{version}.tar.gz
-#Source100:	%{name}.rpmlintrc
-#Patch0:		pygame-1.9.1-config.patch
+Source0:	https://pypi.io/packages/source/p/pygame/pygame-%{version}.tar.gz
 License:	LGPLv2+
 Group:		System/Libraries
 URL:		http://pygame.org/
 
 BuildRequires:	pkgconfig(python3)
 BuildRequires:	python3dist(cython)
-#BuildRequires:	python3dist(pip)
+BuildRequires:	python3dist(pip)
 BuildRequires:	python3dist(setuptools)
-#BuildRequires:	python3dist(wheel)
+BuildRequires:	python3dist(wheel)
 BuildRequires:	portmidi-devel
 BuildRequires:	pkgconfig(freetype2)
 BuildRequires:  pkgconfig(libjpeg)
@@ -32,8 +25,8 @@ BuildRequires:	smpeg-devel
 BuildRequires:	fonts-ttf-freefont
 
 Requires:	fonts-ttf-freefont
-#Provides:	python-pygame
 
+%rename	pygame
 
 %description
 pygame is a Python wrapper module for the SDL multimedia library,
@@ -48,8 +41,8 @@ the python language.
 
 %files
 %doc README.rst
-%{py_platsitedir}/%{module}
-%{py_platsitedir}/%{module}-%{version}-py%{py_ver}.egg-info
+%{py_platsitedir}/pygame
+%{py_platsitedir}/pygame-%{version}-*.*-info
 
 #---------------------------------------------------------------------------
 
@@ -89,17 +82,18 @@ the pySDL wrapper project, written by Mark Baker.
 Install the devel package if you want to build programs with pygame.
 
 %files devel
-%{_includedir}/python%{py_ver}/%{name}/
+%{_includedir}/python%{py_ver}/pygame/
 
 #---------------------------------------------------------------------------
 
 %prep
-%autosetup -p1 -n %{module}-%{version}
+export LC_ALL=C.utf-8
+%autosetup -p1 -n pygame-%{version}
 
 # Drop pre-compiled Cython sources
 rm $(grep -rl '/\* Generated by Cython')
 
-%__python3 buildconfig/config.py
+%__python buildconfig/config.py
 perl -pi -e 's|^(SDL = .*)|$1 -lm|;' Setup
 
 # remove non-free stuff
@@ -112,5 +106,5 @@ rm -f src_c/ffmovie.[ch]
 %py_install
 
 # use system font
-ln -fs /usr/share/fonts/TTF/FreeSansBold.ttf %{buildroot}%{py3_platsitedir}/%{module}/freesansbold.ttf
+ln -fs /usr/share/fonts/TTF/FreeSansBold.ttf %{buildroot}%{py3_platsitedir}/pygame/freesansbold.ttf
 
Not Available

benbullard79 [@T] cox.netNo Comment.640d 19hrs