Hello community,

here is the log from the commit of package python-opengl for openSUSE:Factory 
checked in at 2013-04-20 17:51:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-opengl (Old)
 and      /work/SRC/openSUSE:Factory/.python-opengl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opengl", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-opengl/python-opengl.changes      
2011-09-23 12:43:04.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-opengl.new/python-opengl.changes 
2013-04-20 17:51:09.000000000 +0200
@@ -1,0 +2,7 @@
+Fri Apr 19 12:50:33 UTC 2013 - [email protected]
+
+- Update to 3.0.2
+  * no changelog
+- Add python 3 version
+
+-------------------------------------------------------------------
New Changes file:

--- /dev/null   2013-04-05 00:01:41.916011506 +0200
+++ /work/SRC/openSUSE:Factory/.python-opengl.new/python3-opengl.changes        
2013-04-20 17:51:09.000000000 +0200
@@ -0,0 +1,7 @@
+-------------------------------------------------------------------
+Fri Apr 19 12:50:33 UTC 2013 - [email protected]
+
+- Update to 3.0.2
+  * no changelog
+- Add python 3 version
+

Old:
----
  PyOpenGL-3.0.1.tar.bz2

New:
----
  PyOpenGL-3.0.2.tar.gz
  python3-opengl.changes
  python3-opengl.spec

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

Other differences:
------------------
++++++ python-opengl.spec ++++++
--- /var/tmp/diff_new_pack.f2o6OE/_old  2013-04-20 17:51:10.000000000 +0200
+++ /var/tmp/diff_new_pack.f2o6OE/_new  2013-04-20 17:51:10.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package python-opengl (Version 3.0.1)
+# spec file for package python-opengl
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,56 +15,61 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:           python-opengl
-BuildRequires:  freeglut-devel libdrm-devel python-devel python-imaging swig 
tk-devel xorg-x11
-%if %suse_version > 1110
-BuildRequires:  libgle-devel python-numpy
-%else
-BuildRequires:  gle python-numeric
-%endif
 %define tarname PyOpenGL
+Version:        3.0.2
+Release:        0
 Summary:        OpenGL bindings for Python
-Version:        3.0.1
-Release:        1
-Source0:        %{tarname}-%{version}.tar.bz2
 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
+BuildRequires:  fdupes
+BuildRequires:  freeglut-devel
+BuildRequires:  libdrm-devel
+BuildRequires:  python-devel
+BuildRequires:  python-imaging
+BuildRequires:  python-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
-Prefix:         %{_prefix}
 %{py_requires}
-Requires:       tk >= 8.1
-Url:            http://pyopengl.sourceforge.net
 # this is only noarch as long as the accelerator module is missing
-%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
+%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version:1}
+BuildRequires:  libgle-devel
 BuildArch:      noarch
+%else
+BuildRequires:  gle
 %endif
 
 %description
 OpenGL bindings for Python including support for GL extensions, GLU,
 WGL, GLUT, GLE, and Tk.
 
-
-
 %prep
 %setup -q -n %{tarname}-%{version}
-#sed -i '/^library_dirs/ s@/lib@/%{_lib}@g' config/linux.cfg
-find . -name .cvsignore -type f -print0 | xargs -0 rm -f
-find . -name CVS -type d -print0 | xargs -0 rm -rf
 
 %build
-CFLAGS="$RPM_OPT_FLAGS -DGLX_GLXEXT_LEGACY" python setup.py build
+CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python setup.py build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT 
--record-rpm=INSTALLED_FILES
+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 $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
-%files -f INSTALLED_FILES
+%files
 %defattr(-,root,root)
-%doc ChangeLog.txt license.txt
+%doc license.txt
+%{python_sitelib}/OpenGL/
+%{python_sitelib}/PyOpenGL-%{version}-py*.egg-info
 
 %changelog

++++++ python3-opengl.spec ++++++
#
# spec file for package python3-opengl
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#


Name:           python3-opengl
%define tarname PyOpenGL
Version:        3.0.2
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
BuildRequires:  fdupes
BuildRequires:  freeglut-devel
BuildRequires:  libdrm-devel
BuildRequires:  python3-2to3
BuildRequires:  python3-devel
# Does not support python3 yet
#BuildRequires:  python3-imaging
BuildRequires:  python3-numpy
BuildRequires:  swig
BuildRequires:  tk-devel
BuildRequires:  xorg-x11
Requires:       python3-numpy
Requires:       tk >= 8.1
Recommends:     python3-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

%description
OpenGL bindings for Python including support for GL extensions, GLU,
WGL, GLUT, GLE, and Tk.

%prep
%setup -q -n %{tarname}-%{version}

%build
CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod a+x %{buildroot}%{python3_sitelib}/OpenGL/arrays/_buffers.py
chmod a+x %{buildroot}%{python3_sitelib}/OpenGL/arrays/buffers.py
%fdupes %{buildroot}%{python3_sitelib}/OpenGL/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc license.txt
%{python3_sitelib}/OpenGL/
%{python3_sitelib}/PyOpenGL-%{version}-py*.egg-info

%changelog
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to