Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-PySDL2 for openSUSE:Factory 
checked in at 2021-02-09 21:17:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PySDL2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-PySDL2.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PySDL2"

Tue Feb  9 21:17:18 2021 rev:5 rq:870420 version:0.9.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PySDL2/python-PySDL2.changes      
2020-03-27 22:01:03.090923773 +0100
+++ /work/SRC/openSUSE:Factory/.python-PySDL2.new.28504/python-PySDL2.changes   
2021-02-09 21:17:19.370846292 +0100
@@ -1,0 +2,7 @@
+Mon Feb  8 22:45:09 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- remove duplicate check section: Only the Xvfb version runs
+  without segfaults when loading the SDL libraries. (Except for
+  two flaky Window position and size tests) 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-PySDL2.spec ++++++
--- /var/tmp/diff_new_pack.AjL28I/_old  2021-02-09 21:17:19.886846899 +0100
+++ /var/tmp/diff_new_pack.AjL28I/_new  2021-02-09 21:17:19.886846899 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PySDL2
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# Can't be properly tested without full desktop system
-%bcond_with     test
-%if %{with test}
 %define         X_display         ":98"
-BuildRequires:  %{python_module pytest}
-BuildRequires:  SDL2
-BuildRequires:  SDL2_ttf
-BuildRequires:  xorg-x11-server
-%endif
 Name:           python-PySDL2
 Version:        0.9.7
 Release:        0
@@ -33,13 +25,23 @@
 License:        SUSE-Public-Domain
 URL:            https://github.com/marcusva/py-sdl2
 Source:         
https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  SDL2 >= 2.0.5
+BuildRequires:  SDL2_gfx >= 1.0.3
+BuildRequires:  SDL2_image >= 2.0.1
+BuildRequires:  SDL2_mixer >= 2.0.1
 BuildRequires:  SDL2_ttf >= 2.0.14
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+# SECTION test requirements
+BuildRequires:  %{python_module opengl}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  xorg-x11-server
+# /SECTION
 Requires:       SDL2 >= 2.0.5
+Requires:       SDL2_gfx >= 1.0.3
+Requires:       SDL2_image >= 2.0.1
+Requires:       SDL2_mixer >= 2.0.1
 Requires:       SDL2_ttf >= 2.0.14
 BuildArch:      noarch
 %python_subpackages
@@ -60,10 +62,10 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with test}
 %check
 #############################################
 ### Launch a virtual framebuffer X server ###
+###      (pytest-xvfb is not enough)      ###
 #############################################
 export DISPLAY=%{X_display}
 Xvfb %{X_display} >& Xvfb.log &
@@ -71,17 +73,19 @@
 sleep 10
 
 pushd sdl2/test
-%python_exec -B -m pytest
+# we do not have audio devices in build environment
+donttest+=" or test_Mix_OpenAudio or test_SDL_GetNumAudioDevices or 
TestSDLMixer"
+# we get border size 0 in build "desktop" environment
+donttest+=" or test_SDL_GetWindowsBordersSize"
+# flaky segfaults
+donttest+=" or (TestSDL2ExtWindow and (test_Window_position or 
test_Window_size))"
+%pytest -k "not (${donttest:4})"
 popd
-%endif
-
-%check
-# we do not have audio devices nor joystick in build environment
-%pytest -k "not (test_SDL_GetNumAudioDevices or test_SDL_InitJoystick)"
 
 %files %{python_files}
 %license COPYING.txt
 %doc AUTHORS.txt README.md
-%{python_sitelib}/*
+%{python_sitelib}/sdl2
+%{python_sitelib}/PySDL2-%{version}*-info
 
 %changelog

Reply via email to