Hello community,

here is the log from the commit of package python-opengl for openSUSE:Leap:15.2 
checked in at 2020-03-09 18:09:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-opengl (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-opengl.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opengl"

Mon Mar  9 18:09:37 2020 rev:11 rq:776868 version:3.1.3b2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-opengl/python-opengl.changes    
2020-01-15 15:50:55.911511531 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-opengl.new.26092/python-opengl.changes 
2020-03-09 18:09:39.305049468 +0100
@@ -1,0 +2,34 @@
+Mon Sep  9 09:30:18 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Switch to multibuild to avoid buildcycle
+
+-------------------------------------------------------------------
+Sun Aug 18 05:11:27 UTC 2019 - John Vandenberg <[email protected]>
+
+- Remove CFLAGS for noarch package
+- Use setuptools to build the package
+- Expand scope of fdupes to include egg-info
+- Activate test suite, disabled using bcond check on platforms
+  without test dependency pygame, and with test_buffer_api_basic
+  disabled on platforms other than x86_64 and aarch64 due to
+  failures caused by the installation of opengel-accelerate
+- Change optional dependencies tk and numpy to Recommends
+  instead of mandatory run time dependencies
+- Add missing python-tk to Recommends to complement tk
+- Change mtime adjustment algorithm to be more reflective of the
+  source date, based on OpenGL/__init__.py instead of .changes
+- Upgrade to 3.1.3b2
+  - Python 3.7 compatibility fixes
+
+-------------------------------------------------------------------
+Tue Dec  4 12:51:01 UTC 2018 - Matej Cepl <[email protected]>
+
+- Remove superfluous devel dependency for noarch package
+
+-------------------------------------------------------------------
+Thu Oct 25 12:43:03 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Update to 3.1.3b1:
+  * no obvious changelog
+
+-------------------------------------------------------------------

Old:
----
  PyOpenGL-3.1.1a1.tar.gz

New:
----
  PyOpenGL-3.1.3b2.tar.gz
  _multibuild

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

Other differences:
------------------
++++++ python-opengl.spec ++++++
--- /var/tmp/diff_new_pack.zpY4O0/_old  2020-03-09 18:09:40.237050804 +0100
+++ /var/tmp/diff_new_pack.zpY4O0/_new  2020-03-09 18:09:40.237050804 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-opengl
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,37 +12,55 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
 %define tarname PyOpenGL
-Name:           python-opengl
-Version:        3.1.1a1
+Name:           python-opengl%{psuffix}
+Version:        3.1.3b2
 Release:        0
 Summary:        OpenGL bindings for Python
 License:        BSD-3-Clause
 Group:          Development/Libraries/Python
-Url:            http://pyopengl.sourceforge.net
+URL:            http://pyopengl.sourceforge.net
 Source0:        
https://files.pythonhosted.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
-Source1:        %{name}.changes
-BuildRequires:  %{python_module Pillow}
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Recommends:     python-numpy
+Recommends:     python-opengl-accelerate
+Recommends:     python-tk
+Recommends:     tk >= 8.1
+BuildArch:      noarch
+%if %{with test}
+BuildRequires:  %{python_module Pillow}
+BuildRequires:  %{python_module opengl-accelerate}
+BuildRequires:  %{python_module psutil}
+BuildRequires:  %{python_module pygame}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  Mesa-dri
 BuildRequires:  freeglut-devel
 BuildRequires:  libdrm-devel
 BuildRequires:  libgle-devel
-BuildRequires:  python-rpm-macros
+BuildRequires:  python3-numpy
 BuildRequires:  swig
 BuildRequires:  tk-devel
-BuildRequires:  xorg-x11
-Requires:       python-numpy
-Requires:       tk >= 8.1
-Recommends:     python-opengl-accelerate
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildArch:      noarch
+BuildRequires:  xvfb-run
+BuildRequires:  pkgconfig(gl)
+BuildRequires:  pkgconfig(glu)
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xcb-glx)
+%endif
 %python_subpackages
 
 %description
@@ -54,21 +72,32 @@
 # remove shebang
 sed -e '1d' -i OpenGL/arrays/_buffers.py OpenGL/arrays/buffers.py
 # avoid "python-bytecode-inconsistent-mtime" warning
-FAKE_TIMESTAMP=$(LC_ALL=C date -u -r %{SOURCE1} +%%y%%m%%d%%H%%M)
+FAKE_TIMESTAMP=$(LC_ALL=C date -u -r OpenGL/__init__.py +%%y%%m%%d%%H%%M)
 find . -name '*.py' -exec touch -mat $FAKE_TIMESTAMP {} \;
 
 %build
-export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
 %python_build
 
 %install
+%if !%{with test}
 %python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/OpenGL/
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%if %{with test}
+%check
+# test_buffer_api_basic is a test specific to opengl-accelerate, failing on 
i586 and armv7l
+# https://github.com/mcfletch/pyopengl/issues/29
+%{python_expand #
+xvfb-run -s "-screen 0 1400x900x24 +iglx" $python -m pytest -v tests -k "not 
test_buffer_api_basic"
+}
+%endif
 
+%if !%{with test}
 %files %{python_files}
-%defattr(-,root,root)
-%doc license.txt
+%license license.txt
 %{python_sitelib}/OpenGL/
 %{python_sitelib}/PyOpenGL-%{version}-py%{python_version}.egg-info
+%endif
 
 %changelog

++++++ PyOpenGL-3.1.1a1.tar.gz -> PyOpenGL-3.1.3b2.tar.gz ++++++
++++ 38538 lines of diff (skipped)

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to