Hello community,
here is the log from the commit of package golang-github-banthar-go-sdl for openSUSE:Factory checked in at 2016-03-07 13:23:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-banthar-go-sdl (Old)
and /work/SRC/openSUSE:Factory/.golang-github-banthar-go-sdl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-banthar-go-sdl"
Changes:
--------
--- /work/SRC/openSUSE:Factory/golang-github-banthar-go-sdl/golang-github-banthar-go-sdl.changes 2015-07-24 09:58:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.golang-github-banthar-go-sdl.new/golang-github-banthar-go-sdl.changes 2016-03-07 13:24:18.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Feb 29 15:01:05 UTC 2016 - normand@linux.vnet.ibm.com
+
+- new banthar_add_PowerPC_support.patch
+
+-------------------------------------------------------------------
New:
----
banthar_add_PowerPC_support.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-banthar-go-sdl.spec ++++++
--- /var/tmp/diff_new_pack.MmVClI/_old 2016-03-07 13:24:19.000000000 +0100
+++ /var/tmp/diff_new_pack.MmVClI/_new 2016-03-07 13:24:19.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package golang-github-banthar-go-sdl
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Sascha Peilicke
#
# All modifications and additions to the file contributed by third parties
@@ -26,6 +26,7 @@
Url: https://github.com/banthar/Go-SDL
Source: Go-SDL-%{version}.tar.xz
Source1: LICENSE
+Patch1: banthar_add_PowerPC_support.patch
BuildRequires: golang-packaging
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -51,6 +52,7 @@
%setup -q -n Go-SDL-%{version}
cp %{SOURCE1} .
mv doc/template.go ./template.go.example
+%patch1 -p1
%build
%goprep github.com/banthar/Go-SDL
++++++ banthar_add_PowerPC_support.patch ++++++
From: Michel Normand
Subject: banthar add PowerPC support
Date: Mon, 29 Feb 2016 15:57:05 +0100
banthar add PowerPC support
pending upstream pull request
https://github.com/banthar/Go-SDL/pull/66
Signed-off-by: Michel Normand
---
sdl/structs_ppc64.go | 195 +++++++++++++++++++++++++++++++++++++++++++++++++
sdl/structs_ppc64le.go | 195 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 390 insertions(+)
Index: Go-SDL-0.0.0+git20150514.13d6fca/sdl/structs_ppc64.go
===================================================================
--- /dev/null
+++ Go-SDL-0.0.0+git20150514.13d6fca/sdl/structs_ppc64.go
@@ -0,0 +1,195 @@
+package sdl
+
+type Surface struct {
+ Flags uint32
+ Pad0 [4]byte
+ Format *PixelFormat
+ W int32
+ H int32
+ Pitch uint16
+ Pad1 [6]byte
+ Pixels *byte
+ Offset int32
+ Pad2 [4]byte
+ Hwdata *[0]byte /* sprivate_hwdata */
+ Clip_rect Rect
+ Unused1 uint32
+ Locked uint32
+ Map *[0]byte /* sSDL_BlitMap */
+ Format_version uint32
+ Refcount int32
+}
+
+type PixelFormat struct {
+ Palette *Palette
+ BitsPerPixel uint8
+ BytesPerPixel uint8
+ Rloss uint8
+ Gloss uint8
+ Bloss uint8
+ Aloss uint8
+ Rshift uint8
+ Gshift uint8
+ Bshift uint8
+ Ashift uint8
+ Pad0 [2]byte
+ Rmask uint32
+ Gmask uint32
+ Bmask uint32
+ Amask uint32
+ Colorkey uint32
+ Alpha uint8
+ Pad1 [7]byte
+}
+
+type Rect struct {
+ X int16
+ Y int16
+ W uint16
+ H uint16
+}
+
+type Color struct {
+ R uint8
+ G uint8
+ B uint8
+ Unused uint8
+}
+
+type Palette struct {
+ Ncolors int32
+ Pad0 [4]byte
+ Colors *Color
+}
+
+type internalVideoInfo struct {
+ Flags uint32
+ Video_mem uint32
+ Vfmt *PixelFormat
+ Current_w int32
+ Current_h int32
+}
+
+type Overlay struct {
+ Format uint32
+ W int32
+ H int32
+ Planes int32
+ Pitches *uint16
+ Pixels **uint8
+ Hwfuncs *[0]byte /* sprivate_yuvhwfuncs */
+ Hwdata *[0]byte /* sprivate_yuvhwdata */
+ Pad0 [8]byte
+}
+
+type ActiveEvent struct {
+ Type uint8
+ Gain uint8
+ State uint8
+}
+
+type KeyboardEvent struct {
+ Type uint8
+ Which uint8
+ State uint8
+ Pad0 [1]byte
+ Keysym Keysym
+}
+
+type MouseMotionEvent struct {
+ Type uint8
+ Which uint8
+ State uint8
+ Pad0 [1]byte
+ X uint16
+ Y uint16
+ Xrel int16
+ Yrel int16
+}
+
+type MouseButtonEvent struct {
+ Type uint8
+ Which uint8
+ Button uint8
+ State uint8
+ X uint16
+ Y uint16
+}
+
+type JoyAxisEvent struct {
+ Type uint8
+ Which uint8
+ Axis uint8
+ Pad0 [1]byte
+ Value int16
+}
+
+type JoyBallEvent struct {
+ Type uint8
+ Which uint8
+ Ball uint8
+ Pad0 [1]byte
+ Xrel int16
+ Yrel int16
+}
+
+type JoyHatEvent struct {
+ Type uint8
+ Which uint8
+ Hat uint8
+ Value uint8
+}
+
+type JoyButtonEvent struct {
+ Type uint8
+ Which uint8
+ Button uint8
+ State uint8
+}
+
+type ResizeEvent struct {
+ Type uint8
+ Pad0 [3]byte
+ W int32
+ H int32
+}
+
+type ExposeEvent struct {
+ Type uint8
+}
+
+type QuitEvent struct {
+ Type uint8
+}
+
+type UserEvent struct {
+ Type uint8
+ Pad0 [3]byte
+ Code int32
+ Data1 *byte
+ Data2 *byte
+}
+
+type SysWMmsg struct{}
+
+type SysWMEvent struct {
+ Type uint8
+ Pad0 [7]byte
+ Msg *SysWMmsg
+}
+
+type Event interface{}
+
+type cevent struct {
+ Type uint8
+ Pad0 [23]byte
+}
+
+type Keysym struct {
+ Scancode uint8
+ Sym uint32
+ Mod uint32
+ Unicode uint16
+}
+
+type Joystick [0]byte
Index: Go-SDL-0.0.0+git20150514.13d6fca/sdl/structs_ppc64le.go
===================================================================
--- /dev/null
+++ Go-SDL-0.0.0+git20150514.13d6fca/sdl/structs_ppc64le.go
@@ -0,0 +1,195 @@
+package sdl
+
+type Surface struct {
+ Flags uint32
+ Pad0 [4]byte
+ Format *PixelFormat
+ W int32
+ H int32
+ Pitch uint16
+ Pad1 [6]byte
+ Pixels *byte
+ Offset int32
+ Pad2 [4]byte
+ Hwdata *[0]byte /* sprivate_hwdata */
+ Clip_rect Rect
+ Unused1 uint32
+ Locked uint32
+ Map *[0]byte /* sSDL_BlitMap */
+ Format_version uint32
+ Refcount int32
+}
+
+type PixelFormat struct {
+ Palette *Palette
+ BitsPerPixel uint8
+ BytesPerPixel uint8
+ Rloss uint8
+ Gloss uint8
+ Bloss uint8
+ Aloss uint8
+ Rshift uint8
+ Gshift uint8
+ Bshift uint8
+ Ashift uint8
+ Pad0 [2]byte
+ Rmask uint32
+ Gmask uint32
+ Bmask uint32
+ Amask uint32
+ Colorkey uint32
+ Alpha uint8
+ Pad1 [7]byte
+}
+
+type Rect struct {
+ X int16
+ Y int16
+ W uint16
+ H uint16
+}
+
+type Color struct {
+ R uint8
+ G uint8
+ B uint8
+ Unused uint8
+}
+
+type Palette struct {
+ Ncolors int32
+ Pad0 [4]byte
+ Colors *Color
+}
+
+type internalVideoInfo struct {
+ Flags uint32
+ Video_mem uint32
+ Vfmt *PixelFormat
+ Current_w int32
+ Current_h int32
+}
+
+type Overlay struct {
+ Format uint32
+ W int32
+ H int32
+ Planes int32
+ Pitches *uint16
+ Pixels **uint8
+ Hwfuncs *[0]byte /* sprivate_yuvhwfuncs */
+ Hwdata *[0]byte /* sprivate_yuvhwdata */
+ Pad0 [8]byte
+}
+
+type ActiveEvent struct {
+ Type uint8
+ Gain uint8
+ State uint8
+}
+
+type KeyboardEvent struct {
+ Type uint8
+ Which uint8
+ State uint8
+ Pad0 [1]byte
+ Keysym Keysym
+}
+
+type MouseMotionEvent struct {
+ Type uint8
+ Which uint8
+ State uint8
+ Pad0 [1]byte
+ X uint16
+ Y uint16
+ Xrel int16
+ Yrel int16
+}
+
+type MouseButtonEvent struct {
+ Type uint8
+ Which uint8
+ Button uint8
+ State uint8
+ X uint16
+ Y uint16
+}
+
+type JoyAxisEvent struct {
+ Type uint8
+ Which uint8
+ Axis uint8
+ Pad0 [1]byte
+ Value int16
+}
+
+type JoyBallEvent struct {
+ Type uint8
+ Which uint8
+ Ball uint8
+ Pad0 [1]byte
+ Xrel int16
+ Yrel int16
+}
+
+type JoyHatEvent struct {
+ Type uint8
+ Which uint8
+ Hat uint8
+ Value uint8
+}
+
+type JoyButtonEvent struct {
+ Type uint8
+ Which uint8
+ Button uint8
+ State uint8
+}
+
+type ResizeEvent struct {
+ Type uint8
+ Pad0 [3]byte
+ W int32
+ H int32
+}
+
+type ExposeEvent struct {
+ Type uint8
+}
+
+type QuitEvent struct {
+ Type uint8
+}
+
+type UserEvent struct {
+ Type uint8
+ Pad0 [3]byte
+ Code int32
+ Data1 *byte
+ Data2 *byte
+}
+
+type SysWMmsg struct{}
+
+type SysWMEvent struct {
+ Type uint8
+ Pad0 [7]byte
+ Msg *SysWMmsg
+}
+
+type Event interface{}
+
+type cevent struct {
+ Type uint8
+ Pad0 [23]byte
+}
+
+type Keysym struct {
+ Scancode uint8
+ Sym uint32
+ Mod uint32
+ Unicode uint16
+}
+
+type Joystick [0]byte