From 42e7746f630add48b1536355fef211a60c95d7c4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:07:49 +0100 Subject: [PATCH] add unversioned symlinks for pkgconfig files [release 1.3.0-3mamba;Sun Mar 24 2019] --- libmypaint-1.3.0-libgegl-0.4.14.patch | 20 ++++++++++++++++++++ libmypaint.spec | 13 +++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 libmypaint-1.3.0-libgegl-0.4.14.patch diff --git a/libmypaint-1.3.0-libgegl-0.4.14.patch b/libmypaint-1.3.0-libgegl-0.4.14.patch new file mode 100644 index 0000000..b2dd05a --- /dev/null +++ b/libmypaint-1.3.0-libgegl-0.4.14.patch @@ -0,0 +1,20 @@ +--- libmypaint-1.3.0/gegl/mypaint-gegl-surface.c.orig 2019-03-24 20:43:10.866854526 +0100 ++++ libmypaint-1.3.0/gegl/mypaint-gegl-surface.c 2019-03-24 20:44:52.576300233 +0100 +@@ -78,7 +78,7 @@ + + if (buffer_is_native(self)) { + GeglBufferIterator *iterator = gegl_buffer_iterator_new(self->buffer, &tile_bbox, 0, self->format, +- read_write_flags, GEGL_ABYSS_NONE); ++ read_write_flags, GEGL_ABYSS_NONE,100); + + // Read out + gboolean completed = gegl_buffer_iterator_next(iterator); +@@ -88,7 +88,7 @@ + g_critical("Unable to get tile aligned access to GeglBuffer"); + request->buffer = NULL; + } else { +- request->buffer = (uint16_t *)(iterator->data[0]); ++ request->buffer = (uint16_t *)(iterator->items[0].data); + } + + // So we can finish the iterator in tile_request_end() diff --git a/libmypaint.spec b/libmypaint.spec index 3999786..acc681d 100644 --- a/libmypaint.spec +++ b/libmypaint.spec @@ -1,6 +1,7 @@ +%define majver %(echo %version | cut -d. -f1-2) Name: libmypaint Version: 1.3.0 -Release: 2mamba +Release: 3mamba Summary: MyPaint brush engine library Group: System/Libraries Vendor: openmamba @@ -10,6 +11,7 @@ URL: http://mypaint.org/ Source: https://github.com/mypaint/libmypaint/archive/v%{version}.zip Patch0: libmypaint-1.3.0-versioning.patch Patch1: libmypaint-1.3.0-libgegl-0.4.8.patch +Patch2: libmypaint-1.3.0-libgegl-0.4.14.patch License: ISC License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -48,6 +50,7 @@ This package contains libraries and header files for developing applications tha %setup -q %patch0 -p2 %patch1 -p1 +%patch2 -p1 %build ./autogen.sh @@ -59,6 +62,9 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall +ln -s libmypaint-%{majver}.pc %{buildroot}%{_libdir}/pkgconfig/libmypaint.pc +ln -s libmypaint-gegl-%{majver}.pc %{buildroot}%{_libdir}/pkgconfig/libmypaint-gegl.pc + %find_lang %{name} --all-name || touch %{name}.lang %clean @@ -79,12 +85,15 @@ This package contains libraries and header files for developing applications tha %{_includedir}/libmypaint-*/mypaint-*.h %{_libdir}/libmypaint-*.la %{_libdir}/libmypaint-*.so -%{_libdir}/pkgconfig/libmypaint-*.pc +%{_libdir}/pkgconfig/libmypaint*.pc %{_datadir}/gir-1.0/MyPaint-*.gir %{_datadir}/gir-1.0/MyPaintGegl-*.gir %doc README.md TODO %changelog +* Sun Mar 24 2019 Silvan Calarco 1.3.0-3mamba +- add unversioned symlinks for pkgconfig files + * Tue Oct 09 2018 Silvan Calarco 1.3.0-2mamba - rebuilt with --enable-gegl, added patches from arch