Hello community,

here is the log from the commit of package python-opengl for openSUSE:Factory 
checked in at 2017-06-08 15:02:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-opengl (Old)
 and      /work/SRC/openSUSE:Factory/.python-opengl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opengl"

Thu Jun  8 15:02:34 2017 rev:22 rq:501314 version:3.1.1a1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-opengl/python-opengl.changes      
2014-07-15 08:01:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-opengl.new/python-opengl.changes 
2017-06-08 15:02:35.286537588 +0200
@@ -1,0 +2,7 @@
+Mon Jun  5 11:26:10 UTC 2017 - [email protected]
+
+- Update to version 3.1.1a1
+- Added python-opengl.changes as source
+- Converted to single-spec
+
+-------------------------------------------------------------------

Old:
----
  PyOpenGL-3.1.0.tar.gz

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

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

Other differences:
------------------
++++++ python-opengl.spec ++++++
--- /var/tmp/diff_new_pack.pP9lem/_old  2017-06-08 15:02:36.266399300 +0200
+++ /var/tmp/diff_new_pack.pP9lem/_new  2017-06-08 15:02:36.266399300 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-opengl
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,21 +16,25 @@
 #
 
 
-Name:           python-opengl
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define tarname PyOpenGL
-Version:        3.1.0
+Name:           python-opengl
+Version:        3.1.1a1
 Release:        0
 Summary:        OpenGL bindings for Python
 License:        BSD-3-Clause
 Group:          Development/Libraries/Python
 Url:            http://pyopengl.sourceforge.net
-Source0:        
https://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
+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:  fdupes
 BuildRequires:  freeglut-devel
 BuildRequires:  libdrm-devel
-BuildRequires:  python-devel
-BuildRequires:  python-Pillow
-BuildRequires:  python-numpy
+BuildRequires:  libgle-devel
+BuildRequires:  python-rpm-macros
 BuildRequires:  swig
 BuildRequires:  tk-devel
 BuildRequires:  xorg-x11
@@ -38,14 +42,8 @@
 Requires:       tk >= 8.1
 Recommends:     python-opengl-accelerate
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%{py_requires}
-# this is only noarch as long as the accelerator module is missing
-%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1}
-BuildRequires:  libgle-devel
 BuildArch:      noarch
-%else
-BuildRequires:  gle
-%endif
+%python_subpackages
 
 %description
 OpenGL bindings for Python including support for GL extensions, GLU,
@@ -53,23 +51,24 @@
 
 %prep
 %setup -q -n %{tarname}-%{version}
+# 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)
+find . -name '*.py' -exec touch -mat $FAKE_TIMESTAMP {} \;
 
 %build
-CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python setup.py build
+export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/_buffers.py
-chmod a+x %{buildroot}%{python_sitelib}/OpenGL/arrays/buffers.py
-%fdupes %{buildroot}%{python_sitelib}/OpenGL/
-
-%clean
-rm -rf %{buildroot}
+%python_install
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/OpenGL/
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc license.txt
 %{python_sitelib}/OpenGL/
-%{python_sitelib}/PyOpenGL-%{version}-py*.egg-info
+%{python_sitelib}/PyOpenGL-%{version}-py%{python_version}.egg-info
 
 %changelog

++++++ PyOpenGL-3.1.0.tar.gz -> PyOpenGL-3.1.1a1.tar.gz ++++++
++++ 20225 lines of diff (skipped)


Reply via email to