From 55aecf88e0154a7b6960f9b85bc2b44aab3006c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 25 Sep 2013 16:12:09 +0200 Subject: [PATCH] - fix build on big endians (#1011893) --- cogl-1.16.0-bigendian.patch | 12 ++++++++++++ cogl.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 cogl-1.16.0-bigendian.patch diff --git a/cogl-1.16.0-bigendian.patch b/cogl-1.16.0-bigendian.patch new file mode 100644 index 0000000..66ceaa5 --- /dev/null +++ b/cogl-1.16.0-bigendian.patch @@ -0,0 +1,12 @@ +diff -up cogl-1.16.0/cogl/cogl-texture-2d.c.bigendian cogl-1.16.0/cogl/cogl-texture-2d.c +--- cogl-1.16.0/cogl/cogl-texture-2d.c.bigendian 2013-09-25 12:53:31.932422121 -0400 ++++ cogl-1.16.0/cogl/cogl-texture-2d.c 2013-09-25 12:54:04.362422436 -0400 +@@ -315,7 +315,7 @@ cogl_wayland_texture_2d_new_from_buffer + case WL_SHM_FORMAT_ARGB8888: + format = COGL_PIXEL_FORMAT_ARGB_8888_PRE; + break; +- case WL_SHM_FORMAT_XRGB32: ++ case WL_SHM_FORMAT_XRGB8888: + format = COGL_PIXEL_FORMAT_ARGB_8888; + internal_format = COGL_PIXEL_FORMAT_RGB_888; + break; diff --git a/cogl.spec b/cogl.spec index 6337a01..a3c4d61 100644 --- a/cogl.spec +++ b/cogl.spec @@ -4,13 +4,15 @@ Name: cogl Version: 1.16.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for using 3D graphics hardware to draw pretty pictures Group: Development/Libraries License: LGPLv2+ URL: http://www.clutter-project.org/ Source0: http://download.gnome.org/sources/cogl/1.16/cogl-%{version}.tar.xz +# big endian fix +Patch0: cogl-1.16.0-bigendian.patch BuildRequires: cairo-devel BuildRequires: gdk-pixbuf2-devel @@ -75,6 +77,7 @@ This package contains documentation for %{name}. %prep %setup -q +%patch0 -p1 -b .bigendian %build CFLAGS="$RPM_OPT_FLAGS -fPIC" @@ -123,6 +126,9 @@ rm %{buildroot}%{_datadir}/cogl/examples-data/crate.jpg %{_datadir}/gtk-doc/html/cogl-2.0-experimental %changelog +* Wed Sep 25 2013 Dan HorĂ¡k - 1.16.0-2 +- fix build on big endians (#1011893) + * Tue Sep 24 2013 Kalev Lember - 1.16.0-1 - Update to 1.16.0