]> git.pld-linux.org Git - SPECS.git/blob - fbida.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / fbida.spec
1 # TODO:
2 # - package thumbnail.cgi (in %{_libdir}/cgi-bin?)
3 #
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  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)
14
15 %if %{without motif}
16 # SANE used only in ida
17 %undefine       with_sane
18 %endif
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
21 Name:           fbida
22 Version:        2.14
23 Release:        1
24 License:        GPL
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
38 # -Wno-pointer-sign
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
59 BuildRequires:  which
60 BuildRequires:  xorg-lib-libXpm-devel
61 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
63 %define         _appdefsdir     /usr/share/X11/app-defaults
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
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
86
87 %package -n fbi
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
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
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
108 ImageMagick.
109
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
114
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
126 %package -n ida
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
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
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.
140
141 %prep
142 %setup -q
143 %patch0 -p1
144 %patch1 -p1
145
146 %build
147 CFLAGS="%{rpmcflags}" \
148 %{__make} \
149         CC="%{__cc}" \
150         verbose=yes \
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}
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 \
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}
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
192 %files -n fbpdf
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/fbpdf
195
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
This page took 0.504359 seconds and 3 git commands to generate.