]>
Commit | Line | Data |
---|---|---|
e7d1487b ER |
1 | # TODO: |
2 | # - package thumbnail.cgi (in %{_libdir}/cgi-bin?) | |
57bf75a9 | 3 | # |
7aa93278 | 4 | # Conditional build: |
bad71d25 JR |
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 | |
bad71d25 | 11 | %bcond_without sane # without SANE scanning support (in ida) |
bad71d25 | 12 | %bcond_without webp # without WebP images support |
30c32325 | 13 | %bcond_with cairogl # with Cairo-GL support (in fbpdf program) |
0ee28e44 | 14 | |
adc8920a | 15 | %if %{without motif} |
7aa93278 JB |
16 | # SANE used only in ida |
17 | %undefine with_sane | |
18 | %endif | |
19 | Summary: fbida - a few applications for viewing and editing images | |
1edcaba5 | 20 | Summary(pl.UTF-8): fbida - kilka aplikacji do oglądania i edycji obrazków |
7aa93278 | 21 | Name: fbida |
ef4f53fd | 22 | Version: 2.14 |
86f97921 | 23 | Release: 1 |
7aa93278 JB |
24 | License: GPL |
25 | Group: Applications/Graphics | |
ec56aad3 | 26 | Source0: https://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz |
ef4f53fd | 27 | # Source0-md5: f5475b359461d2d995bde59e13cc584f |
57bf75a9 JB |
28 | Patch0: %{name}-config-noforce.patch |
29 | Patch1: %{name}-desktop.patch | |
ec56aad3 | 30 | URL: https://www.kraxel.org/blog/linux/fbida/ |
ef4f53fd | 31 | BuildRequires: EGL-devel |
15e73e64 | 32 | BuildRequires: ImageMagick-devel |
83bf8742 JB |
33 | BuildRequires: Mesa-libgbm-devel |
34 | BuildRequires: cairo-devel | |
7aa93278 JB |
35 | %{?with_curl:BuildRequires: curl-devel} |
36 | BuildRequires: fontconfig-devel | |
37 | BuildRequires: freetype-devel >= 2.0.0 | |
57bf75a9 JB |
38 | # -Wno-pointer-sign |
39 | BuildRequires: gcc >= 5:4.0 | |
a6ba8a7a | 40 | %{?with_gif:BuildRequires: giflib-devel} |
c1601167 | 41 | BuildRequires: libdrm-devel |
83bf8742 | 42 | BuildRequires: libepoxy-devel |
7aa93278 JB |
43 | BuildRequires: libexif-devel >= 1:0.6.9 |
44 | BuildRequires: libjpeg-devel | |
45 | %{?with_pcd:BuildRequires: libpcd-devel >= 1:1.0.1} | |
ef4f53fd JB |
46 | BuildRequires: libpng-devel |
47 | BuildRequires: libtiff-devel >= 4 | |
21ba0652 | 48 | %{?with_webp:BuildRequires: libwebp-devel} |
15e73e64 | 49 | %{?with_lirc:BuildRequires: lirc-devel} |
7aa93278 | 50 | # acc. to README lesstif is not sufficient |
53069aea | 51 | %{?with_motif:BuildRequires: motif-devel >= 2.0} |
15e73e64 | 52 | BuildRequires: perl-base |
ef4f53fd | 53 | BuildRequires: pixman-devel |
7aa93278 | 54 | BuildRequires: pkgconfig |
30c32325 | 55 | %{?with_cairogl:BuildRequires: pkgconfig(cairo-gl)} |
83bf8742 | 56 | BuildRequires: poppler-glib-devel |
7aa93278 | 57 | %{?with_sane:BuildRequires: sane-backends-devel} |
d942d069 | 58 | BuildRequires: util-linux |
15e73e64 | 59 | BuildRequires: which |
e737495b | 60 | BuildRequires: xorg-lib-libXpm-devel |
7aa93278 JB |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
1b489733 | 63 | %define _appdefsdir /usr/share/X11/app-defaults |
7aa93278 JB |
64 | |
65 | %description | |
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 | |
72 | images | |
73 | - thumbnail.cgi - small and fast CGI program to extract EXIF | |
74 | thumbnails from JPEG images and send them to the web browser | |
75 | ||
b76eca32 JR |
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 | |
7aa93278 JB |
86 | |
87 | %package -n fbi | |
88 | Summary: Linux FrameBuffer Imageviewer | |
1edcaba5 | 89 | Summary(pl.UTF-8): Przeglądarka obrazków dla linuksowego framebuffera |
7aa93278 | 90 | Group: Applications/Graphics |
57bf75a9 | 91 | Requires: mktemp >= 1.3 |
7aa93278 JB |
92 | |
93 | %description -n fbi | |
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. | |
98 | ||
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 | |
102 | images | |
103 | ||
b76eca32 JR |
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 | |
7aa93278 JB |
107 | pakietu netpbm-progs; inne obrazki poprzez program convert z pakietu |
108 | ImageMagick. | |
109 | ||
b76eca32 JR |
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 | |
7aa93278 | 114 | |
83bf8742 JB |
115 | %package -n fbpdf |
116 | Summary: Linux FrameBuffer PDF viewer | |
117 | Summary(pl.UTF-8): Przeglądarka plików PDF dla linuksowego framebuffera | |
118 | Group: Applications/Graphics | |
119 | ||
120 | %description -n fbpdf | |
121 | Linux FrameBuffer PDF viewer. | |
122 | ||
123 | %description -n fbpdf -l pl.UTF-8 | |
124 | Przeglądarka plików PDF dla linuksowego framebuffera. | |
125 | ||
7aa93278 JB |
126 | %package -n ida |
127 | Summary: Small and fast image viewer, Motif-based | |
1edcaba5 | 128 | Summary(pl.UTF-8): Mała, szybka przeglądarka obrazków oparta na Motifie |
7aa93278 JB |
129 | Group: X11/Applications/Graphics |
130 | ||
131 | %description -n ida | |
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 | |
134 | available too. | |
135 | ||
b76eca32 JR |
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. | |
7aa93278 JB |
140 | |
141 | %prep | |
142 | %setup -q | |
143 | %patch0 -p1 | |
144 | %patch1 -p1 | |
7aa93278 JB |
145 | |
146 | %build | |
147 | CFLAGS="%{rpmcflags}" \ | |
148 | %{__make} \ | |
149 | CC="%{__cc}" \ | |
150 | verbose=yes \ | |
30c32325 | 151 | %{!?with_cairogl:HAVE_CAIRO_GL=no} \ |
7aa93278 | 152 | %{!?with_pcd:HAVE_LIBPCD=no} \ |
ec56aad3 | 153 | %{!?with_gif:HAVE_LIBGIF=no} \ |
21ba0652 | 154 | %{!?with_webp:HAVE_LIBWEBP=no} \ |
ef4f53fd JB |
155 | %{!?with_motif:HAVE_MOTIF=no} \ |
156 | %{?with_sane:HAVE_LIBSANE=yes} \ | |
157 | %{?with_curl:HAVE_LIBCURL=yes} \ | |
158 | %{?with_lirc:HAVE_LIBLIRC=yes} | |
7aa93278 JB |
159 | |
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %{__make} install \ | |
164 | DESTDIR=$RPM_BUILD_ROOT \ | |
165 | prefix=%{_prefix} \ | |
166 | INSTALL_BINARY=install \ | |
30c32325 | 167 | %{!?with_cairogl:HAVE_CAIRO_GL=no} \ |
7aa93278 | 168 | %{!?with_pcd:HAVE_LIBPCD=no} \ |
ec56aad3 | 169 | %{!?with_gif:HAVE_LIBGIF=no} \ |
21ba0652 | 170 | %{!?with_webp:HAVE_LIBWEBP=no} \ |
ef4f53fd JB |
171 | %{!?with_motif:HAVE_MOTIF=no} \ |
172 | %{?with_sane:HAVE_LIBSANE=yes} \ | |
173 | %{?with_curl:HAVE_LIBCURL=yes} \ | |
174 | %{?with_lirc:HAVE_LIBLIRC=yes} | |
7aa93278 JB |
175 | |
176 | %if %{with motif} | |
177 | install -D desktop/ida.desktop $RPM_BUILD_ROOT%{_desktopdir}/ida.desktop | |
178 | %endif | |
179 | ||
180 | %clean | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %files -n fbi | |
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* | |
191 | ||
83bf8742 JB |
192 | %files -n fbpdf |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/fbpdf | |
195 | ||
7aa93278 JB |
196 | %if %{with motif} |
197 | %files -n ida | |
198 | %defattr(644,root,root,755) | |
199 | %doc README TODO | |
200 | %attr(755,root,root) %{_bindir}/ida | |
201 | %{_mandir}/man1/ida.1* | |
202 | %{_appdefsdir}/Ida | |
203 | %{_desktopdir}/ida.desktop | |
204 | %endif |