]> git.pld-linux.org Git - packages/sane-frontends.git/blob - sane-frontends.spec
- macro fix
[packages/sane-frontends.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):    SANE - acceso a scanners en red y locales
8 Summary(ko):    ½ºÄ³³Ê¸¦ ´Ù·ç´Â ¼ÒÇÁÆ®¿þ¾î
9 Summary(pl):    SANE - prosta obs³uga skanerów lokalnych i sieciowych
10 Summary(pt_BR): Front-ends para o SANE
11 Name:           sane-frontends
12 Version:        1.0.11
13 Release:        7
14 License:        GPL
15 Group:          X11/Applications/Graphics
16 Source0:        ftp://ftp.mostang.com/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
17 # Source0-md5:  59b143e12c926726db16983d288aa1a1
18 Patch0:         %{name}-gimp1.3.15.patch
19 URL:            http://www.sane-project.org/
20 BuildRequires:  autoconf
21 %if %{with gtk1}
22 BuildRequires:  gtk+-devel
23 %{?with_gimp:BuildRequires:     gimp-devel < 1.3.0}
24 %{?with_gimp:BuildRequires:     gimp-devel >= 1:1.2.0}
25 %else
26 BuildRequires:  gtk+2-devel
27 %{?with_gimp:BuildRequires:     gimp-devel >= 1:1.3.15}
28 %endif
29 BuildRequires:  sane-backends-devel >= 1.0.11
30 %requires_eq    sane-backends
31 Obsoletes:      xscanimage
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %if %{with gimp}
35 %define         gimpplugindir   %(gimptool --gimpplugindir)
36 %endif
37
38 %description
39 SANE (Scanner Access Now Easy) is a sane and simple interface to both
40 local and networked scanners and other image acquisition devices like
41 digital still and video cameras.
42
43 This packages contains frontends for SANE: xscanimage and xcam.
44
45 %description -l es
46 SANE - acceso a scanners en red y locales.
47
48 %description -l pl
49 SANE (Scanner Access Now Easy) jest rozs±dnym i prostym interfejsem do
50 skanerów, zarówno lokalnych jak i sieciowych, oraz innych urz±dzeñ do
51 pozyskiwania obrazów, jak cyfrowe aparaty i kamery.
52
53 Ten pakiet zawiera frontendy dla SANE: xscanimage i xcam.
54
55 %description -l pt_BR
56 SANE (Scanner Access Now Easy) é uma interface para scanners e outros
57 dispositivos locais e remotos de aquisição de imagens tais como
58 câmeras digitais. SANE atualmente suporta um grande numero de
59 scanners, incluindo modelos da Agfa SnapScan, Apple, Artec, Canon,
60 CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens, Tamarack, UMAX,
61 Connectix QuickCams e outros. Este pacote não habilita scanning por
62 rede por default; se você quiser habilitar essa característica,
63 verifique o manpage do saned(1).
64
65 %prep
66 %setup -q
67 %patch -p1
68
69 %build
70 cp -f /usr/share/automake/config.sub .
71 %{__autoconf}
72 %configure \
73         %{!?with_gimp:--disable-gimp} \
74         %{?with_gimp:%{!?with_gtk1:--enable-gimp13 GIMPTOOL=%{_bindir}/gimptool}} \
75         %{?with_gtk1:--disable-gtk2}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %if %{with gimp}
85 install -d $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
86 ln -sf %{_bindir}/xscanimage $RPM_BUILD_ROOT%{gimpplugindir}/plug-ins
87 %endif
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %doc AUTHORS NEWS PROBLEMS TODO Changelog
95 %attr(755,root,root) %{_bindir}/*
96 %{?with_gimp:%attr(755,root,root) %{gimpplugindir}/plug-ins/*}
97 %{_mandir}/man1/*
98 %{_datadir}/sane
This page took 0.06364 seconds and 3 git commands to generate.