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