Accepting request 99750 from graphics

Fix build (forwarded request 99733 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/99750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gegl?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2012-01-12 14:30:34 +00:00 committed by Git OBS Bridge
commit b578b1bdc5
6 changed files with 87 additions and 30 deletions

View File

@ -1,11 +0,0 @@
--- gegl-0.1.6/docs/Makefile.in.orig 2011-02-13 19:15:29.000000000 +0100
+++ gegl-0.1.6/docs/Makefile.in 2011-06-19 20:43:33.052542851 +0200
@@ -345,7 +345,7 @@ SUBDIRS = gallery
# The patterns used for html creation in the gegl build system
# is very small, and should probably be documented in a tutorial.
#
-gtkdochtmldir = $(DESTDIR)$(datadir)/gtk-doc/html/gegl
+gtkdochtmldir = $(datadir)/gtk-doc/html/gegl
HTML_FILES = operations.html class-hierarchy.html $(am__append_1) \
$(am__append_3) $(am__append_5)
GTKDOC_FILES = operations.html gegl.css gegl.devhelp $(am__append_2) \

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a166225625eebfb57fd417c88cf1fa6e29b1d308d50ac3bd9ef30bad9f3726d1
size 4118465

3
gegl-0.1.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:106b9574b6d5fb282683794f7a7f090a1a3f4a388890e592b202827a4ca76f75
size 5532682

39
gegl-lua52.patch Normal file
View File

@ -0,0 +1,39 @@
commit a5b601502d3293966994911cfcab6a0eb0d68e41
Author: Vincent Untz <vuntz@gnome.org>
Date: Wed Jan 11 09:52:25 2012 +0100
Fix build with lua 5.2 by not using API deprecated in 5.1 already
https://bugzilla.gnome.org/show_bug.cgi?id=667675
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
index 536f1d9..dbcc362 100644
--- a/operations/workshop/external/gluas.c
+++ b/operations/workshop/external/gluas.c
@@ -97,7 +97,7 @@ static int l_progress (lua_State * lua);
static int l_flush (lua_State * lua);
static int l_print (lua_State * lua);
-static const luaL_reg gluas_functions[] =
+static const luaL_Reg gluas_functions[] =
{
{"set_rgba", l_set_rgba},
{"get_rgba", l_get_rgba},
@@ -122,7 +122,7 @@ static const luaL_reg gluas_functions[] =
};
static void
register_functions (lua_State *L,
- const luaL_reg *l)
+ const luaL_Reg *l)
{
for (;l->name; l++)
lua_register (L, l->name, l->func);
@@ -146,7 +146,7 @@ drawable_lua_process (GeglOperation *op,
lua_State *L;
Priv p;
- L = lua_open ();
+ L = luaL_newstate ();
luaL_openlibs (L);
register_functions (L, gluas_functions);

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Wed Jan 11 08:57:36 UTC 2012 - vuntz@opensuse.org
- Add gegl-lua52.patch: fix build with lua 5.2, while still being
compatible with lua 5.1.
-------------------------------------------------------------------
Sun Nov 27 14:39:21 UTC 2011 - dimstar@opensuse.org
- Update to version 0.1.8:
+ New operations: spread, vignette, map-relative,
noise-reduction, plasma, fractal-trace, exr-save, lens-correct,
emboss, cubism, ripple, color-to-alpha, color-rotate,
red-eye-removal, convolution-matrix, deinterlace,
polar-coordinates, lens-distortion, pixelise.
+ Split GeglView GTK Widget into separate utility library
+ build/test improvements.
+ Buffer:
- Added lohalo resampler, API and infrastructure for doing non
affine resamplings.
- Clean spec-file using spec-cleaner.
- Drop docs-build-fix.diff: fixed upstream.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 20 09:42:30 UTC 2011 - jw@novell.com Mon Jun 20 09:42:30 UTC 2011 - jw@novell.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gegl # spec file for package gegl
# #
# 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
@ -15,14 +15,24 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: gegl Name: gegl
# Patched code is built by default. # Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code. # Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to build patched build plus original as addon. # Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to build patched build plus original as addon.
BuildRequires: ImageMagick OpenEXR-devel SDL-devel asciidoc babl-devel enscript gcc-c++ graphviz-gd gtk2-devel libjpeg-devel libpng-devel librsvg-devel libstdc++-devel lua-devel BuildRequires: ImageMagick
BuildRequires: OpenEXR-devel
BuildRequires: SDL-devel
BuildRequires: asciidoc
BuildRequires: babl-devel
BuildRequires: enscript
BuildRequires: gcc-c++
BuildRequires: graphviz-gd
BuildRequires: gtk2-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: librsvg-devel
BuildRequires: libstdc++-devel
BuildRequires: lua-devel
# FIXME: add back with next release after 0.1.0, when gobj2dot.rb will be there # FIXME: add back with next release after 0.1.0, when gobj2dot.rb will be there
# BuildRequires: ruby # BuildRequires: ruby
BuildRequires: glib2-devel >= 2.16.1 BuildRequires: glib2-devel >= 2.16.1
@ -41,13 +51,14 @@ Obsoletes: %{name}-orig-addon
Provides: patched_subset Provides: patched_subset
%endif %endif
Url: http://gegl.org/ Url: http://gegl.org/
Version: 0.1.6 Version: 0.1.8
Release: 10 Release: 0
License: GPLv3+ ; LGPLv3+
Group: System/Libraries
Summary: Generic Graphics Library Summary: Generic Graphics Library
License: GPL-3.0+ ; LGPL-3.0+
Group: System/Libraries
Source: ftp://ftp.gimp.org/pub/gegl/0.1/%{name}-%{version}.tar.bz2 Source: ftp://ftp.gimp.org/pub/gegl/0.1/%{name}-%{version}.tar.bz2
Patch2: docs-build-fix.diff # PATCH-FIX-UPSTREAM gegl-lua52.patch bgo#667675 vuntz@opensuse.org -- Fix build with lua 5.2
Patch0: gegl-lua52.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libgegl-0_1-0 = %{version}-%{release} %define debug_package_requires libgegl-0_1-0 = %{version}-%{release}
@ -58,7 +69,6 @@ support for a wide range of color models and pixel storage formats for
input and output. input and output.
%package 0_1 %package 0_1
License: GPLv3+ ; LGPLv3+
Summary: Generic Graphics Library Summary: Generic Graphics Library
Group: System/Libraries Group: System/Libraries
@ -72,7 +82,6 @@ input and output.
%if 0%{?BUILD_ORIG_ADDON} %if 0%{?BUILD_ORIG_ADDON}
%package 0_1-orig-addon %package 0_1-orig-addon
License: GPLv3+ ; LGPLv3+
Summary: Generic Graphics Library Summary: Generic Graphics Library
Group: System/Libraries Group: System/Libraries
Supplements: packageand(%{name}-0_1:%(cd %{_libdir} ; rpm -qf --queryformat=%%{NAME} `readlink %{_libdir}/libavcodec.so` )) Supplements: packageand(%{name}-0_1:%(cd %{_libdir} ; rpm -qf --queryformat=%%{NAME} `readlink %{_libdir}/libavcodec.so` ))
@ -87,7 +96,6 @@ input and output.
%endif %endif
%package -n libgegl-0_1-0 %package -n libgegl-0_1-0
License: GPLv3+ ; LGPLv3+
Summary: Generic Graphics Library Summary: Generic Graphics Library
Group: System/Libraries Group: System/Libraries
Recommends: %{name}-0_1 >= %{version} Recommends: %{name}-0_1 >= %{version}
@ -99,7 +107,6 @@ support for a wide range of color models and pixel storage formats for
input and output. input and output.
%package devel %package devel
License: GPLv3+ ; LGPLv3+
Summary: Generic Graphics Library Summary: Generic Graphics Library
Group: System/Libraries Group: System/Libraries
Requires: libgegl-0_1-0 = %{version} babl-devel glib2-devel glibc-devel pcre-devel Requires: libgegl-0_1-0 = %{version} babl-devel glib2-devel glibc-devel pcre-devel
@ -111,7 +118,6 @@ support for a wide range of color models and pixel storage formats for
input and output. input and output.
%package doc %package doc
License: GPLv3+ ; LGPLv3+
Summary: Generic Graphics Library Summary: Generic Graphics Library
Group: System/Libraries Group: System/Libraries
Requires: libgegl-0_1-0 = %{version} Requires: libgegl-0_1-0 = %{version}
@ -124,8 +130,8 @@ input and output.
%prep %prep
%setup -q %setup -q
%patch0 -p1
# docs-build-fix.diff # docs-build-fix.diff
%patch2 -p1
%build %build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"