-# TODO: maxflow >= 3.0.4
#
# Conditional build:
%bcond_without doc # apidocs
Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
Name: gegl
Version: 0.4.30
-Release: 1
+Release: 5
License: LGPL v3+/GPL v3+
Group: Libraries
Source0: https://download.gimp.org/pub/gegl/0.4/%{name}-%{version}.tar.xz
Patch3: umfpack.patch
Patch4: %{name}-link.patch
Patch5: %{name}-no-lua.patch
+Patch6: openexr3.patch
URL: https://www.gegl.org/
BuildRequires: OpenEXR-devel >= 1.6.1
BuildRequires: SDL2-devel >= 2.0.5
BuildRequires: exiv2-devel >= 0.25
# libavcodec >= 55.69.100, libavformat >= 55.48.100, libavutil >= 55.92.100, libswscale >= 2.6.100
BuildRequires: ffmpeg-devel >= 2.3
+BuildRequires: gcc >= 5:4.7
BuildRequires: gdk-pixbuf2-devel >= 2.32.0
BuildRequires: gettext-tools >= 0.19.8
BuildRequires: gexiv2-devel
BuildRequires: libraw-devel >= 0.15.4
BuildRequires: librsvg-devel >= 1:2.40.6
BuildRequires: libspiro-devel >= 0.5.0
+BuildRequires: libstdc++-devel >= 6:5
BuildRequires: libtiff-devel >= 4.0.0
BuildRequires: libv4l-devel >= 1.0.1
BuildRequires: libwebp-devel >= 0.5.0
BuildRequires: luajit-devel >= 2.0.4
BuildRequires: lua51-devel >= 5.1.5-2
%endif
+BuildRequires: maxflow-devel >= 3.0.4
BuildRequires: meson >= 0.50.0
BuildRequires: mrg-devel >= %{mrg_ver}
BuildRequires: ninja >= 1.5
Requires: libspiro >= 0.5.0
Requires: libtiff >= 4.0.0
Requires: libwebp >= 0.5.0
+Requires: maxflow >= 3.0.4
Requires: mrg-libs >= %{mrg_ver}
Requires: pango >= 1:1.38.0
Requires: poppler-glib >= 0.71.0
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
CPPFLAGS="%{rpmcppflags} -I/usr/include/umfpack"