%bcond_without html5 # HTML5 viewer
%bcond_without magick # ImageMagick coder
#
+# html5 requires cito that requires mono that is not available yet on x32
+%ifarch x32
+%undefine with_html5
+%endif
+
Summary: FAIL - First Atari Image Library
Summary(pl.UTF-8): FAIL (First Atari Image Library) - biblioteka do obrazów w formatach Atari
Name: fail
-Version: 2.0.0
-Release: 1
+Version: 2.0.1
+Release: 12
License: GPL v2+
Group: Applications/Graphics
Source0: http://downloads.sourceforge.net/fail/%{name}-%{version}.tar.gz
-# Source0-md5: de3592b78144ef3c6b2e98377522df69
+# Source0-md5: b9362106f9a23a1f99ff7bece94d9aa7
+Patch0: imagemagick7.patch
URL: http://fail.sourceforge.net/
%{?with_magick:BuildRequires: ImageMagick-devel >= 1:6.8}
%{?with_html5:BuildRequires: asciidoc}
%prep
%setup -q
+%patch0 -p1
%build
%{__make} all fail-mime.xml \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -Wall" \
%if %{with magick}
- MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-6/private \
+ MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-7/private \
CAN_INSTALL_MAGICK=1
%endif