2 # - register gnome thumbnailer in more package-friendly way (not multiple gconftool runs)
3 # - webapp config for -html5? (optional, may be used also locally)
6 %bcond_without html5 # HTML5 viewer
7 %bcond_without magick # ImageMagick coder
9 # html5 requires cito that requires mono that is not available yet on x32
14 Summary: FAIL - First Atari Image Library
15 Summary(pl.UTF-8): FAIL (First Atari Image Library) - biblioteka do obrazów w formatach Atari
20 Group: Applications/Graphics
21 Source0: https://downloads.sourceforge.net/recoil/%{name}-%{version}.tar.gz
22 # Source0-md5: 553c54fc7e257850765419b8e7bb5482
23 Patch0: imagemagick7.patch
24 URL: http://recoil.sourceforge.net/
25 %{?with_magick:BuildRequires: ImageMagick-devel >= 1:6.8}
26 %{?with_html5:BuildRequires: asciidoc}
27 %{?with_html5:BuildRequires: cito}
28 BuildRequires: libpng-devel
29 BuildRequires: libxslt-progs
30 BuildRequires: zlib-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define im_coders_dir %(pkg-config --variable moduledir MagickCore)/coders
38 FAIL is a viewer of pictures in native formats of Atari 8-bit, Atari
39 ST, Atari Falcon and Atari Portfolio computers.
41 %description -l pl.UTF-8
42 FAIL to narzędzia do przeglądania obrazów w natywnych formatach
43 komputerów Atari 8-bitowych, Atari ST, Atari Falcon oraz Atari
47 Summary: FAIL support for viewing Atari files in GNOME
48 Summary(pl.UTF-8): Wsparcie FAIL do oglądania plików z Atari w GNOME
49 Group: X11/Applications/Graphics
50 Requires: %{name} = %{version}-%{release}
53 FAIL support for viewing Atari files in GNOME.
55 %description gnome -l pl.UTF-8
56 Wsparcie FAIL do oglądania plików z Atari w GNOME.
59 Summary: HTML5 FAIL viewer for Atari files
60 Summary(pl.UTF-8): Przeglądarka FAIL do plików z Atari w HTML5
61 Group: Applications/WWW
64 HTML5 FAIL viewer for Atari files.
66 %description html5 -l pl.UTF-8
67 Przeglądarka FAIL do plików z Atari w HTML5.
69 %package -n ImageMagick-coder-fail
70 Summary: FAIL coder for ImageMagick
71 Summary(pl.UTF-8): Koder FAIL dla ImageMagicka
73 %requires_ge_to ImageMagick ImageMagick-devel
75 %description -n ImageMagick-coder-fail
76 FAIL coder for ImageMagick to read Atari formats.
78 %description -n ImageMagick-coder-fail -l pl.UTF-8
79 Koder FAIL dla ImageMagicka, czytający formaty Atari.
86 %{__make} all fail-mime.xml \
88 CFLAGS="%{rpmcflags} -Wall" \
90 MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-7/private \
99 rm -rf $RPM_BUILD_ROOT
101 %{__make} install-fail2png \
102 PREFIX=$RPM_BUILD_ROOT%{_prefix}
104 # install-thumbnailer is ugly; for now, install only this one
105 install -D fail-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/fail-mime.xml
108 install -D fail.so $RPM_BUILD_ROOT%{im_coders_dir}/fail.so
109 echo "dlname='fail.so'" >$RPM_BUILD_ROOT%{im_coders_dir}/fail.la
113 install -d $RPM_BUILD_ROOT%{_datadir}/fail-html5
114 cp -p html5/*.{js,html} $RPM_BUILD_ROOT%{_datadir}/fail-html5
118 rm -rf $RPM_BUILD_ROOT
121 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/fail2png
126 %defattr(644,root,root,755)
127 %{_datadir}/mime/packages/fail-mime.xml
132 %defattr(644,root,root,755)
133 %{_datadir}/fail-html5
137 %files -n ImageMagick-coder-fail
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{im_coders_dir}/fail.so
140 %{im_coders_dir}/fail.la