Accepting request 258463 from graphics
1 OBS-URL: https://build.opensuse.org/request/show/258463 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gegl?expand=0&rev=28
This commit is contained in:
commit
03ddf9c707
44
gegl-UF_long.patch
Normal file
44
gegl-UF_long.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
Index: gegl-0.2.0/operations/external/matting-levin.c
|
||||||
|
===================================================================
|
||||||
|
--- gegl-0.2.0.orig/operations/external/matting-levin.c
|
||||||
|
+++ gegl-0.2.0/operations/external/matting-levin.c
|
||||||
|
@@ -848,8 +848,8 @@ matting_sparse_new (guint cols, guint ro
|
||||||
|
sparse_t *s = g_new (sparse_t, 1);
|
||||||
|
s->columns = cols;
|
||||||
|
s->rows = rows;
|
||||||
|
- s->col_idx = g_new (UF_long, cols + 1);
|
||||||
|
- s->row_idx = g_new (UF_long, elems);
|
||||||
|
+ s->col_idx = g_new (SuiteSparse_long, cols + 1);
|
||||||
|
+ s->row_idx = g_new (SuiteSparse_long, elems);
|
||||||
|
s->values = g_new0 (gdouble, elems);
|
||||||
|
|
||||||
|
return s;
|
||||||
|
@@ -948,7 +948,7 @@ matting_get_laplacian (const gdouble
|
||||||
|
image_elems = roi->width * roi->height,
|
||||||
|
i, j, k, x, y,
|
||||||
|
status;
|
||||||
|
- UF_long *trip_col,
|
||||||
|
+ SuiteSparse_long *trip_col,
|
||||||
|
*trip_row;
|
||||||
|
glong trip_nz = 0,
|
||||||
|
trip_cursor = 0,
|
||||||
|
@@ -979,8 +979,8 @@ matting_get_laplacian (const gdouble
|
||||||
|
trip_nz = trip_masked * window_elems * window_elems;
|
||||||
|
trip_nz += image_elems; // Sparse diagonal and row summing at conclusion
|
||||||
|
|
||||||
|
- trip_col = g_new (UF_long, trip_nz);
|
||||||
|
- trip_row = g_new (UF_long, trip_nz);
|
||||||
|
+ trip_col = g_new (SuiteSparse_long, trip_nz);
|
||||||
|
+ trip_row = g_new (SuiteSparse_long, trip_nz);
|
||||||
|
trip_val = g_new0 (gdouble, trip_nz);
|
||||||
|
|
||||||
|
/* Compute the contribution of each pixel in the image to the laplacian */
|
||||||
|
@@ -1066,7 +1066,7 @@ matting_get_laplacian (const gdouble
|
||||||
|
for (y = 0; y < window_elems; ++y)
|
||||||
|
for (x = 0; x < window_elems; ++x)
|
||||||
|
{
|
||||||
|
- UF_long yx = y % diameter,
|
||||||
|
+ SuiteSparse_long yx = y % diameter,
|
||||||
|
yy = y / diameter,
|
||||||
|
xx = x % diameter,
|
||||||
|
xy = x / diameter;
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 25 19:46:46 UTC 2014 - i@marguerite.su
|
||||||
|
|
||||||
|
- fix build for factory
|
||||||
|
* add patch: gegl-UF_long.patch
|
||||||
|
* newer suitesparse abandoned UF_long in favor for SuiteSparse_long
|
||||||
|
- fix build for graphics repo
|
||||||
|
* ugly fix, multiple provides of gd by gd and gd-tools from libgd2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 4 14:31:22 UTC 2013 - coolo@suse.com
|
Mon Feb 4 14:31:22 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
53
gegl.spec
53
gegl.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gegl
|
# spec file for package gegl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 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
|
||||||
@ -16,10 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_package_requires libgegl-0_2-0 = %{version}-%{release}
|
||||||
Name: gegl
|
Name: gegl
|
||||||
|
Version: 0.2.0
|
||||||
|
Release: 0
|
||||||
|
Summary: Generic Graphics Library
|
||||||
|
License: GPL-3.0+ and LGPL-3.0+
|
||||||
|
Group: System/Libraries
|
||||||
|
Url: http://gegl.org/
|
||||||
|
Source: http://ftp.gtk.org/pub/gegl/0.2/%{name}-%{version}.tar.bz2
|
||||||
|
# PATCH-FIX-UPSTREAM gegl-lua52.patch bgo#667675 vuntz@opensuse.org -- Fix build with lua 5.2
|
||||||
|
Patch0: gegl-lua52.patch
|
||||||
|
# PATCH-FIX-UPSTREAM gegl-ruby19.patch dimstar@opensuse.org -- Fix build with ruby 1.9
|
||||||
|
Patch1: gegl-ruby19.patch
|
||||||
# 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.
|
||||||
|
# PATCH-FIX-UPSTREAM sutesparse changed UF_long for SuiteSparse_long
|
||||||
|
Patch2: gegl-UF_long.patch
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
BuildRequires: OpenEXR-devel
|
BuildRequires: OpenEXR-devel
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
@ -27,8 +41,12 @@ BuildRequires: asciidoc
|
|||||||
BuildRequires: babl-devel >= 0.1.10
|
BuildRequires: babl-devel >= 0.1.10
|
||||||
BuildRequires: enscript
|
BuildRequires: enscript
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
# multiple provides by gd and gd-tools
|
||||||
|
BuildRequires: gd
|
||||||
BuildRequires: glib2-devel >= 2.16.1
|
BuildRequires: glib2-devel >= 2.16.1
|
||||||
BuildRequires: graphviz-gd
|
BuildRequires: graphviz-gd
|
||||||
|
# Only for directory ownership:
|
||||||
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: lensfun-devel
|
BuildRequires: lensfun-devel
|
||||||
@ -46,8 +64,7 @@ BuildRequires: lua-devel
|
|||||||
BuildRequires: ruby
|
BuildRequires: ruby
|
||||||
# For umfpack
|
# For umfpack
|
||||||
BuildRequires: suitesparse-devel
|
BuildRequires: suitesparse-devel
|
||||||
# Only for directory ownership:
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: gtk-doc
|
|
||||||
%if 0%{?BUILD_ORIG}
|
%if 0%{?BUILD_ORIG}
|
||||||
BuildRequires: ffmpeg-devel
|
BuildRequires: ffmpeg-devel
|
||||||
%if 0%{?BUILD_ORIG_ADDON}
|
%if 0%{?BUILD_ORIG_ADDON}
|
||||||
@ -59,19 +76,6 @@ Obsoletes: %{name}-orig-addon
|
|||||||
%else
|
%else
|
||||||
Provides: patched_subset
|
Provides: patched_subset
|
||||||
%endif
|
%endif
|
||||||
Url: http://gegl.org/
|
|
||||||
Version: 0.2.0
|
|
||||||
Release: 0
|
|
||||||
Summary: Generic Graphics Library
|
|
||||||
License: GPL-3.0+ and LGPL-3.0+
|
|
||||||
Group: System/Libraries
|
|
||||||
Source: http://ftp.gtk.org/pub/gegl/0.2/%{name}-%{version}.tar.bz2
|
|
||||||
# PATCH-FIX-UPSTREAM gegl-lua52.patch bgo#667675 vuntz@opensuse.org -- Fix build with lua 5.2
|
|
||||||
Patch0: gegl-lua52.patch
|
|
||||||
# PATCH-FIX-UPSTREAM gegl-ruby19.patch dimstar@opensuse.org -- Fix build with ruby 1.9
|
|
||||||
Patch1: gegl-ruby19.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%define debug_package_requires libgegl-0_2-0 = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GEGL provides infrastructure to do demand based cached non destructive
|
GEGL provides infrastructure to do demand based cached non destructive
|
||||||
@ -92,7 +96,6 @@ input and output.
|
|||||||
|
|
||||||
%if 0%{?BUILD_ORIG}
|
%if 0%{?BUILD_ORIG}
|
||||||
%if 0%{?BUILD_ORIG_ADDON}
|
%if 0%{?BUILD_ORIG_ADDON}
|
||||||
|
|
||||||
%package 0_2-orig-addon
|
%package 0_2-orig-addon
|
||||||
Summary: Generic Graphics Library
|
Summary: Generic Graphics Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -145,29 +148,33 @@ support for a wide range of color models and pixel storage formats for
|
|||||||
input and output.
|
input and output.
|
||||||
|
|
||||||
%lang_package -n %{name}-0_2
|
%lang_package -n %{name}-0_2
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%if 0%{?suse_version} > 1310
|
||||||
|
%patch2 -p1
|
||||||
|
%endif
|
||||||
# docs-build-fix.diff
|
# docs-build-fix.diff
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
## do not use autogen.sh, it intentionally fails, if there is no ruby.
|
## do not use autogen.sh, it intentionally fails, if there is no ruby.
|
||||||
## so why use autogen, when you do not want portability?
|
## so why use autogen, when you do not want portability?
|
||||||
# ./autogen.sh
|
# ./autogen.sh
|
||||||
%configure\
|
%configure\
|
||||||
--enable-workshop=yes\
|
--enable-workshop=yes\
|
||||||
--disable-static --disable-silent-rules
|
--disable-static --disable-silent-rules
|
||||||
make %{?jobs:-j%jobs}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
%if ! 0%{?BUILD_ORIG}
|
%if ! 0%{?BUILD_ORIG}
|
||||||
for MODULE in \
|
for MODULE in \
|
||||||
%{_libdir}/gegl-0.2/ff-load.so \
|
%{_libdir}/gegl-0.2/ff-load.so \
|
||||||
; do
|
; do
|
||||||
rm -f $RPM_BUILD_ROOT$MODULE
|
rm -f %{buildroot}$MODULE
|
||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
@ -177,9 +184,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
|
|
||||||
%postun -n libgegl-0_2-0 -p /sbin/ldconfig
|
%postun -n libgegl-0_2-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/gegl
|
%{_bindir}/gegl
|
||||||
@ -214,5 +218,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc %{_datadir}/gtk-doc/html/gegl/
|
%doc %{_datadir}/gtk-doc/html/gegl/
|
||||||
|
|
||||||
%files -n %{name}-0_2-lang -f %{name}-0.2.lang
|
%files -n %{name}-0_2-lang -f %{name}-0.2.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user