Accepting request 74172 from home:jnweiger:gimp27

retry of sr#74133 without authors list.
- update to 0.1.6 (gimp-2.7.2 needs this version)
- remove upstreamed patches bgo609706 bgo610680 (thanks, Vincent)

OBS-URL: https://build.opensuse.org/request/show/74172
OBS-URL: https://build.opensuse.org/package/show/graphics/gegl?expand=0&rev=17
This commit is contained in:
Ismail Dönmez 2011-06-20 09:50:39 +00:00 committed by Git OBS Bridge
parent 7046cbba29
commit dd7aeac452
7 changed files with 33 additions and 52 deletions

11
docs-build-fix.diff Normal file
View File

@ -0,0 +1,11 @@
--- 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:b64e619b460c4f4a746596b219d0bcb722068e3c4a00a30cc03201ca2118e113
size 3128704

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

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

View File

@ -1,13 +0,0 @@
Index: gegl-0.1.2/operations/workshop/mirrors.c
===================================================================
--- gegl-0.1.2.orig/operations/workshop/mirrors.c
+++ gegl-0.1.2/operations/workshop/mirrors.c
@@ -232,8 +232,6 @@ apply_mirror (double mirror_angle,
- printf ("> mirror marker 3: src: (%f,%f)-> (%d,%d)\n", cx, cy, col,row);
-
#ifndef DO_NOT_USE_BUFFER_SAMPLE
gegl_buffer_sample (src, cx, cy, 1.0, &dst_buf[(row * roi->width + col) * 4], format, GEGL_INTERPOLATION_LINEAR);
#endif

View File

@ -1,26 +0,0 @@
From 66d2ae5782d1d13224294ecf20e6f63680903550 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Mon, 22 Feb 2010 12:57:00 +0100
Subject: [PATCH] Use memcpy instead of strcpy to avoid buffer overflow
https://bugzilla.gnome.org/show_bug.cgi?id=610680
---
gegl/buffer/gegl-buffer-save.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index 85c7894..aff175c 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -196,7 +196,7 @@ gegl_buffer_header_init (GeglBufferHeader *header,
gint bpp,
Babl* format)
{
- strcpy (header->magic, "GEGL");
+ memcpy (header->magic, "GEGL", 4);
header->flags = GEGL_FLAG_HEADER;
header->tile_width = tile_width;
--
1.6.6.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 20 09:42:30 UTC 2011 - jw@novell.com
- update to 0.1.6 (gimp-2.7.2 needs this version)
- remove upstreamed patches bgo609706 bgo610680 (thanks, Vincent)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 5 13:46:33 UTC 2011 - dimstar@opensuse.org Thu May 5 13:46:33 UTC 2011 - dimstar@opensuse.org

View File

@ -41,16 +41,13 @@ Obsoletes: %{name}-orig-addon
Provides: patched_subset Provides: patched_subset
%endif %endif
Url: http://gegl.org/ Url: http://gegl.org/
Version: 0.1.2 Version: 0.1.6
Release: 10 Release: 10
License: GPLv3+ ; LGPLv3+ License: GPLv3+ ; LGPLv3+
Group: System/Libraries Group: System/Libraries
Summary: Generic Graphics Library Summary: Generic Graphics Library
Source: ftp://ftp.gimp.org/pub/gegl/v0.0/%{name}-%{version}.tar.bz2 Source: ftp://ftp.gimp.org/pub/gegl/v0.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gegl-fix-build.patch bgo609706 vuntz@opensuse.org -- Remove unneeded printf, which fixes build Patch2: docs-build-fix.diff
Patch0: gegl-fix-build.patch
# PATCH-FIX-UPSTREAM gegl-fix-overflow.patch bgo610680 vuntz@opensuse.org -- Fix overflow found by gcc 4.5
Patch1: gegl-fix-overflow.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}
@ -127,10 +124,16 @@ input and output.
%prep %prep
%setup -q %setup -q
%patch0 -p1 # docs-build-fix.diff
%patch1 -p1 %patch2 -p1
%build %build
## nice idea, but it does not work. Rpmlint still complains about not useing rpm-opt-flags.
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
## do not use autogen.sh, it intentionally fails, if there is no ruby.
## so why use autogen, when you do not want portability?
# ./autogen.sh
%configure\ %configure\
--enable-workshop=yes\ --enable-workshop=yes\
--disable-static --disable-static
@ -146,7 +149,6 @@ for MODULE in \
done done
%endif %endif
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
chmod -x $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gegl/*.*
%post -n libgegl-0_1-0 -p /sbin/ldconfig %post -n libgegl-0_1-0 -p /sbin/ldconfig
@ -186,6 +188,7 @@ rm -rf $RPM_BUILD_ROOT
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/gtk-doc/html/gegl %dir %{_datadir}/gtk-doc/html/gegl
%{_datadir}/gtk-doc/html/gegl/*
%changelog %changelog