]>
Commit | Line | Data |
---|---|---|
3177b633 JB |
1 | # TODO: register gnome thumbnailer in more package-friendly way (not multiple gconftool runs) |
2 | Summary: FAIL - First Atari Image Library | |
3 | Summary(pl.UTF-8): FAIL (First Atari Image Library) - biblioteka do obrazów w formatach Atari | |
4 | Name: fail | |
5 | Version: 2.0.0 | |
6 | Release: 1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/Graphics | |
9 | Source0: http://downloads.sourceforge.net/fail/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: de3592b78144ef3c6b2e98377522df69 | |
11 | URL: http://fail.sourceforge.net/ | |
86e27421 | 12 | BuildRequires: ImageMagick-devel >= 6.8 |
3177b633 JB |
13 | BuildRequires: libpng-devel |
14 | BuildRequires: libxslt-progs | |
15 | BuildRequires: zlib-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define magick_ver %(MagickCore-config --version) | |
86e27421 | 19 | %define im_coders_dir %{_libdir}/%(MagickCore-config --version | sed -e 's,^\\([.0-9]\\+\\) \\+\\(Q[0-9]\\+\\)\\( \\+\\(HDRI\\)\\)\\?.*,ImageMagick-\\1/modules-\\2\\4,')/coders |
3177b633 JB |
20 | |
21 | %description | |
22 | FAIL is a viewer of pictures in native formats of Atari 8-bit, Atari | |
23 | ST, Atari Falcon and Atari Portfolio computers. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | FAIL to narzędzia do przeglądania obrazów w natywnych formatach | |
27 | komputerów Atari 8-bitowych, Atari ST, Atari Falcon oraz Atari | |
28 | Portfolio. | |
29 | ||
30 | %package gnome | |
31 | Summary: FAIL support for viewing Atari files in GNOME | |
32 | Summary(pl.UTF-8): Wsparcie FAIL do oglądania plików z Atari w GNOME | |
33 | Group: X11/Applications/Graphics | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description gnome | |
37 | FAIL support for viewing Atari files in GNOME. | |
38 | ||
39 | %description gnome -l pl.UTF-8 | |
40 | Wsparcie FAIL do oglądania plików z Atari w GNOME. | |
41 | ||
42 | %package -n ImageMagick-coder-fail | |
43 | Summary: FAIL coder for ImageMagick | |
44 | Summary(pl.UTF-8): Koder FAIL dla ImageMagicka | |
45 | Group: Libraries | |
46 | Requires: ImageMagick >= %{magick_ver} | |
47 | ||
48 | %description -n ImageMagick-coder-fail | |
49 | FAIL coder for ImageMagick to read Atari formats. | |
50 | ||
51 | %description -n ImageMagick-coder-fail -l pl.UTF-8 | |
52 | Koder FAIL dla ImageMagicka, czytający formaty Atari. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
58 | %{__make} all fail-mime.xml \ | |
59 | CC="%{__cc}" \ | |
60 | CFLAGS="%{rpmcflags} -Wall" \ | |
86e27421 | 61 | MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-6/private \ |
3177b633 JB |
62 | CAN_INSTALL_MAGICK=1 |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install-fail2png \ | |
68 | PREFIX=$RPM_BUILD_ROOT%{_prefix} | |
69 | ||
70 | # install-thumbnailer is ugly; for now, install only this one | |
71 | install -D fail-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/fail-mime.xml | |
72 | ||
73 | install -D fail.so $RPM_BUILD_ROOT%{im_coders_dir}/fail.so | |
74 | echo "dlname='fail.so'" >$RPM_BUILD_ROOT%{im_coders_dir}/fail.la | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README.html | |
82 | %attr(755,root,root) %{_bindir}/fail2png | |
83 | ||
84 | %files gnome | |
85 | %defattr(644,root,root,755) | |
86 | %{_datadir}/mime/packages/fail-mime.xml | |
87 | # TODO: gconf files? | |
88 | ||
89 | %files -n ImageMagick-coder-fail | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{im_coders_dir}/fail.so | |
92 | %{im_coders_dir}/fail.la |