]>
Commit | Line | Data |
---|---|---|
e7d1487b ER |
1 | # TODO: |
2 | # - package thumbnail.cgi (in %{_libdir}/cgi-bin?) | |
57bf75a9 | 3 | # |
7aa93278 JB |
4 | # Conditional build: |
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 png # without PNG images support | |
12 | %bcond_without sane # without SANE scanning support (in ida) | |
13 | %bcond_without tiff # without TIFF images support | |
21ba0652 | 14 | %bcond_without webp # without WebP images support |
0ee28e44 | 15 | |
adc8920a | 16 | %if %{without motif} |
7aa93278 JB |
17 | # SANE used only in ida |
18 | %undefine with_sane | |
19 | %endif | |
20 | Summary: fbida - a few applications for viewing and editing images | |
1edcaba5 | 21 | Summary(pl.UTF-8): fbida - kilka aplikacji do oglądania i edycji obrazków |
7aa93278 | 22 | Name: fbida |
ec56aad3 | 23 | Version: 2.10 |
49fa9b92 | 24 | Release: 2 |
7aa93278 JB |
25 | License: GPL |
26 | Group: Applications/Graphics | |
ec56aad3 JB |
27 | Source0: https://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz |
28 | # Source0-md5: 09460b964b58c2e39b665498eca29018 | |
57bf75a9 JB |
29 | Patch0: %{name}-config-noforce.patch |
30 | Patch1: %{name}-desktop.patch | |
54a32f04 | 31 | Patch2: format-security.patch |
ec56aad3 | 32 | URL: https://www.kraxel.org/blog/linux/fbida/ |
15e73e64 | 33 | BuildRequires: ImageMagick-devel |
7aa93278 JB |
34 | %{?with_curl:BuildRequires: curl-devel} |
35 | BuildRequires: fontconfig-devel | |
36 | BuildRequires: freetype-devel >= 2.0.0 | |
57bf75a9 JB |
37 | # -Wno-pointer-sign |
38 | BuildRequires: gcc >= 5:4.0 | |
a6ba8a7a | 39 | %{?with_gif:BuildRequires: giflib-devel} |
7aa93278 JB |
40 | BuildRequires: libexif-devel >= 1:0.6.9 |
41 | BuildRequires: libjpeg-devel | |
42 | %{?with_pcd:BuildRequires: libpcd-devel >= 1:1.0.1} | |
43 | %{?with_png:BuildRequires: libpng-devel} | |
7aa93278 | 44 | %{?with_tiff:BuildRequires: libtiff-devel} |
21ba0652 | 45 | %{?with_webp:BuildRequires: libwebp-devel} |
15e73e64 | 46 | %{?with_lirc:BuildRequires: lirc-devel} |
7aa93278 | 47 | # acc. to README lesstif is not sufficient |
53069aea | 48 | %{?with_motif:BuildRequires: motif-devel >= 2.0} |
15e73e64 | 49 | BuildRequires: perl-base |
7aa93278 JB |
50 | BuildRequires: pkgconfig |
51 | %{?with_sane:BuildRequires: sane-backends-devel} | |
d942d069 | 52 | BuildRequires: util-linux |
15e73e64 | 53 | BuildRequires: which |
e737495b | 54 | BuildRequires: xorg-lib-libXpm-devel |
7aa93278 JB |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
1b489733 | 57 | %define _appdefsdir /usr/share/X11/app-defaults |
7aa93278 JB |
58 | |
59 | %description | |
60 | The fbida project contains a few applications for viewing and editing | |
61 | images, with the main focus being photos. The applications are: | |
62 | - fbi - image viewer for the Linux framebuffer console | |
63 | - fbgs - wrapper script for viewing PS/PDF files using fbi | |
64 | - ida - Motif-based application for viewing images | |
65 | - exiftran - command-line tool to do lossless transformations of JPEG | |
66 | images | |
67 | - thumbnail.cgi - small and fast CGI program to extract EXIF | |
68 | thumbnails from JPEG images and send them to the web browser | |
69 | ||
b76eca32 JR |
70 | %description -l pl.UTF-8 |
71 | Projekt fbida zawiera kilka aplikacji do oglądania i edycji obrazków, | |
72 | głównie przeznaczonych dla zdjęć. Te aplikacje to: | |
73 | - fbi - przeglądarka dla linuksowej konsoli z framebufferem | |
74 | - fbgs - skrypt do oglądania plików PS/PDF przy użyciu fbi | |
75 | - ida - oparta na Motifie aplikacja do oglądania obrazków | |
76 | - exiftran - działające z linii poleceń narzędzie do wykonywania | |
77 | bezstratnych przekształceń obrazków JPEG | |
78 | - thumbnail.cgi - mały i szybki program CGI do wyciągania miniaturek | |
79 | EXIF z obrazków JPEG i wysyłania ich do przeglądarki WWW | |
7aa93278 JB |
80 | |
81 | %package -n fbi | |
82 | Summary: Linux FrameBuffer Imageviewer | |
1edcaba5 | 83 | Summary(pl.UTF-8): Przeglądarka obrazków dla linuksowego framebuffera |
7aa93278 | 84 | Group: Applications/Graphics |
57bf75a9 | 85 | Requires: mktemp >= 1.3 |
7aa93278 JB |
86 | |
87 | %description -n fbi | |
88 | This is a image viewer for linux framebuffer devices. It supports | |
89 | PhotoCD, JPEG and PPM directly. GIF, TIFF and PNG are handled with the | |
90 | netpbm tools, for anything else convert from the ImageMagick package | |
91 | is used as external converter. | |
92 | ||
93 | This package contains also additional utilities: | |
94 | - fbgs - wrapper script for viewing PS/PDF files using fbi | |
95 | - exiftran - command-line tool to do lossless transformations of JPEG | |
96 | images | |
97 | ||
b76eca32 JR |
98 | %description -n fbi -l pl.UTF-8 |
99 | To jest przeglądarka obrazków korzystająca z framebuffera. Obsługuje | |
100 | bezpośrednio PhotoCD, JPEG i PPM; GIF, TIFF i PNG poprzez narzędzia z | |
7aa93278 JB |
101 | pakietu netpbm-progs; inne obrazki poprzez program convert z pakietu |
102 | ImageMagick. | |
103 | ||
b76eca32 JR |
104 | Ten pakiet zawiera także dodatkowe narzędzia: |
105 | - fbgs - skrypt do oglądania plików PS/PDF przy użyciu fbi | |
106 | - exiftran - działające z linii poleceń narzędzie do wykonywania | |
107 | bezstratnych przekształceń obrazków JPEG | |
7aa93278 JB |
108 | |
109 | %package -n ida | |
110 | Summary: Small and fast image viewer, Motif-based | |
1edcaba5 | 111 | Summary(pl.UTF-8): Mała, szybka przeglądarka obrazków oparta na Motifie |
7aa93278 JB |
112 | Group: X11/Applications/Graphics |
113 | ||
114 | %description -n ida | |
115 | Ida is a small and fast image viewer, Motif-based. For people who | |
116 | don't want the KDE/GNOME overhead. Some basic editing functions are | |
117 | available too. | |
118 | ||
b76eca32 JR |
119 | %description -n ida -l pl.UTF-8 |
120 | Ida to mała i szybka przeglądarka obrazków oparta na Motifie. | |
121 | Przeznaczona jest dla ludzi, którzy nie chcą narzutu KDE/GNOME. | |
122 | Dostępne jest też trochę podstawowych funkcji edycyjnych. | |
7aa93278 JB |
123 | |
124 | %prep | |
125 | %setup -q | |
126 | %patch0 -p1 | |
127 | %patch1 -p1 | |
54a32f04 | 128 | %patch2 -p1 |
7aa93278 JB |
129 | |
130 | %build | |
131 | CFLAGS="%{rpmcflags}" \ | |
132 | %{__make} \ | |
133 | CC="%{__cc}" \ | |
134 | verbose=yes \ | |
135 | %{!?with_pcd:HAVE_LIBPCD=no} \ | |
ec56aad3 | 136 | %{!?with_gif:HAVE_LIBGIF=no} \ |
7aa93278 JB |
137 | %{!?with_png:HAVE_LIBPNG=no} \ |
138 | %{!?with_tiff:HAVE_LIBTIFF=no} \ | |
21ba0652 | 139 | %{!?with_webp:HAVE_LIBWEBP=no} \ |
7aa93278 JB |
140 | %{!?with_sane:HAVE_LIBSANE=no} \ |
141 | %{!?with_curl:HAVE_LIBCURL=no} \ | |
142 | %{!?with_lirc:HAVE_LIBLIRC=no} \ | |
143 | %{!?with_motif:HAVE_MOTIF=no} | |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT \ | |
150 | prefix=%{_prefix} \ | |
151 | INSTALL_BINARY=install \ | |
152 | %{!?with_pcd:HAVE_LIBPCD=no} \ | |
ec56aad3 | 153 | %{!?with_gif:HAVE_LIBGIF=no} \ |
7aa93278 JB |
154 | %{!?with_png:HAVE_LIBPNG=no} \ |
155 | %{!?with_tiff:HAVE_LIBTIFF=no} \ | |
21ba0652 | 156 | %{!?with_webp:HAVE_LIBWEBP=no} \ |
7aa93278 JB |
157 | %{!?with_sane:HAVE_LIBSANE=no} \ |
158 | %{!?with_curl:HAVE_LIBCURL=no} \ | |
159 | %{!?with_lirc:HAVE_LIBLIRC=no} \ | |
160 | %{!?with_motif:HAVE_MOTIF=no} | |
161 | ||
162 | %if %{with motif} | |
163 | install -D desktop/ida.desktop $RPM_BUILD_ROOT%{_desktopdir}/ida.desktop | |
164 | %endif | |
165 | ||
166 | %clean | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %files -n fbi | |
170 | %defattr(644,root,root,755) | |
171 | %attr(755,root,root) %{_bindir}/exiftran | |
172 | %attr(755,root,root) %{_bindir}/fbgs | |
173 | %attr(755,root,root) %{_bindir}/fbi | |
174 | %{_mandir}/man1/exiftran.1* | |
175 | %{_mandir}/man1/fbgs.1* | |
176 | %{_mandir}/man1/fbi.1* | |
177 | ||
178 | %if %{with motif} | |
179 | %files -n ida | |
180 | %defattr(644,root,root,755) | |
181 | %doc README TODO | |
182 | %attr(755,root,root) %{_bindir}/ida | |
183 | %{_mandir}/man1/ida.1* | |
184 | %{_appdefsdir}/Ida | |
185 | %{_desktopdir}/ida.desktop | |
186 | %endif |