]> git.pld-linux.org Git - packages/fbida.git/blame - fbida.spec
- unified cairogl bcond name
[packages/fbida.git] / fbida.spec
CommitLineData
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
19Summary: fbida - a few applications for viewing and editing images
1edcaba5 20Summary(pl.UTF-8): fbida - kilka aplikacji do oglądania i edycji obrazków
7aa93278 21Name: fbida
ef4f53fd 22Version: 2.14
86f97921 23Release: 1
7aa93278
JB
24License: GPL
25Group: Applications/Graphics
ec56aad3 26Source0: https://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz
ef4f53fd 27# Source0-md5: f5475b359461d2d995bde59e13cc584f
57bf75a9
JB
28Patch0: %{name}-config-noforce.patch
29Patch1: %{name}-desktop.patch
ec56aad3 30URL: https://www.kraxel.org/blog/linux/fbida/
ef4f53fd 31BuildRequires: EGL-devel
15e73e64 32BuildRequires: ImageMagick-devel
83bf8742
JB
33BuildRequires: Mesa-libgbm-devel
34BuildRequires: cairo-devel
7aa93278
JB
35%{?with_curl:BuildRequires: curl-devel}
36BuildRequires: fontconfig-devel
37BuildRequires: freetype-devel >= 2.0.0
57bf75a9
JB
38# -Wno-pointer-sign
39BuildRequires: gcc >= 5:4.0
a6ba8a7a 40%{?with_gif:BuildRequires: giflib-devel}
c1601167 41BuildRequires: libdrm-devel
83bf8742 42BuildRequires: libepoxy-devel
7aa93278
JB
43BuildRequires: libexif-devel >= 1:0.6.9
44BuildRequires: libjpeg-devel
45%{?with_pcd:BuildRequires: libpcd-devel >= 1:1.0.1}
ef4f53fd
JB
46BuildRequires: libpng-devel
47BuildRequires: 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 52BuildRequires: perl-base
ef4f53fd 53BuildRequires: pixman-devel
7aa93278 54BuildRequires: pkgconfig
30c32325 55%{?with_cairogl:BuildRequires: pkgconfig(cairo-gl)}
83bf8742 56BuildRequires: poppler-glib-devel
7aa93278 57%{?with_sane:BuildRequires: sane-backends-devel}
d942d069 58BuildRequires: util-linux
15e73e64 59BuildRequires: which
e737495b 60BuildRequires: xorg-lib-libXpm-devel
7aa93278
JB
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
1b489733 63%define _appdefsdir /usr/share/X11/app-defaults
7aa93278
JB
64
65%description
66The fbida project contains a few applications for viewing and editing
67images, 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
77Projekt fbida zawiera kilka aplikacji do oglądania i edycji obrazków,
78głó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
88Summary: Linux FrameBuffer Imageviewer
1edcaba5 89Summary(pl.UTF-8): Przeglądarka obrazków dla linuksowego framebuffera
7aa93278 90Group: Applications/Graphics
57bf75a9 91Requires: mktemp >= 1.3
7aa93278
JB
92
93%description -n fbi
94This is a image viewer for linux framebuffer devices. It supports
95PhotoCD, JPEG and PPM directly. GIF, TIFF and PNG are handled with the
96netpbm tools, for anything else convert from the ImageMagick package
97is used as external converter.
98
99This 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
105To jest przeglądarka obrazków korzystająca z framebuffera. Obsługuje
106bezpośrednio PhotoCD, JPEG i PPM; GIF, TIFF i PNG poprzez narzędzia z
7aa93278
JB
107pakietu netpbm-progs; inne obrazki poprzez program convert z pakietu
108ImageMagick.
109
b76eca32
JR
110Ten 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
116Summary: Linux FrameBuffer PDF viewer
117Summary(pl.UTF-8): Przeglądarka plików PDF dla linuksowego framebuffera
118Group: Applications/Graphics
119
120%description -n fbpdf
121Linux FrameBuffer PDF viewer.
122
123%description -n fbpdf -l pl.UTF-8
124Przeglądarka plików PDF dla linuksowego framebuffera.
125
7aa93278
JB
126%package -n ida
127Summary: Small and fast image viewer, Motif-based
1edcaba5 128Summary(pl.UTF-8): Mała, szybka przeglądarka obrazków oparta na Motifie
7aa93278
JB
129Group: X11/Applications/Graphics
130
131%description -n ida
132Ida is a small and fast image viewer, Motif-based. For people who
133don't want the KDE/GNOME overhead. Some basic editing functions are
134available too.
135
b76eca32
JR
136%description -n ida -l pl.UTF-8
137Ida to mała i szybka przeglądarka obrazków oparta na Motifie.
138Przeznaczona jest dla ludzi, którzy nie chcą narzutu KDE/GNOME.
139Dostę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
147CFLAGS="%{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
161rm -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}
177install -D desktop/ida.desktop $RPM_BUILD_ROOT%{_desktopdir}/ida.desktop
178%endif
179
180%clean
181rm -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
This page took 0.077776 seconds and 4 git commands to generate.