%bcond_without png # without PNG images support
%bcond_without sane # without SANE scanning support (in ida)
%bcond_without tiff # without TIFF images support
-#
-%if !%{with motif}
+%bcond_without webp # without WebP images support
+
+%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.07
-Release: 2
+Version: 2.09
+Release: 13
License: GPL
Group: Applications/Graphics
-Source0: http://dl.bytesex.org/releases/fbida/%{name}-%{version}.tar.gz
-# Source0-md5: 3e05910fb7c1d9b2bd3e272d96db069c
+Source0: http://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz
+# Source0-md5: 62415c7cb28d995f9d317868de0f2830
Patch0: %{name}-config-noforce.patch
Patch1: %{name}-desktop.patch
-Patch2: %{name}-libpng-1.4.patch
-URL: http://linux.bytesex.org/fbida/
+Patch2: format-security.patch
+Patch3: %{name}-giflib.patch
+URL: http://www.kraxel.org/blog/linux/fbida/
BuildRequires: ImageMagick-devel
%{?with_curl:BuildRequires: curl-devel}
BuildRequires: fontconfig-devel
%{?with_pcd:BuildRequires: libpcd-devel >= 1:1.0.1}
%{?with_png:BuildRequires: libpng-devel}
%{?with_tiff:BuildRequires: libtiff-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}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
CFLAGS="%{rpmcflags}" \
%{!?with_gif:HAVE_LIBUNGIF=no} \
%{!?with_png:HAVE_LIBPNG=no} \
%{!?with_tiff:HAVE_LIBTIFF=no} \
+ %{!?with_webp:HAVE_LIBWEBP=no} \
%{!?with_sane:HAVE_LIBSANE=no} \
%{!?with_curl:HAVE_LIBCURL=no} \
%{!?with_lirc:HAVE_LIBLIRC=no} \
%{!?with_gif:HAVE_LIBUNGIF=no} \
%{!?with_png:HAVE_LIBPNG=no} \
%{!?with_tiff:HAVE_LIBTIFF=no} \
+ %{!?with_webp:HAVE_LIBWEBP=no} \
%{!?with_sane:HAVE_LIBSANE=no} \
%{!?with_curl:HAVE_LIBCURL=no} \
%{!?with_lirc:HAVE_LIBLIRC=no} \