%bcond_without sane # without SANE scanning support (in ida)
%bcond_without tiff # without TIFF images support
%bcond_without webp # without WebP images support
-#
-%if !%{with motif}
+
+%if %{without motif}
# SANE used only in ida
%undefine with_sane
%endif
Summary: fbida - a few applications for viewing and editing images
Summary(pl.UTF-8): fbida - kilka aplikacji do oglądania i edycji obrazków
Name: fbida
-Version: 2.08
-Release: 1
+Version: 2.09
+Release: 13
License: GPL
Group: Applications/Graphics
Source0: http://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz
-# Source0-md5: 9b3693ab26a58194e36b479bffb61ed0
+# Source0-md5: 62415c7cb28d995f9d317868de0f2830
Patch0: %{name}-config-noforce.patch
Patch1: %{name}-desktop.patch
+Patch2: format-security.patch
+Patch3: %{name}-giflib.patch
URL: http://www.kraxel.org/blog/linux/fbida/
BuildRequires: ImageMagick-devel
%{?with_curl:BuildRequires: curl-devel}
%{?with_webp:BuildRequires: libwebp-devel}
%{?with_lirc:BuildRequires: lirc-devel}
# acc. to README lesstif is not sufficient
-%{?with_motif:BuildRequires: openmotif-devel >= 2.0}
+%{?with_motif:BuildRequires: motif-devel >= 2.0}
BuildRequires: perl-base
BuildRequires: pkgconfig
%{?with_sane:BuildRequires: sane-backends-devel}
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
CFLAGS="%{rpmcflags}" \