- updated to 2.0.1
[packages/fail.git] / fail.spec
CommitLineData
97165e04
JB
1# TODO:
2# - register gnome thumbnailer in more package-friendly way (not multiple gconftool runs)
3# - webapp config for -html5? (optional, may be used also locally)
4#
5# Conditional build:
6%bcond_without html5 # HTML5 viewer
7%bcond_without magick # ImageMagick coder
8#
3177b633
JB
9Summary: FAIL - First Atari Image Library
10Summary(pl.UTF-8): FAIL (First Atari Image Library) - biblioteka do obrazów w formatach Atari
11Name: fail
8d040bf4 12Version: 2.0.1
3177b633
JB
13Release: 1
14License: GPL v2+
15Group: Applications/Graphics
16Source0: http://downloads.sourceforge.net/fail/%{name}-%{version}.tar.gz
8d040bf4 17# Source0-md5: b9362106f9a23a1f99ff7bece94d9aa7
3177b633 18URL: http://fail.sourceforge.net/
dce5707d 19%{?with_magick:BuildRequires: ImageMagick-devel >= 1:6.8}
97165e04
JB
20%{?with_html5:BuildRequires: asciidoc}
21%{?with_html5:BuildRequires: cito}
3177b633
JB
22BuildRequires: libpng-devel
23BuildRequires: libxslt-progs
24BuildRequires: zlib-devel
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
97165e04 27%if %{with magick}
86e27421 28%define im_coders_dir %{_libdir}/%(MagickCore-config --version | sed -e 's,^\\([.0-9]\\+\\) \\+\\(Q[0-9]\\+\\)\\( \\+\\(HDRI\\)\\)\\?.*,ImageMagick-\\1/modules-\\2\\4,')/coders
97165e04 29%endif
3177b633
JB
30
31%description
32FAIL is a viewer of pictures in native formats of Atari 8-bit, Atari
33ST, Atari Falcon and Atari Portfolio computers.
34
35%description -l pl.UTF-8
36FAIL to narzędzia do przeglądania obrazów w natywnych formatach
37komputerów Atari 8-bitowych, Atari ST, Atari Falcon oraz Atari
38Portfolio.
39
40%package gnome
41Summary: FAIL support for viewing Atari files in GNOME
42Summary(pl.UTF-8): Wsparcie FAIL do oglądania plików z Atari w GNOME
43Group: X11/Applications/Graphics
44Requires: %{name} = %{version}-%{release}
45
46%description gnome
47FAIL support for viewing Atari files in GNOME.
48
49%description gnome -l pl.UTF-8
50Wsparcie FAIL do oglądania plików z Atari w GNOME.
51
97165e04
JB
52%package html5
53Summary: HTML5 FAIL viewer for Atari files
54Summary(pl.UTF-8): Przeglądarka FAIL do plików z Atari w HTML5
55Group: Applications/WWW
56
57%description html5
58HTML5 FAIL viewer for Atari files.
59
60%description html5 -l pl.UTF-8
61Przeglądarka FAIL do plików z Atari w HTML5.
62
3177b633
JB
63%package -n ImageMagick-coder-fail
64Summary: FAIL coder for ImageMagick
65Summary(pl.UTF-8): Koder FAIL dla ImageMagicka
66Group: Libraries
dce5707d 67%requires_ge_to ImageMagick ImageMagick-devel
3177b633
JB
68
69%description -n ImageMagick-coder-fail
70FAIL coder for ImageMagick to read Atari formats.
71
72%description -n ImageMagick-coder-fail -l pl.UTF-8
73Koder FAIL dla ImageMagicka, czytający formaty Atari.
74
75%prep
76%setup -q
77
78%build
79%{__make} all fail-mime.xml \
80 CC="%{__cc}" \
81 CFLAGS="%{rpmcflags} -Wall" \
97165e04 82%if %{with magick}
86e27421 83 MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-6/private \
3177b633 84 CAN_INSTALL_MAGICK=1
97165e04
JB
85%endif
86
87%if %{with html5}
88%{__make} -C html5
89%endif
3177b633
JB
90
91%install
92rm -rf $RPM_BUILD_ROOT
93
94%{__make} install-fail2png \
95 PREFIX=$RPM_BUILD_ROOT%{_prefix}
96
97# install-thumbnailer is ugly; for now, install only this one
98install -D fail-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/fail-mime.xml
99
97165e04 100%if %{with magick}
3177b633
JB
101install -D fail.so $RPM_BUILD_ROOT%{im_coders_dir}/fail.so
102echo "dlname='fail.so'" >$RPM_BUILD_ROOT%{im_coders_dir}/fail.la
97165e04
JB
103%endif
104
105%if %{with html5}
106install -d $RPM_BUILD_ROOT%{_datadir}/fail-html5
107cp -p html5/*.{js,html} $RPM_BUILD_ROOT%{_datadir}/fail-html5
108%endif
3177b633
JB
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%files
114%defattr(644,root,root,755)
115%doc README.html
116%attr(755,root,root) %{_bindir}/fail2png
117
118%files gnome
119%defattr(644,root,root,755)
120%{_datadir}/mime/packages/fail-mime.xml
121# TODO: gconf files?
122
97165e04
JB
123%if %{with html5}
124%files html5
125%defattr(644,root,root,755)
126%{_datadir}/fail-html5
127%endif
128
129%if %{with magick}
3177b633
JB
130%files -n ImageMagick-coder-fail
131%defattr(644,root,root,755)
132%attr(755,root,root) %{im_coders_dir}/fail.so
133%{im_coders_dir}/fail.la
97165e04 134%endif
This page took 0.133187 seconds and 4 git commands to generate.