14
0
forked from pool/python-pygame

Accepting request 77836 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/77836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygame?expand=0&rev=15
This commit is contained in:
Sascha Peilicke
2011-08-04 07:53:57 +00:00
committed by Git OBS Bridge
parent d5beb7fdc3
commit 6638a97002
3 changed files with 23 additions and 0 deletions

11
pygame-v4l-2.6.38.patch Normal file
View File

@@ -0,0 +1,11 @@
--- src/camera.h 2008-10-10 04:37:10.000000000 +0200
+++ src/camera.h 2011-07-07 13:00:43.880088827 +0200
@@ -39,7 +39,7 @@
#include <asm/types.h> /* for videodev2.h */
- #include <linux/videodev.h>
+ #include <libv4l1-videodev.h>
#include <linux/videodev2.h>
#endif

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 7 11:01:11 UTC 2011 - idonmez@novell.com
- Add pygame-v4l-2.6.38.patch: use new v4l interface
-------------------------------------------------------------------
Tue Jun 8 12:52:19 UTC 2010 - prusnak@opensuse.org

View File

@@ -22,6 +22,7 @@ Version: 1.9.1
Release: 1
Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz
Source1: README.SUSE
Patch1: pygame-v4l-2.6.38.patch
Summary: A Python Module for Interfacing with the SDL Multimedia Library
License: LGPLv2.1+
Group: Development/Libraries/Python
@@ -41,6 +42,9 @@ BuildRequires: python-numpy
%else
BuildRequires: python-numeric
%endif
%if 0%{?suse_version} >= 1210
BuildRequires: libv4l-devel >= 0.8.4
%endif
%{py_requires}
%description
@@ -69,6 +73,9 @@ written by Mark Baker.
%prep
%setup -q -n pygame-%{version}release
%if 0%{?suse_version} >= 1210
%patch1
%endif
%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"