2 # - finish html5 (BR: vnu.jar)
3 # - webapp config for -html5? (optional, may be used also locally)
6 %bcond_without gimp # GIMP plugin
7 %bcond_with html5 # HTML5 viewer
8 %bcond_without magick # ImageMagick coder
10 # html5 requires cito that requires mono that is not available yet on x32
15 Summary: RECOIL - Retro Computer Image Library
16 Summary(pl.UTF-8): RECOIL (Retro Computer Image Library) - biblioteka do obrazów w formatach komputerów retro
21 Group: Applications/Graphics
22 Source0: https://downloads.sourceforge.net/recoil/%{name}-%{version}.tar.gz
23 # Source0-md5: 8a0947e7f8a87045ae2187f477b02b92
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 %{?with_gimp:BuildRequires: gimp-devel >= 1:2.0}
29 BuildRequires: libpng-devel
30 BuildRequires: libxslt-progs
31 BuildRequires: zlib-devel
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define im_coders_dir %(pkg-config --variable moduledir MagickCore)/coders
40 RECOIL is a viewer of pictures in native formats of vintage computers:
41 Amiga, Amstrad CPC, Apple II, Atari 8-bit, Atari Portfolio, Atari
42 ST/TT/Falcon, BBC Micro, Commodore VIC-20, Commodore 16, Commodore 64,
43 Commodore 128, Electronika BK, FM Towns, Macintosh 128K, MSX,
44 NEC PC-80/88/98, Oric, Psion Series 3, SAM Coupe, Sharp X68000, Tandy
45 1000, Timex 2048, TRS-80, TRS-80 Color Computer, ZX81 and ZX Spectrum.
47 %description -l pl.UTF-8
48 RECOIL to przeglądarka obrazów w natywnych formatach klasycznych
49 komputerów: Amiga, Amstrad CPC, Apple II, Atari 8-bitowe, Atari
50 Portfolio, Atari ST/TT/Falcon, BBC Micro, Commodore VIC-20, Commodore
51 16, Commodore 64, Commodore 128, Electronika BK, FM Towns, Macintosh
52 128K, MSX, NEC PC-80/88/98, Oric, Psion Series 3, SAM Coupé, Sharp
53 X68000, Tandy 1000, Timex 2048, TRS-80, TRS-80 Color Computer, ZX81
57 Summary: RECOIL support for viewing retro computer files in GNOME
58 Summary(pl.UTF-8): Wsparcie RECOIL do oglądania plików z komputerów retro w GNOME
59 Group: X11/Applications/Graphics
60 Requires: %{name} = %{version}-%{release}
61 Requires: shared-mime-info
62 Obsoletes: fail-gnome < 3
65 RECOIL support for viewing retro computer files in GNOME.
67 %description gnome -l pl.UTF-8
68 Wsparcie RECOIL do oglądania plików z komputerów retro w GNOME.
71 Summary: HTML5 RECOIL viewer for retro computer files
72 Summary(pl.UTF-8): Przeglądarka RECOIL do plików z komputerów retro w HTML5
73 Group: Applications/WWW
74 #Obsoletes: fail-html5 < 3
77 HTML5 RECOIL viewer for retro computer files.
79 %description html5 -l pl.UTF-8
80 Przeglądarka RECOIL do plików z komputerów retro w HTML5.
82 %package -n ImageMagick-coder-recoil
83 Summary: RECOIL coder for ImageMagick
84 Summary(pl.UTF-8): Koder RECOIL dla ImageMagicka
86 %requires_ge_to ImageMagick ImageMagick-devel
87 #Obsoletes: ImageMagick-coder-fail < 3
89 %description -n ImageMagick-coder-recoil
90 RECOIL coder for ImageMagick to read retro computer formats.
92 %description -n ImageMagick-coder-recoil -l pl.UTF-8
93 Koder RECOIL dla ImageMagicka, czytający formaty komputerów retro.
95 %package -n gimp-plugin-recoil
96 Summary: RECOIL plugin for GIMP
97 Summary(pl.UTF-8): Wtyczka RECOIL dla GIMP-a
98 Group: X11/Applications/Graphics
99 Requires: gimp >= 1:2.0
101 %description -n gimp-plugin-recoil
102 RECOIL plugin for GIMP to read retro computer formats.
104 %description -n gimp-plugin-recoil -l pl.UTF-8
105 Wtyczka RECOIL dla GIMP-a, czytająca formaty komputerów retro.
111 %{__make} all %{?with_gimp:file-recoil} \
113 CFLAGS="%{rpmcflags} -Wall -I. -DMAGICK7" \
115 MAGICK_INCLUDE_PATH=/usr/include/ImageMagick-7/private \
124 rm -rf $RPM_BUILD_ROOT
126 %{__make} install-recoil2png install-mime install-thumbnailer %{?with_gimp:install-gimp} \
128 PREFIX=$RPM_BUILD_ROOT%{_prefix} \
129 libdir=$RPM_BUILD_ROOT%{_libdir}
131 # install-thumbnailer is ugly; for now, install only this one
132 #install -D recoil-mime.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/recoil-mime.xml
135 install -D imagemagick/recoil.so $RPM_BUILD_ROOT%{im_coders_dir}/recoil.so
136 echo "dlname='recoil.so'" >$RPM_BUILD_ROOT%{im_coders_dir}/recoil.la
140 install -d $RPM_BUILD_ROOT%{_datadir}/recoil-html5
141 cp -p www/*.{js,html} $RPM_BUILD_ROOT%{_datadir}/recoil-html5
145 rm -rf $RPM_BUILD_ROOT
148 %update_mime_database
151 %update_mime_database
154 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/recoil2png
157 %{_mandir}/man1/recoil2png.1*
160 %defattr(644,root,root,755)
161 %{_datadir}/mime/packages/recoil-mime.xml
162 %{_datadir}/thumbnailers/recoil.thumbnailer
166 %defattr(644,root,root,755)
167 %{_datadir}/recoil-html5
171 %files -n ImageMagick-coder-recoil
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{im_coders_dir}/recoil.so
174 %{im_coders_dir}/recoil.la
178 %files -n gimp-plugin-recoil
179 %defattr(644,root,root,755)
180 %dir %{_libdir}/gimp/2.0/plug-ins/file-recoil
181 %attr(755,root,root) %{_libdir}/gimp/2.0/plug-ins/file-recoil/file-recoil