]> git.pld-linux.org Git - SPECS.git/blob - sane-frontends.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / sane-frontends.spec
1 #
2 # Conditional build:
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)
5 #
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
11 Name:           sane-frontends
12 Version:        1.0.14
13 Release:        1
14 License:        GPL v2+
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
23 %if %{with gtk1}
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}
27 %else
28 BuildRequires:  gtk+2-devel >= 1:2.0.0
29 %{?with_gimp:BuildRequires:     gimp-devel >= 1:1.3.23}
30 %endif
31 BuildRequires:  sane-backends-devel >= 1.0.14
32 Requires:       sane-backends >= 1.0.14
33 Obsoletes:      xscanimage
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %if %{with gimp}
37 %define         gimpplugindir   %(gimptool --gimpplugindir 2>/dev/null || echo ERROR)
38 %endif
39
40 %description
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.
44
45 This packages contains frontends for SANE: xscanimage and xcam.
46
47 %description -l es.UTF-8
48 SANE - acceso a scanners en red y locales.
49
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.
54
55 Ten pakiet zawiera frontendy dla SANE: xscanimage i xcam.
56
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).
66
67 %prep
68 %setup -q
69 %patch0 -p1
70
71 %build
72 cp -f /usr/share/automake/config.sub .
73 %{__autoconf}
74 %configure \
75         %{!?with_gimp:--disable-gimp} \
76         %{?with_gimp:%{?with_gtk1:--enable-gimp12}} \
77         %{?with_gtk1:--disable-gtk2}
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %if %{with gimp}
87 install -d $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
88 ln -sf %{_bindir}/xscanimage $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
89 %endif
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
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*
104 %{_datadir}/sane
This page took 0.333585 seconds and 3 git commands to generate.