%if %{without introspection}
%undefine with_vala
%endif
+
+%define babl_version 0.1.46
+%define mrg_version 0.1.2-1.20180122.1
+
Summary: Generic image processing library
Summary(pl.UTF-8): Ogólna biblioteka przetwarzania obrazu
Name: gegl
-Version: 0.3.0
+Version: 0.3.34
Release: 1
License: LGPL v3+
Group: Libraries
-Source0: http://ftp.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2
-# Source0-md5: 6d71daab78377d5074a74651bbf7a76a
-Patch0: %{name}-lua.patch
-Patch2: %{name}-ruby1.9.patch
-Patch3: %{name}-build.patch
-Patch5: umfpack.patch
+Source0: https://download.gimp.org/pub/gegl/0.3/%{name}-%{version}.tar.bz2
+# Source0-md5: e6758d2526c27dd3a34d3470aa844112
+Patch1: %{name}-ruby1.9.patch
+Patch2: %{name}-build.patch
+Patch3: umfpack.patch
+Patch4: %{name}-ffmpeg4.patch
URL: http://www.gegl.org/
-BuildRequires: OpenEXR-devel
-BuildRequires: SDL-devel
+BuildRequires: OpenEXR-devel >= 1.6.1
+BuildRequires: SDL-devel >= 1.2.0
BuildRequires: UMFPACK-devel
BuildRequires: asciidoc
BuildRequires: autoconf >= 2.54
BuildRequires: automake >= 1:1.11
-BuildRequires: babl-devel >= 0.1.12
-BuildRequires: cairo-devel
+BuildRequires: babl-devel >= %{babl_version}
+BuildRequires: cairo-devel >= 1.12.2
BuildRequires: enscript
-BuildRequires: exiv2-devel
-# libavformat >= 53.0.0, libavcodec >= 53.0.0
-BuildRequires: ffmpeg-devel >= 0.8
-BuildRequires: gdk-pixbuf2-devel >= 2.18.0
+BuildRequires: exiv2-devel >= 0.25
+# libavformat >= 55.48.100, libavcodec >= 55.69.100, libswscale >= 2.6.100
+BuildRequires: ffmpeg-devel >= 2.3
+BuildRequires: gdk-pixbuf2-devel >= 2.32.0
BuildRequires: gettext-tools
-BuildRequires: glib2-devel >= 1:2.36.0
+BuildRequires: gexiv2-devel
+BuildRequires: glib2-devel >= 1:2.44.0
%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
BuildRequires: graphviz
BuildRequires: gtk-doc >= 1.0
BuildRequires: intltool >= 0.40.1
BuildRequires: jasper-devel >= 1.900.1
BuildRequires: json-glib-devel
-BuildRequires: lcms2-devel >= 2.2
+BuildRequires: lcms2-devel >= 2.8
BuildRequires: lensfun-devel >= 0.2.5
BuildRequires: libjpeg-devel
-BuildRequires: libopenraw-devel >= 0.0.5
BuildRequires: libpng-devel
-BuildRequires: librsvg-devel >= 1:2.14.0
+BuildRequires: libraw-devel >= 0.15.4
+BuildRequires: librsvg-devel >= 1:2.40.6
BuildRequires: libspiro-devel
+BuildRequires: libtiff-devel >= 4.0.0
BuildRequires: libtool >= 2:2.2
BuildRequires: libv4l-devel >= 1.0.1
-BuildRequires: libwebp-devel
-BuildRequires: lua51-devel >= 5.1.0
-BuildRequires: pango-devel >= 1:1.10
+BuildRequires: libwebp-devel >= 0.5.0
+BuildRequires: lua51-devel >= 5.1.5-2
+BuildRequires: mrg-devel >= %{mrg_version}
+BuildRequires: pango-devel >= 1:1.38.0
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: python >= 1:2.5.0
BuildRequires: poly2tri-c-devel
BuildRequires: ruby >= 1.9
%{?with_vala:BuildRequires: vala >= 2:0.20.0}
-Requires: babl >= 0.1.12
-Requires: gdk-pixbuf2 >= 2.18.0
-Requires: glib2 >= 1:2.36.0
+Requires: babl >= %{babl_version}
+Requires: gdk-pixbuf2 >= 2.32.0
+Requires: glib2 >= 1:2.44.0
Requires: jasper-libs >= 1.900.1
Requires: lensfun >= 0.2.5
-Requires: libopenraw >= 0.0.5
-Requires: librsvg >= 1:2.14.0
+Requires: libraw >= 0.15.4
+Requires: librsvg >= 1:2.40.6
+Requires: libtiff >= 4.0.0
+Requires: mrg-libs >= %{mrg_version}
+Requires: pango >= 1:1.38.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: babl-devel >= 0.1.12
-Requires: glib2-devel >= 1:2.36.0
+Requires: babl-devel >= %{babl_version}
+Requires: glib2-devel >= 1:2.44.0
%description devel
Header files for gegl library.
Summary(pl.UTF-8): API języka Vala dla biblioteki gegl
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description -n vala-gegl
Vala API for gegl library.
%prep
%setup -q
-%patch0 -p1
+%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch5 -p1
+%patch4 -p0
%build
%{__libtoolize}
%if %{with static_libs}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.3/*.a
%endif
-# examples with too common names
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/{hello-world,sdl-draw}
%find_lang %{name}-0.3
%files -f %{name}-0.3.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/2geglbuffer
+%attr(755,root,root) %{_bindir}/gcut
%attr(755,root,root) %{_bindir}/gegl
-%attr(755,root,root) %{_bindir}/gegl-convert
%attr(755,root,root) %{_bindir}/gegl-imgcmp
-%attr(755,root,root) %{_bindir}/gegl-slicer
-%attr(755,root,root) %{_bindir}/gegl-tester
-%attr(755,root,root) %{_bindir}/geglbuffer-add-image
-%attr(755,root,root) %{_bindir}/geglbuffer-clock
%attr(755,root,root) %{_libdir}/libgegl-0.3.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgegl-0.3.so.0
%attr(755,root,root) %{_libdir}/libgegl-npd-0.3.so