]> git.pld-linux.org Git - packages/sane-backends.git/blame - sane-backends.spec
- converted to UTF-8
[packages/sane-backends.git] / sane-backends.spec
CommitLineData
9cf264dd
JB
1#
2# Conditional build:
10c883cd
JB
3%bcond_without gphoto # no gphoto backend (which requires libgphoto2)
4%bcond_without lpt # no parallel port backends (which require libieee1284)
42c5bc23 5%bcond_without rts88xx # rts88xx scanner support (hp4400/4470)
4833b1dc 6#
8edfdf22 7# XXX: really only x86*?
460ab8da 8%ifnarch %{ix86} %{x8664}
10c883cd
JB
9%undefine with_lpt
10%endif
3245458a 11Summary: SANE - easy local and networked scanner access
528520de
JR
12Summary(es.UTF-8): SANE - acceso a scanners en red y locales
13Summary(ko.UTF-8): 스캐너를 다루는 소프트웨어
14Summary(pl.UTF-8): SANE - prosta obsługa skanerów lokalnych i sieciowych
15Summary(pt_BR.UTF-8): SANE - acesso a scanners locais e em rede
60698b11 16Name: sane-backends
49905f2c 17Version: 1.0.18
9373b313 18Release: 1
e65775ea 19License: relaxed LGPL (libraries), and Public Domain (docs)
60698b11 20Group: Libraries
b1b1e40b 21Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/sane-backends-%{version}.tar.gz
49905f2c 22# Source0-md5: 7ca7e2908e24721471de92cf40c75e60
60698b11 23Source1: %{name}.rc-inetd
9cf264dd 24Source2: %{name}.m4
49905f2c
JB
25# http://hp44x0backend.sourceforge.net/ and http://home.foni.net/~johanneshub/
26Source3: http://dl.sourceforge.net/hp44x0backend/sane_hp_rts88xx-0.18.tar.gz
27# Source3-md5: 09d3eaf73f35b7795cd8418b8dc60f69
27d27dcc 28Patch1: %{name}-mustek-path.patch
29Patch2: %{name}-spatc.patch
07dc9461 30Patch3: %{name}-link.patch
47c1ba46 31Patch4: %{name}-pmake.patch
cbdf3ab7 32Patch5: %{name}-locale-names.patch
49905f2c
JB
33Patch6: %{name}-pl.po-update.patch
34Patch7: %{name}-hp_rts88xx-fixes.patch
82422732 35URL: http://www.sane-project.org/
acef4911 36BuildRequires: autoconf >= 2.54
71510c9c 37BuildRequires: automake
29c95ca5 38BuildRequires: gettext-devel
10c883cd 39%{?with_gphoto:BuildRequires: libgphoto2-devel >= 2.0.1}
49905f2c 40%{?with_lpt:BuildRequires: libieee1284-devel >= 0.1.5}
29c95ca5 41BuildRequires: libjpeg-devel
49905f2c 42BuildRequires: libtiff-devel
29c95ca5 43BuildRequires: libtool
282be383 44BuildRequires: libusb-devel
03a79035 45BuildRequires: pkgconfig
19737261 46BuildRequires: resmgr-devel
7eddbf0f 47BuildRequires: rpmbuild(macros) >= 1.268
07dc9461
JB
48BuildRequires: tetex-dvips
49BuildRequires: tetex-latex
3d0791bb 50BuildRequires: tetex-latex-psnfss
8bec1eff 51Requires: setup >= 2.4.10-1
ddd30718 52Obsoletes: sane
10c883cd
JB
53Obsoletes: sane-backends-sm3600
54Conflicts: sane-backends-plustek
55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60698b11
SZ
56
57%description
58SANE (Scanner Access Now Easy) is a sane and simple interface to both
59local and networked scanners and other image acquisition devices like
60digital still and video cameras. SANE currently includes modules for
61accessing:
62
45fccfbc 63Scanners: Abaton, Agfa, Apple, Artec, Avision, Bell+Howell, Canon,
68a10053
JB
64Epson, Fujitsu, HP, LEO, Microtek, Mustek, NEC, Nikon, Panasonic, PIE,
65Plustek, Ricoh, Sceptre, Sharp, Siemens, Tamarack, Teco, UMAX
60698b11 66
45fccfbc 67Digital cameras: Kodak, Polaroid, Connectix QuickCam
60698b11
SZ
68
69and other SANE devices via network.
70
528520de 71%description -l es.UTF-8
89a79b42 72SANE - acceso a scanners en red y locales.
f9ac7aa8 73
528520de
JR
74%description -l pl.UTF-8
75SANE (Scanner Access Now Easy) jest rozsądnym i prostym insterfejsem
76do skanerów, zarówno lokalnych jak i sieciowych, oraz innych urządzeń
77do pozyskiwania obrazów, jak cyfrowe aparaty i kamery. SANE aktualnie
78zawiera moduły do obsługi:
60698b11 79
45fccfbc 80Skanery: Abaton, Agfa, Apple, Artec, Avision, Bell+Howell, Canon,
68a10053
JB
81Epson, Fujitsu, HP, LEO, Microtek, Mustek, NEC, Nikon, Panasonic, PIE,
82Plustek, Ricoh, Sceptre, Sharp, Siemens, Tamarack, Teco, UMAX
60698b11 83
45fccfbc 84Aparaty cyfrowe: Kodak, Polaroid, Connectix QuickCam
60698b11 85
528520de 86oraz inne urządzenia dostępne przez sieć.
60698b11 87
528520de
JR
88%description -l pt_BR.UTF-8
89O SANE (Scanner Access Now Easy) é uma interface simples para scanners
90e outros dispositivos de captura de imagens como câmeras fotográficas
91digitais e de vídeo conectados diretamente ou através da rede.
f9ac7aa8 92
d74c2257 93%package devel
8db3686e 94Summary: Development part of SANE
528520de
JR
95Summary(es.UTF-8): Archivos necesarios para el desarrollo de programas que usen SANE
96Summary(pl.UTF-8): Część SANE przeznaczona dla programistów
97Summary(pt_BR.UTF-8): Arquivos necessários ao desenvolvimento de programas que usem o SANE
60698b11 98Group: Development/Libraries
a744bc4e 99Requires: %{name} = %{version}-%{release}
d74c2257 100Obsoletes: sane-backends-sane-devel
101Obsoletes: sane-backends-sane-static
60698b11 102
be1450ae 103%description devel
60698b11
SZ
104Development part of SANE.
105
528520de 106%description devel -l es.UTF-8
f9ac7aa8 107Archivos necesarios para el desarrollo de programas que usen SANE.
108
528520de
JR
109%description devel -l pl.UTF-8
110Część SANE dla programistów.
60698b11 111
528520de
JR
112%description devel -l pt_BR.UTF-8
113Arquivos necessários ao desenvolvimento de programas que usem o SANE.
f9ac7aa8 114
d74c2257 115%package static
60698b11 116Summary: Static SANE libraries
528520de
JR
117Summary(pl.UTF-8): Statyczne biblioteki SANE
118Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para o SANE (bibliotecas estáticas)
60698b11 119Group: Development/Libraries
a744bc4e 120Requires: %{name}-devel = %{version}-%{release}
d74c2257 121Obsoletes: sane-backends-sane-static
60698b11 122
be1450ae 123%description static
60698b11
SZ
124Static SANE libraries.
125
528520de 126%description static -l pl.UTF-8
1d380727
JB
127Biblioteki statyczne SANE.
128
528520de
JR
129%description static -l pt_BR.UTF-8
130Bibliotecas estáticas para desenvolvimento de módulos do SANE.
f9ac7aa8 131
b59f4761
JB
132%package saned
133Summary: SANE network daemon
528520de 134Summary(pl.UTF-8): Demon sieciowy SANE
b59f4761 135Group: Networking/Daemons
7eddbf0f 136Requires(post,postun): /sbin/ldconfig
1a0db5c3
JB
137Requires(pre): /bin/id
138Requires(pre): /usr/bin/getgid
139Requires(pre): /usr/sbin/groupadd
140Requires(pre): /usr/sbin/useradd
1a0db5c3 141Requires(preun): /usr/sbin/groupdel
15431bcf 142Requires(preun): /usr/sbin/userdel
a744bc4e 143Requires: %{name} = %{version}-%{release}
7eddbf0f 144Requires: rc-inetd
15431bcf 145Provides: group(saned)
146Provides: user(saned)
b59f4761
JB
147
148%description saned
149saned is the SANE (Scanner Access Now Easy) daemon that allows remote
150clients to access image acquisition devices available on the local
151host.
ab034751 152
528520de
JR
153%description saned -l pl.UTF-8
154saned to demon SANE pozwalający zdalnym klientom na dostęp do urządzeń
155odczytujących obraz podłączonych lokalnie.
b59f4761 156
1d380727
JB
157%package -n sane-mustek600IIN
158Summary: Mustek 600 II N scanner tool
528520de 159Summary(pl.UTF-8): Narzędzie do skanera Mustek 600 II N
1d380727 160Group: Applications/System
a744bc4e 161Requires: %{name} = %{version}-%{release}
1d380727
JB
162
163%description -n sane-mustek600IIN
b94c2a57 164Tool which turns Mustek 600 II N scanner off. Sometimes scanner hangs
165and can't be turned off by (x)scanimage in normal way.
1d380727
JB
166
167Note: this program needs root privileges or access to /dev/port.
168
528520de
JR
169%description -n sane-mustek600IIN -l pl.UTF-8
170Narzędzie wymuszające wyłączenie skanera Mustek 600 II N. Czasem
171skaner zawiesza się i nie jest możliwe wyłączenie go zwykłym sposobem
b94c2a57 172przez program (x)scanimage.
1d380727 173
528520de 174Ten program wymaga uprawnień roota albo dostępu do /dev/port.
60698b11 175
07dc9461
JB
176%package gphoto2
177Summary: SANE backend for gphoto2 supported cameras
528520de 178Summary(pl.UTF-8): Sterownik SANE do aparatów obsługiwanych przez gphoto2
07dc9461 179Group: Applications/System
a744bc4e 180Requires: %{name} = %{version}-%{release}
07dc9461
JB
181
182%description gphoto2
183SANE backend for gphoto2 supported cameras.
184
528520de
JR
185%description gphoto2 -l pl.UTF-8
186Sterownik SANE do aparatów obsługiwanych przez gphoto2.
07dc9461 187
10c883cd
JB
188%package pp
189Summary: SANE backends for parallel port scanners
528520de 190Summary(pl.UTF-8): Starowniki SANE dla skanerów podłączanych do portu równoległego
086d0b2f 191Group: Applications/System
a744bc4e 192Requires: %{name} = %{version}-%{release}
10c883cd
JB
193Obsoletes: sane-backends-canon_pp
194Obsoletes: sane-backends-hpsj5s
195# in case sb used parport scanner
2f3f1523
JB
196Obsoletes: kernel-char-plustek
197Obsoletes: kernel-smp-char-plustek
7eddbf0f 198Obsoletes: sane-backends-plustek
10c883cd
JB
199
200%description pp
201SANE backends for parallel port scanners. It includes the following
202drivers:
203- canon_pp (Canon CanoScan FBxxxP, CanoScan NxxxP)
204- hpsj5s (HP ScanJet 5S)
a744bc4e 205- mustek_pp (Mustek CIS and CCD scanners)
10c883cd
JB
206- plustek_pp (Plustek)
207
528520de
JR
208%description pp -l pl.UTF-8
209Starowniki SANE dla skanerów podłączanych do portu równoległego:
10c883cd
JB
210- canon_pp (Canon CanoScan FBxxxP, CanoScan NxxxP)
211- hpsj5s (HP ScanJet 5S)
a744bc4e 212- mustek_pp (skanery Mustek CIS i CCD)
10c883cd 213- plustek_pp (Plustek)
4833b1dc 214
60698b11 215%prep
4ba1f0da 216%setup -q -a3
10c883cd 217# kill libtool.m4 copy
94d8c057 218grep -B 100000 'libtool.m4 - Configure libtool for the host system' acinclude.m4 > acinclude.m4.tmp
10c883cd 219mv -f acinclude.m4.tmp acinclude.m4
60698b11 220%patch1 -p1
1d380727 221%patch2 -p1
4833b1dc 222%patch3 -p1
29c95ca5 223%patch4 -p1
cbdf3ab7 224%patch5 -p1
03a79035 225%patch6 -p1
49905f2c
JB
226%patch7 -p1
227%if %{with rts88xx}
03a79035
JB
228cd sane_hp_rts88xx/sane_hp_rts88xx
229sh -x patch-sane.sh `pwd`/../..
230cd ../..
4ba1f0da 231%endif
cbdf3ab7 232mv -f po/sane-backends.{no,nb}.po
ca687878 233
60698b11 234%build
68a10053 235%{__libtoolize}
ff595711 236%{__aclocal}
567d1f14 237%{__autoconf}
27d27dcc 238%configure \
68a10053
JB
239 --enable-static \
240 --enable-pnm-backend \
07dc9461 241 --enable-translations \
10c883cd 242 %{?with_gphoto:--with-gphoto2}
68a10053 243
60698b11
SZ
244%{__make}
245
27d27dcc 246%ifarch %{ix86}
37ca2fb8 247cd tools
248%{__cc} -DHAVE_SYS_IO_H %{rpmcflags} \
249 -I../include -o mustek600iin-off mustek600iin-off.c
250cd ..
9b253c44 251%endif
1d380727 252
60698b11
SZ
253%install
254rm -rf $RPM_BUILD_ROOT
0aa2de72 255install -d $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,%{_aclocaldir},/var/lock/sane}
60698b11 256
f19a3b82
PG
257%{__make} install \
258 DESTDIR=$RPM_BUILD_ROOT
27d27dcc 259
b94c2a57 260install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/saned
9cf264dd 261install %{SOURCE2} $RPM_BUILD_ROOT%{_aclocaldir}
9b253c44 262
27d27dcc 263%ifarch %{ix86}
1d380727 264install tools/mustek600iin-off $RPM_BUILD_ROOT%{_bindir}
9b253c44 265%endif
1d380727 266
73459f7f 267rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
268
d6515821
JB
269# only shared modules - shut up check-files
270rm -f $RPM_BUILD_ROOT%{_libdir}/sane/libsane-*.{so,la,a}
271
68a10053 272%find_lang %{name} --all-name
60698b11 273
45fccfbc
JB
274%clean
275rm -rf $RPM_BUILD_ROOT
276
8f122b94
JB
277%post -p /sbin/ldconfig
278%postun -p /sbin/ldconfig
279
b59f4761 280%pre saned
43995c69
ER
281%groupadd -g 90 saned
282%useradd -u 90 -d /usr/share/empty -s /bin/false -c "SANE remote scanning daemon" -g saned saned
60698b11 283
b59f4761 284%post saned
7eddbf0f 285%service -q rc-inetd reload
60698b11 286
b59f4761 287%postun saned
8db3686e 288if [ "$1" = "0" ]; then
7eddbf0f 289 %service -q rc-inetd reload
15431bcf 290 %userremove saned
291 %groupremove saned
ec39e318 292fi
8db3686e 293
68a10053 294%files -f %{name}.lang
60698b11 295%defattr(644,root,root,755)
10c883cd
JB
296%doc AUTHORS ChangeLog LICENSE NEWS PROBLEMS PROJECTS README README.linux
297%doc doc/canon doc/gt68xx doc/leo doc/matsushita doc/mustek doc/mustek_usb
298%doc doc/plustek doc/sceptre doc/teco doc/umax
60698b11 299%dir %{_sysconfdir}/sane.d
b1b1e40b
ER
300%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/[!cghmp]*
301%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/c[!a]*
302%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/canon.conf
303%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/canon630u.conf
304%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/genesys.conf
305%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/gt68xx.conf
306%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/hp.conf
282be383 307%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/hp4200.conf
b1b1e40b
ER
308%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/hp5400.conf
309%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/m[!u]*
310%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/mustek.conf
311%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/mustek_usb.conf
312%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/p[!l]*
313%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/plustek.conf
49905f2c 314%{?with_rts88xx:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/hp_rt*}
60698b11
SZ
315%dir %{_libdir}/sane
316%attr(755,root,root) %{_libdir}/lib*.so.*.*
10c883cd 317%attr(755,root,root) %{_libdir}/sane/libsane-[!cghmp]*.so.*
4833b1dc 318%attr(755,root,root) %{_libdir}/sane/libsane-c[!a]*.so.*
07dc9461
JB
319%attr(755,root,root) %{_libdir}/sane/libsane-canon.so.*
320%attr(755,root,root) %{_libdir}/sane/libsane-canon630u.so.*
94d8c057 321%attr(755,root,root) %{_libdir}/sane/libsane-genesys.so.*
9749bd03 322%attr(755,root,root) %{_libdir}/sane/libsane-gt68xx.so.*
4833b1dc 323%attr(755,root,root) %{_libdir}/sane/libsane-hp.so.*
49905f2c 324%attr(755,root,root) %{_libdir}/sane/libsane-hp3500.so.*
282be383 325%attr(755,root,root) %{_libdir}/sane/libsane-hp4200.so.*
d6515821 326%attr(755,root,root) %{_libdir}/sane/libsane-hp5400.so.*
10c883cd
JB
327%attr(755,root,root) %{_libdir}/sane/libsane-m[!u]*.so.*
328%attr(755,root,root) %{_libdir}/sane/libsane-mustek.so.*
329%attr(755,root,root) %{_libdir}/sane/libsane-mustek_usb.so.*
282be383 330%attr(755,root,root) %{_libdir}/sane/libsane-mustek_usb2.so.*
4833b1dc 331%attr(755,root,root) %{_libdir}/sane/libsane-p[!l]*.so.*
10c883cd 332%attr(755,root,root) %{_libdir}/sane/libsane-plustek.so.*
49905f2c 333%{?with_rts88xx:%attr(755,root,root) %{_libdir}/sane/libsane-hp_rts88xx.so.*}
81ca3008 334%attr(755,root,root) %{_bindir}/sane-find-scanner
b59f4761 335%attr(755,root,root) %{_bindir}/scanimage
9749bd03 336%attr(755,root,root) %{_bindir}/gamma4scanimage
8bec1eff 337%dir %attr(775,root,usb) /var/lock/sane
b59f4761
JB
338%{_mandir}/man1/sane-find-scanner.1*
339%{_mandir}/man1/scanimage.1*
9749bd03
AF
340%{_mandir}/man1/gamma4scanimage.1*
341%{_mandir}/man1/sane-config.1*
10c883cd 342%{_mandir}/man5/sane-[!cghmp]*
4833b1dc 343%{_mandir}/man5/sane-c[!a]*
07dc9461
JB
344%{_mandir}/man5/sane-canon.5*
345%{_mandir}/man5/sane-canon630u.5*
94d8c057 346%{_mandir}/man5/sane-genesys.5*
9749bd03 347%{_mandir}/man5/sane-gt68xx.5*
4833b1dc 348%{_mandir}/man5/sane-hp.5*
49905f2c 349%{_mandir}/man5/sane-hp3500.5*
282be383 350%{_mandir}/man5/sane-hp4200.5*
d6515821 351%{_mandir}/man5/sane-hp5400.5*
10c883cd
JB
352%{_mandir}/man5/sane-m[!u]*
353%{_mandir}/man5/sane-mustek.5*
354%{_mandir}/man5/sane-mustek_usb.5*
282be383 355%{_mandir}/man5/sane-mustek_usb2.5*
4833b1dc 356%{_mandir}/man5/sane-p[!l]*
10c883cd 357%{_mandir}/man5/sane-plustek.5*
49905f2c 358%{?with_rts88xx:%{_mandir}/man5/sane-hp_rts88xx.5*}
07dc9461 359%{_mandir}/man7/*
60698b11 360
42da3f70 361%files devel
60698b11 362%defattr(644,root,root,755)
60698b11
SZ
363%attr(755,root,root) %{_bindir}/sane-config
364%attr(755,root,root) %{_libdir}/*.so
16f83253 365%{_libdir}/*.la
a744bc4e 366%{_includedir}/sane
9cf264dd 367%{_aclocaldir}/*.m4
60698b11 368
42da3f70 369%files static
60698b11
SZ
370%defattr(644,root,root,755)
371%{_libdir}/lib*.a
1d380727 372
b59f4761
JB
373%files saned
374%defattr(644,root,root,755)
b1b1e40b
ER
375%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/saned
376%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/saned.conf
b59f4761 377%attr(755,root,root) %{_sbindir}/saned
03a79035 378%{_mandir}/man8/saned.8*
b59f4761
JB
379
380%ifarch %{ix86}
381%files -n sane-mustek600IIN
382%defattr(644,root,root,755)
383%attr(755,root,root) %{_bindir}/mustek600iin-off
384%endif
385
10c883cd 386%if %{with gphoto}
4833b1dc
JB
387%files gphoto2
388%defattr(644,root,root,755)
b1b1e40b 389%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/gphoto2.conf
4833b1dc
JB
390%attr(755,root,root) %{_libdir}/sane/libsane-gphoto2.so.*
391%{_mandir}/man5/sane-gphoto2.5*
9cf264dd 392%endif
07dc9461 393
10c883cd
JB
394%if %{with lpt}
395%files pp
07dc9461 396%defattr(644,root,root,755)
b1b1e40b
ER
397%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/canon_pp.conf
398%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/hpsj5s.conf
399%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/mustek_pp.conf
400%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sane.d/plustek_pp.conf
10c883cd 401%attr(755,root,root) %{_libdir}/sane/libsane-canon_pp.so.*
4833b1dc 402%attr(755,root,root) %{_libdir}/sane/libsane-hpsj5s.so.*
10c883cd 403%attr(755,root,root) %{_libdir}/sane/libsane-mustek_pp.so.*
10c883cd
JB
404%attr(755,root,root) %{_libdir}/sane/libsane-plustek_pp.so.*
405%{_mandir}/man5/sane-canon_pp.5*
4833b1dc 406%{_mandir}/man5/sane-hpsj5s.5*
10c883cd 407%{_mandir}/man5/sane-mustek_pp.5*
10c883cd 408%{_mandir}/man5/sane-plustek_pp.5*
9cf264dd 409%endif
This page took 0.104102 seconds and 4 git commands to generate.