3 %bcond_without gimp # don't build GIMP plugin
4 %bcond_with gtk1 # use GTK+ 1.2.x for GUI (for eg. for GIMP 1.2)
6 Summary: SANE - easy local and networked scanner access
7 Summary(es.UTF-8): SANE - acceso a scanners en red y locales
8 Summary(ko.UTF-8): 스캐너를 다루는 소프트웨어
9 Summary(pl.UTF-8): SANE - prosta obsługa skanerów lokalnych i sieciowych
10 Summary(pt_BR.UTF-8): Front-ends para o SANE
15 Group: X11/Applications/Graphics
16 #Source0Download: https://gitlab.com/sane-project/frontends/tags
17 Source0: https://gitlab.com/sane-project/frontends/uploads/14e5c5a9205b10bd3df04501852eab28/%{name}-%{version}.tar.gz
18 # Source0-md5: c63bf7b0bb5f530cf3c08715db721cd3
19 Patch0: sane-backends-1_20.patch
20 URL: http://sane-project.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
24 BuildRequires: gtk+-devel >= 1.2.0
25 %{?with_gimp:BuildRequires: gimp-devel < 1.3.0}
26 %{?with_gimp:BuildRequires: gimp-devel >= 1:1.2.0}
28 BuildRequires: gtk+2-devel >= 1:2.0.0
29 %{?with_gimp:BuildRequires: gimp-devel >= 1:1.3.23}
31 BuildRequires: sane-backends-devel >= 1.0.14
32 Requires: sane-backends >= 1.0.14
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define gimpplugindir %(gimptool --gimpplugindir 2>/dev/null || echo ERROR)
41 SANE (Scanner Access Now Easy) is a sane and simple interface to both
42 local and networked scanners and other image acquisition devices like
43 digital still and video cameras.
45 This packages contains frontends for SANE: xscanimage and xcam.
47 %description -l es.UTF-8
48 SANE - acceso a scanners en red y locales.
50 %description -l pl.UTF-8
51 SANE (Scanner Access Now Easy) jest rozsądnym i prostym interfejsem do
52 skanerów, zarówno lokalnych jak i sieciowych, oraz innych urządzeń do
53 pozyskiwania obrazów, jak cyfrowe aparaty i kamery.
55 Ten pakiet zawiera frontendy dla SANE: xscanimage i xcam.
57 %description -l pt_BR.UTF-8
58 SANE (Scanner Access Now Easy) é uma interface para scanners e outros
59 dispositivos locais e remotos de aquisição de imagens tais como
60 câmeras digitais. SANE atualmente suporta um grande numero de
61 scanners, incluindo modelos da Agfa SnapScan, Apple, Artec, Canon,
62 CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens, Tamarack, UMAX,
63 Connectix QuickCams e outros. Este pacote não habilita scanning por
64 rede por default; se você quiser habilitar essa característica,
65 verifique o manpage do saned(1).
72 cp -f /usr/share/automake/config.sub .
75 %{!?with_gimp:--disable-gimp} \
76 %{?with_gimp:%{?with_gtk1:--enable-gimp12}} \
77 %{?with_gtk1:--disable-gtk2}
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
88 ln -sf %{_bindir}/xscanimage $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
96 %doc AUTHORS Changelog NEWS PROBLEMS README
97 %attr(755,root,root) %{_bindir}/scanadf
98 %attr(755,root,root) %{_bindir}/xcam
99 %attr(755,root,root) %{_bindir}/xscanimage
100 %{?with_gimp:%attr(755,root,root) %{gimpplugindir}/plug-ins/xscanimage}
101 %{_mandir}/man1/scanadf.1*
102 %{_mandir}/man1/xcam.1*
103 %{_mandir}/man1/xscanimage.1*