2 # - package thumbnail.cgi (in %{_libdir}/cgi-bin?)
5 %bcond_without curl # without URL support
6 %bcond_without exif # without EXIF tags support
7 %bcond_without gif # without GIF images support
8 %bcond_without lirc # without LIRC control support
9 %bcond_without motif # don't build (Motif-based) ida
10 %bcond_without pcd # without PCD images support
11 %bcond_without sane # without SANE scanning support (in ida)
12 %bcond_without webp # without WebP images support
13 %bcond_with cairogl # with Cairo-GL support (in fbpdf program)
16 # SANE used only in ida
19 Summary: fbida - a few applications for viewing and editing images
20 Summary(pl.UTF-8): fbida - kilka aplikacji do oglądania i edycji obrazków
25 Group: Applications/Graphics
26 Source0: https://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz
27 # Source0-md5: f5475b359461d2d995bde59e13cc584f
28 Patch0: %{name}-config-noforce.patch
29 Patch1: %{name}-desktop.patch
30 URL: https://www.kraxel.org/blog/linux/fbida/
31 BuildRequires: EGL-devel
32 BuildRequires: ImageMagick-devel
33 BuildRequires: Mesa-libgbm-devel
34 BuildRequires: cairo-devel
35 %{?with_curl:BuildRequires: curl-devel}
36 BuildRequires: fontconfig-devel
37 BuildRequires: freetype-devel >= 2.0.0
39 BuildRequires: gcc >= 5:4.0
40 %{?with_gif:BuildRequires: giflib-devel}
41 BuildRequires: libdrm-devel
42 BuildRequires: libepoxy-devel
43 BuildRequires: libexif-devel >= 1:0.6.9
44 BuildRequires: libjpeg-devel
45 %{?with_pcd:BuildRequires: libpcd-devel >= 1:1.0.1}
46 BuildRequires: libpng-devel
47 BuildRequires: libtiff-devel >= 4
48 %{?with_webp:BuildRequires: libwebp-devel}
49 %{?with_lirc:BuildRequires: lirc-devel}
50 # acc. to README lesstif is not sufficient
51 %{?with_motif:BuildRequires: motif-devel >= 2.0}
52 BuildRequires: perl-base
53 BuildRequires: pixman-devel
54 BuildRequires: pkgconfig
55 %{?with_cairogl:BuildRequires: pkgconfig(cairo-gl)}
56 BuildRequires: poppler-glib-devel
57 %{?with_sane:BuildRequires: sane-backends-devel}
58 BuildRequires: util-linux
60 BuildRequires: xorg-lib-libXpm-devel
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 %define _appdefsdir /usr/share/X11/app-defaults
66 The fbida project contains a few applications for viewing and editing
67 images, with the main focus being photos. The applications are:
68 - fbi - image viewer for the Linux framebuffer console
69 - fbgs - wrapper script for viewing PS/PDF files using fbi
70 - ida - Motif-based application for viewing images
71 - exiftran - command-line tool to do lossless transformations of JPEG
73 - thumbnail.cgi - small and fast CGI program to extract EXIF
74 thumbnails from JPEG images and send them to the web browser
76 %description -l pl.UTF-8
77 Projekt fbida zawiera kilka aplikacji do oglądania i edycji obrazków,
78 głównie przeznaczonych dla zdjęć. Te aplikacje to:
79 - fbi - przeglądarka dla linuksowej konsoli z framebufferem
80 - fbgs - skrypt do oglądania plików PS/PDF przy użyciu fbi
81 - ida - oparta na Motifie aplikacja do oglądania obrazków
82 - exiftran - działające z linii poleceń narzędzie do wykonywania
83 bezstratnych przekształceń obrazków JPEG
84 - thumbnail.cgi - mały i szybki program CGI do wyciągania miniaturek
85 EXIF z obrazków JPEG i wysyłania ich do przeglądarki WWW
88 Summary: Linux FrameBuffer Imageviewer
89 Summary(pl.UTF-8): Przeglądarka obrazków dla linuksowego framebuffera
90 Group: Applications/Graphics
91 Requires: mktemp >= 1.3
94 This is a image viewer for linux framebuffer devices. It supports
95 PhotoCD, JPEG and PPM directly. GIF, TIFF and PNG are handled with the
96 netpbm tools, for anything else convert from the ImageMagick package
97 is used as external converter.
99 This package contains also additional utilities:
100 - fbgs - wrapper script for viewing PS/PDF files using fbi
101 - exiftran - command-line tool to do lossless transformations of JPEG
104 %description -n fbi -l pl.UTF-8
105 To jest przeglądarka obrazków korzystająca z framebuffera. Obsługuje
106 bezpośrednio PhotoCD, JPEG i PPM; GIF, TIFF i PNG poprzez narzędzia z
107 pakietu netpbm-progs; inne obrazki poprzez program convert z pakietu
110 Ten pakiet zawiera także dodatkowe narzędzia:
111 - fbgs - skrypt do oglądania plików PS/PDF przy użyciu fbi
112 - exiftran - działające z linii poleceń narzędzie do wykonywania
113 bezstratnych przekształceń obrazków JPEG
116 Summary: Linux FrameBuffer PDF viewer
117 Summary(pl.UTF-8): Przeglądarka plików PDF dla linuksowego framebuffera
118 Group: Applications/Graphics
120 %description -n fbpdf
121 Linux FrameBuffer PDF viewer.
123 %description -n fbpdf -l pl.UTF-8
124 Przeglądarka plików PDF dla linuksowego framebuffera.
127 Summary: Small and fast image viewer, Motif-based
128 Summary(pl.UTF-8): Mała, szybka przeglądarka obrazków oparta na Motifie
129 Group: X11/Applications/Graphics
132 Ida is a small and fast image viewer, Motif-based. For people who
133 don't want the KDE/GNOME overhead. Some basic editing functions are
136 %description -n ida -l pl.UTF-8
137 Ida to mała i szybka przeglądarka obrazków oparta na Motifie.
138 Przeznaczona jest dla ludzi, którzy nie chcą narzutu KDE/GNOME.
139 Dostępne jest też trochę podstawowych funkcji edycyjnych.
147 CFLAGS="%{rpmcflags}" \
151 %{!?with_cairogl:HAVE_CAIRO_GL=no} \
152 %{!?with_pcd:HAVE_LIBPCD=no} \
153 %{!?with_gif:HAVE_LIBGIF=no} \
154 %{!?with_webp:HAVE_LIBWEBP=no} \
155 %{!?with_motif:HAVE_MOTIF=no} \
156 %{?with_sane:HAVE_LIBSANE=yes} \
157 %{?with_curl:HAVE_LIBCURL=yes} \
158 %{?with_lirc:HAVE_LIBLIRC=yes}
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT \
166 INSTALL_BINARY=install \
167 %{!?with_cairogl:HAVE_CAIRO_GL=no} \
168 %{!?with_pcd:HAVE_LIBPCD=no} \
169 %{!?with_gif:HAVE_LIBGIF=no} \
170 %{!?with_webp:HAVE_LIBWEBP=no} \
171 %{!?with_motif:HAVE_MOTIF=no} \
172 %{?with_sane:HAVE_LIBSANE=yes} \
173 %{?with_curl:HAVE_LIBCURL=yes} \
174 %{?with_lirc:HAVE_LIBLIRC=yes}
177 install -D desktop/ida.desktop $RPM_BUILD_ROOT%{_desktopdir}/ida.desktop
181 rm -rf $RPM_BUILD_ROOT
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_bindir}/exiftran
186 %attr(755,root,root) %{_bindir}/fbgs
187 %attr(755,root,root) %{_bindir}/fbi
188 %{_mandir}/man1/exiftran.1*
189 %{_mandir}/man1/fbgs.1*
190 %{_mandir}/man1/fbi.1*
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/fbpdf
198 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_bindir}/ida
201 %{_mandir}/man1/ida.1*
203 %{_desktopdir}/ida.desktop