From 8f926813f678ca59d953adc5aab6ce27c0fca5b6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:21:58 +0100 Subject: [PATCH] rebuilt with libsuitesparse 4.0.2 [release 0.2.0-3mamba;Mon Feb 18 2013] --- README.md | 3 + libgegl-0.1.8-ffmpeg.patch | 38 +++++ libgegl-0.1.8-fix_build.patch | 26 ++++ libgegl-0.2.0-liblua-5.2.patch | 269 +++++++++++++++++++++++++++++++++ libgegl.spec | 245 ++++++++++++++++++++++++++++++ 5 files changed, 581 insertions(+) create mode 100644 libgegl-0.1.8-ffmpeg.patch create mode 100644 libgegl-0.1.8-fix_build.patch create mode 100644 libgegl-0.2.0-liblua-5.2.patch create mode 100644 libgegl.spec diff --git a/README.md b/README.md index c73b1bf..49498c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # libgegl +GEGL provides infrastructure to do demand based cached non destructive image editing on larger than RAM buffers. +Through babl it provides support for a wide range of color models and pixel storage formats for input and output. + diff --git a/libgegl-0.1.8-ffmpeg.patch b/libgegl-0.1.8-ffmpeg.patch new file mode 100644 index 0000000..b4156d7 --- /dev/null +++ b/libgegl-0.1.8-ffmpeg.patch @@ -0,0 +1,38 @@ +--- gegl-0.1.8.orig/operations/workshop/external/ff-save.c 2012-02-11 15:53:58.347480007 +0100 ++++ gegl-0.1.8/operations/workshop/external/ff-save.c 2012-02-11 15:55:57.422072494 +0100 +@@ -455,7 +455,7 @@ + p->audio_outbuf_size, p->samples); + + pkt.pts = c->coded_frame->pts; +- pkt.flags |= PKT_FLAG_KEY; ++ pkt.flags |= AV_PKT_FLAG_KEY; + pkt.stream_index = st->index; + pkt.data = p->audio_outbuf; + +@@ -496,7 +496,7 @@ + + c = st->codec; + c->codec_id = codec_id; +- c->codec_type = CODEC_TYPE_VIDEO; ++ c->codec_type = AVMEDIA_TYPE_VIDEO; + + /* put sample propeters */ + c->bit_rate = op->bitrate; +@@ -689,7 +689,7 @@ + AVPacket pkt; + av_init_packet (&pkt); + +- pkt.flags |= PKT_FLAG_KEY; ++ pkt.flags |= AV_PKT_FLAG_KEY; + pkt.stream_index = st->index; + pkt.data = (uint8_t *) picture_ptr; + pkt.size = sizeof (AVPicture); +@@ -712,7 +712,7 @@ + + pkt.pts = c->coded_frame->pts; + if (c->coded_frame->key_frame) +- pkt.flags |= PKT_FLAG_KEY; ++ pkt.flags |= AV_PKT_FLAG_KEY; + pkt.stream_index = st->index; + pkt.data = p->video_outbuf; + pkt.size = out_size; diff --git a/libgegl-0.1.8-fix_build.patch b/libgegl-0.1.8-fix_build.patch new file mode 100644 index 0000000..951b2bf --- /dev/null +++ b/libgegl-0.1.8-fix_build.patch @@ -0,0 +1,26 @@ +From 60c5abed6c97559ac75d8550e29e5e1c425fb733 Mon Sep 17 00:00:00 2001 +From: Øyvind Kolås +Date: Wed, 04 Jan 2012 04:52:23 +0000 +Subject: build: add GEGL-0.1.deps to EXTRA_DIST + +--- +diff --git a/gegl/Makefile.am b/gegl/Makefile.am +index 3d3605f..02a540e 100644 +--- a/gegl/Makefile.am ++++ b/gegl/Makefile.am +@@ -138,6 +138,8 @@ vapi_DATA = \ + + endif # HAVE_VALA + ++EXTRA_DIST = gegl-@GEGL_API_VERSION@.deps ++ + endif # HAVE_INTROSPECTION + + # +-- +cgit v0.9.0.2 +diff -Nru gegl-0.1.8.orig/gegl/gegl-0.1.deps gegl-0.1.8/gegl/gegl-0.1.deps +--- gegl-0.1.8.orig/gegl/gegl-0.1.deps 1970-01-01 01:00:00.000000000 +0100 ++++ gegl-0.1.8/gegl/gegl-0.1.deps 2012-01-05 19:58:45.593314031 +0100 +@@ -0,0 +1 @@ ++babl-0.1 diff --git a/libgegl-0.2.0-liblua-5.2.patch b/libgegl-0.2.0-liblua-5.2.patch new file mode 100644 index 0000000..42afe73 --- /dev/null +++ b/libgegl-0.2.0-liblua-5.2.patch @@ -0,0 +1,269 @@ + + + + + commit a5b601502d3293966994911cfcab6a0eb0d68e41 Author: Vincent Untz <vuntz@gno - Pastebin.com + + + + + + + + + + + + + + + + +
+ + + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+ Guest +
+
+

