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