SHA256
1
0
forked from pool/gimp-gap

Accepting request 124030 from GNOME:Apps

Fix build against gimp 2.8 (forwarded request 123946 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/124030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gimp-gap?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2012-06-10 18:16:09 +00:00 committed by Git OBS Bridge
parent 511b78b9a3
commit 8e3be3b9f6
3 changed files with 36 additions and 1 deletions

26
gimp-gap-gimp28.patch Normal file
View File

@ -0,0 +1,26 @@
Index: gimp-gap-2.6.0/libgapbase/gap_base.c
===================================================================
--- gimp-gap-2.6.0.orig/libgapbase/gap_base.c
+++ gimp-gap-2.6.0/libgapbase/gap_base.c
@@ -51,7 +51,7 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include <libgimpwidgets/gimpwidgetstypes.h>
-#include <libgimpwidgets/gimphelpui.h>
+#include <libgimpwidgets/gimpwidgets.h>
#ifdef G_OS_WIN32
#include <io.h>
Index: gimp-gap-2.6.0/libgapvidapi/gap_vid_api_util.c
===================================================================
--- gimp-gap-2.6.0.orig/libgapvidapi/gap_vid_api_util.c
+++ gimp-gap-2.6.0/libgapvidapi/gap_vid_api_util.c
@@ -7,7 +7,7 @@
*/
#include <glib/gstdio.h>
-#include <libgimpmath/gimpmd5.h>
+#include <libgimpmath/gimpmath.h>
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX END fcache procedures */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 6 18:48:30 UTC 2012 - dimstar@opensuse.org
- Add gimp-gap-gimp28.patch: Fix build with gimp 2.8.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 2 06:32:06 UTC 2011 - coolo@suse.com Fri Dec 2 06:32:06 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gimp-gap # spec file for package gimp-gap
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -57,6 +57,8 @@ Patch2: %{name}-warnings.patch
Patch3: %{name}-warnings-orig-addon.patch Patch3: %{name}-warnings-orig-addon.patch
# PATCH-FIX-UPSTREAM gimp-gap-link-lm.patch bgo#660443 idoenmez@suse.de -- Link to -lm where needed # PATCH-FIX-UPSTREAM gimp-gap-link-lm.patch bgo#660443 idoenmez@suse.de -- Link to -lm where needed
Patch4: %{name}-link-lm.patch Patch4: %{name}-link-lm.patch
# PATCH-FIX-UPSTREAM gimp-gap-gimp28.patch dimstar@opensuse.org -- Fix build with gimp 2.8. Patch not upstreamed, as there are a bunch of commits addressing the same.
Patch5: gimp-gap-gimp28.patch
Source1: %{name}-patch-source.sh Source1: %{name}-patch-source.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{?gimp_api_version:1}0 %if %{?gimp_api_version:1}0
@ -76,6 +78,7 @@ sequences of single frames.
%package orig %package orig
Summary: GIMP Animation Package Summary: GIMP Animation Package
Group: Productivity/Multimedia/Video/Editors and Convertors
Provides: %{name} = %{version}-%{release} Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < %{version}-%{release} Obsoletes: %{name} < %{version}-%{release}
@ -103,6 +106,7 @@ translation-update-upstream
%patch3 %patch3
%endif %endif
%patch4 %patch4
%patch5 -p1
sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS
mv po/sr@Latn.po po/sr@latin.po mv po/sr@Latn.po po/sr@latin.po