Untitled

+
By: a guest on Nov 19th, 2012  |  syntax: None  |  size: 1.26 KB  |  hits: 3  |  expires: in 58 min
+
download  |  raw  |  embed  |  report abuse
+
+
+ + +
+
+
+ + + + Copied +
+
  1. commit a5b601502d3293966994911cfcab6a0eb0d68e41
  2. +
  3. Author: Vincent Untz <vuntz@gnome.org>
  4. +
  5. Date:   Wed Jan 11 09:52:25 2012 +0100
  6. +
  7.  
  8. +
  9.     Fix build with lua 5.2 by not using API deprecated in 5.1 already
  10. +
  11.    
  12. +
  13.     https://bugzilla.gnome.org/show_bug.cgi?id=667675
  14. +
  15.  
  16. +
  17. diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
  18. +
  19. index 536f1d9..dbcc362 100644
  20. +
  21. --- a/operations/workshop/external/gluas.c
  22. +
  23. +++ b/operations/workshop/external/gluas.c
  24. +
  25. @@ -97,7 +97,7 @@ static int l_progress  (lua_State * lua);
  26. +
  27.  static int l_flush     (lua_State * lua);
  28. +
  29.  static int l_print     (lua_State * lua);
  30. +
  31.  
  32. +
  33. -static const luaL_reg gluas_functions[] =
  34. +
  35. +static const luaL_Reg gluas_functions[] =
  36. +
  37.  {
  38. +
  39.      {"set_rgba",    l_set_rgba},
  40. +
  41.      {"get_rgba",    l_get_rgba},
  42. +
  43. @@ -122,7 +122,7 @@ static const luaL_reg gluas_functions[] =
  44. +
  45.  };
  46. +
  47.  static void
  48. +
  49.  register_functions (lua_State      *L,
  50. +
  51. -                    const luaL_reg *l)
  52. +
  53. +                    const luaL_Reg *l)
  54. +
  55.  {
  56. +
  57.    for (;l->name; l++)
  58. +
  59.      lua_register (L, l->name, l->func);
  60. +
  61. @@ -146,7 +146,7 @@ drawable_lua_process (GeglOperation       *op,
  62. +
  63.      lua_State *L;
  64. +
  65.      Priv p;
  66. +
  67.  
  68. +
  69. -    L = lua_open ();
  70. +
  71. +    L = luaL_newstate ();
  72. +
  73.      luaL_openlibs (L);
  74. +
  75.  
  76. +
  77.      register_functions (L, gluas_functions);
  78. +
+
+
+ create a new version of this paste + RAW Paste Data +
+
+
+ +
+
+ + + +
+
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/libgegl.spec b/libgegl.spec new file mode 100644 index 0000000..6be5c08 --- /dev/null +++ b/libgegl.spec @@ -0,0 +1,245 @@ +%define majver %(echo %version | cut -d. -f 1-2) +%define apiver %{majver} + +Name: libgegl +Version: 0.2.0 +Release: 3mamba +Summary: GEGL (Generic Graphics Library) is a graph based image processing framework. +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: http://gegl.org/ +Source: ftp://ftp.gimp.org/pub/gegl/%{majver}/gegl-%{version}.tar.bz2 +Patch0: %{name}-0.1.8-fix_build.patch +Patch1: %{name}-0.1.8-ffmpeg.patch +Patch2: libgegl-0.2.0-liblua-5.2.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libavcodec-ffmpeg-devel +BuildRequires: libavformat-ffmpeg-devel +BuildRequires: libbabl-devel +BuildRequires: libbzip2-devel +BuildRequires: libcairo-devel +BuildRequires: libcroco-devel +BuildRequires: libdirectfb-devel +BuildRequires: libexpat-devel +BuildRequires: libffi-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgraphite2-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libilmbase-devel +BuildRequires: libjasper-devel +BuildRequires: libjpeg-devel +BuildRequires: liblensfun-devel +BuildRequires: liblua-devel +BuildRequires: liblzma-devel +BuildRequires: libopenexr-devel +BuildRequires: libopenraw-devel +BuildRequires: libpango-devel +BuildRequires: libpng-devel +BuildRequires: libreadline-devel +BuildRequires: librsvg-devel +BuildRequires: libSDL-devel +BuildRequires: libselinux-devel +BuildRequires: libspiro-devel +BuildRequires: libstdc++6-devel +BuildRequires: libswscale-ffmpeg-devel +BuildRequires: libts-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: asciidoc +Requires: enscript +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +#Optional features: +# GEGL docs: yes +# Build workshop: yes +# Build website: yes +# SIMD: sse:yes mmx:yes + +#Optional dependencies: +# GTK+: yes +# GIO: yes +# Ruby: yes +# Lua: yes +# Cairo: yes +# Pango: yes +# pangocairo: yes +# GDKPixbuf: yes +# JPEG: yes +# PNG: yes +# OpenEXR: yes +# rsvg: yes +# SDL: yes +# openraw: yes +# asciidoc: yes +# enscript: yes +# graphviz: yes +# avcodec: yes +# avformat: yes +# V4L: yes +%description +GEGL provides infrastructure to do demand based cached non destructive image editing on larger than RAM buffers. +Through babl it provides support for a wide range of color models and pixel storage formats for input and output. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +GEGL (Generic Graphics Library) is a graph based image processing framework. +GEGL provides infrastructure to do demand based cached non destructive image editing on larger than RAM buffers. +Through babl it provides support for a wide range of color models and pixel storage formats for input and output. + +This package contains static libraries and header files need for development. + +%package apidocs +Summary: %{name} API documentation +Group: Documentation +Provides: %{name}-api +Obsoletes: %{name}-api + +%description apidocs +%{name} API documentation. + +%prep +%setup -q -n gegl-%{version} +#%patch0 -p1 +#%patch1 -p1 +%patch2 -p1 + +# workaround for a libtool error +mkdir operations/workshop/external/lib + +%build +./autogen.sh +#export CAIRO_CFLAGS=-I/usr/include/cairo +%configure \ + --enable-gtk-doc \ + --enable-workshop \ + --enable-static \ + --without-vala + +%make +#make check + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall gtkdochtmldir=%{_datadir}/gtk-doc/html/gegl +install -d %{buildroot}%{_datadir}/applications +install -d %{buildroot}%{_datadir}/pixmaps + +#install -m 644 docs/gallery/data/gegl.png %{buildroot}%{_datadir}/pixmaps + +#cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +#[Desktop Entry] +#Name=GEGL +#GenericName=Generic Graphics Library +#Comment=A graph based image processing framework +#Exec=/usr/bin/gegl +#Icon=/usr/share/pixmaps/gegl.png +#Terminal=false +#Type=Application +#Categories=KDE;Graphics; +#EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/gegl +%{_libdir}/*.so.* +#%{_datadir}/gir-1.0/Gegl-0.1.gir +%dir %{_libdir}/gegl-%{apiver} +%{_libdir}/gegl-%{apiver}/*.a +%{_libdir}/gegl-%{apiver}/*.la +%{_libdir}/gegl-%{apiver}/*.so +%{_datadir}/locale/*/LC_MESSAGES/gegl-0.2.mo +%doc AUTHORS COPYING COPYING.LESSER + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/gegl-%{apiver} +%{_includedir}/gegl-%{apiver}/*.h +%{_includedir}/gegl-%{apiver}/opencl/*.h +%dir %{_includedir}/gegl-%{apiver}/operation +%{_includedir}/gegl-%{apiver}/operation/*.h +%dir %{_libdir}/gegl-%{apiver} +#%{_libdir}/girepository-1.0/Gegl-0.1.typelib +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%doc ChangeLog NEWS README + +%files apidocs +%defattr(-,root,root) +%{_datadir}/gtk-doc/html/gegl/*.html +%{_datadir}/gtk-doc/html/gegl/gegl.css +%{_datadir}/gtk-doc/html/gegl/gegl.devhelp + +%changelog +* Mon Feb 18 2013 Silvan Calarco 0.2.0-3mamba +- rebuilt with libsuitesparse 4.0.2 + +* Tue Nov 20 2012 Silvan Calarco 0.2.0-2mamba +- rebuilt (added lua 5.2 patch) + +* Thu May 03 2012 Ercole 'ercolinux' Carpanetto 0.2.0-1mamba +- update to 0.2.0 + +* Mon Mar 05 2012 Silvan Calarco 0.1.8-3mamba +- rebuilt with libsuitesparse (obsoleting libumfpack) + +* Sat Feb 11 2012 Silvan Calarco 0.1.8-2mamba +- move plugin libraries from devel to main package + +* Thu Jan 05 2012 Silvan Calarco 0.1.8-1mamba +- update to 0.1.8 + +* Sun Jul 24 2011 Automatic Build System 0.1.6-1mamba +- automatic version update by autodist + +* Wed Feb 09 2011 Silvan Calarco 0.1.4-1mamba +- update to 0.1.4 + +* Mon Oct 25 2010 Silvan Calarco 0.1.2-2mamba +- rebuilt with libpng 1.4 + +* Sat May 22 2010 Automatic Build System 0.1.2-1mamba +- automatic update by autodist + +* Sat Jul 18 2009 Silvan Calarco 0.1.0-1mamba +- update to 0.1.0 + +* Tue Mar 10 2009 Silvan Calarco 0.0.22-1mamba +- update to 0.0.22 +- removed desktop entry +- api package renamed to apidocs + +* Wed Dec 10 2008 Silvan Calarco 0.0.18-3mamba +- automatic rebuild by autodist + +* Wed Nov 19 2008 Silvan Calarco 0.0.18-2mamba +- automatic rebuild by autodist + +* Wed Oct 15 2008 gil 0.0.18-1mamba +- update to 0.0.18 +- renamed libgegl +- optional features added (workshop, website) +- added desktop file + +* Wed Oct 01 2008 Ercole 'ercolinux' Carpanetto 0.0.10-1mamba +- first build