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