14
0
forked from pool/python-pyglet

Accepting request 616885 from home:TheBlackCat:branches:devel:languages:python

- Update to version 1.3.2
  * #158 Fix mouse events in mouse exclusive mode on Windows.
  * #105 Crashes in PulseAudio;
  * #163 Workaround for running inside Spyder;
  * #45  Expose viewport size for use on HiDPI screens;
  * #15  Respect keyboard layout on macOS;
- Remove broken tests

OBS-URL: https://build.opensuse.org/request/show/616885
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=17
This commit is contained in:
Todd R
2018-06-14 14:05:07 +00:00
committed by Git OBS Bridge
parent 7da4b6987e
commit af8107f40c
4 changed files with 15 additions and 24 deletions

View File

@@ -17,11 +17,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define X_display ":98"
# TODO: Can't get display working with glx
%bcond_with test
Name: python-pyglet
Version: 1.3.1
Version: 1.3.2
Release: 0
Summary: Windowing and multimedia library
License: BSD-3-Clause
@@ -45,11 +42,6 @@ BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(x11)
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: config(Mesa)
BuildRequires: xorg-x11-server
%endif
Requires: alsa-devel
Requires: fontconfig-devel
Requires: freetype2-devel
@@ -90,18 +82,6 @@ find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env
%fdupes %{buildroot}%{$python_sitelib}
}
%if %{with test}
%check
#############################################
### Launch a virtual framebuffer X server ###
#############################################
export DISPLAY=%{X_display}
vfb %{X_display} >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
%python_expand py.test-%{$python_bin_suffix}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE NOTICE README RELEASE_NOTES