Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37577076
en ru br
ALT Linux repositórios
S:1.2.1-alt2
5.0: 1.0.19-alt2
4.1: 1.0.19-alt1
4.0: 1.0.18-alt4.M40.1
3.0: 1.0.16-alt2
+backports:1.0.17-alt0.M30.1

Group :: Gráficos
RPM: sane

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# Note: Compact 2.3 has broken libgphoto2 (with la depends on libexif)
Name: sane
Version: 1.0.18
Release: alt4.M40.1

Summary: This package contains the SANE docs and utils
Summary(ru_RU.KOI8-R): äÏËÕÍÅÎÔÁÃÉÑ É ÕÔÉÌÉÔÙ ÄÌÑ SANE

License: GPL
Group: Graphics
Url: http://www.sane-project.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

%define oname %name-backends
Source: ftp://ftp.sane-project.org/pub/sane/%oname-%version/%oname-%version.tar.bz2
#Source: ftp://ftp.sane-project.org/pub/sane/sane-backends-2005-03-20.tar.bz2
#Source1: %name-%version.ru.po
Source2: %name.xinetd
Source3: %name-scsi.rules
Source4: hpljm1005.c
Source5: hpljm1005.desc
Patch: http://dl.sf.net/hp3900-series/hp3900-sane1018_src_0.7.tar.bz2
Patch1: sane-hpljm1005.patch
Patch2: sane-build.patch
Patch3: sane-%version-hp-psc.patch

#set_verify_elf_method unresolved=strict

# FIXME: check module linking without provides
#add_findprov_lib_path %_libdir/%name

Requires: lib%name = %version-%release
Requires: udev
# manually removed: gcc-g77 libsane-devel
# Automatically added by buildreq on Sat Sep 10 2005
BuildRequires: gcc-c++ libgphoto2-devel libieee1284-devel libjpeg-devel libstdc++-devel libusb-devel pkgconfig
# tetex-core tetex-dvips tetex-latex
BuildRequires: setup libexif-devel libtiff-devel

%package -n %name-server
Summary: SANE as network server
Group: System/Libraries
License: LGPL
Requires: lib%name

%package -n lib%name
Summary: SANE shared libraries
Group: System/Libraries
License: LGPL
Provides: sane-backends

%package -n lib%name-devel
Summary: Development environment for SANE
Group: Development/C
License: LGPL
Requires: lib%name = %version-%release
Provides: %name-devel = %version
Obsoletes: %name-devel

%package -n lib%name-devel-static
Summary: SANE static libraries
Group: Development/C
License: LGPL
Requires: lib%name-devel = %version-%release

%description
SANE (Scanner Access Now Easy) is a sane and simple interface to both
local and networked scanners and other image acquisition devices like
digital still and video cameras. SANE currently includes modules for
accessing:

Scanners: Abaton, Agfa, Apple, Artec, Avision, Bell+Howell, Canon,
Epson, Fujitsu, HP, LEO, Microtek, Mustek, NEC, Nikon, Panasonic, PIE,
Plustek, Ricoh, Sceptre, Sharp, Siemens, Tamarack, Teco, UMAX
HP Scanjet 3900 series scanners (hp3970,
hp4070, hp4370 and those which use RTS8822 chipset).

Digital cameras: Kodak, Polaroid, Connectix QuickCam
and other SANE devices via network (see sane-server package
and read the saned(1) manpage).

%description -l ru_RU.KOI8-R
SANE (Scanner Access Now Easy) -- ÜÔÏ ÄÏÓÔÁÔÏÞÎÏ ÒÁÚÕÍÎÙÊ
É × ÔÏ ÖÅ ×ÒÅÍÑ ÐÒÏÓÔÏÊ ÉÎÔÅÒÆÅÊÓ ÄÌÑ ÌÏËÁÌØÎÙÈ É ÓÅÔÅ×ÙÈ
ÓËÁÎÅÒÏ× É ÄÒÕÇÉÈ ÕÓÔÒÏÊÓÔ× ÏÃÉÆÒÏ×ËÉ ÉÚÏÂÒÁÖÅÎÉÊ, ÔÁËÉÈ ËÁË
ÃÉÆÒÏ×ÙÅ ÆÏÔÏÁÐÐÁÒÁÔÙ É ×ÉÄÅÏËÁÍÅÒÙ. ÷ ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ SANE
×ËÌÀÞÁÅÔ ÍÏÄÕÌÉ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÛÉÒÏËÏÇÏ ËÒÕÇÁ ÓËÁÎÅÒÏ×,
×ËÌÀÞÁÑ ÍÏÄÅÌÉ

óËÁÎÅÒÏ×: Abaton, Agfa, Apple, Artec, Avision, Bell+Howell, Canon,
Epson, Fujitsu, HP, LEO, Microtek, Mustek, NEC, Nikon, Panasonic, PIE,
Plustek, Ricoh, Sceptre, Sharp, Siemens, Tamarack, Teco, UMAX

ãÉÆÒÏ×ÙÈ ÆÏÔÏÁÐÐÁÒÁÔÏ×: Kodak, Polaroid, Connectix QuickCam
É ÄÒÕÇÉÈ SANE-ÕÓÔÒÏÊÓÔ× ÐÏ ÓÅÔÉ (ÕÓÔÁÎÏ×ÉÔÅ ÐÁËÅÔ sane-server É
ÐÒÏÞÉÔÁÊÔÅ ÓÔÒÁÎÉÃÕ ÒÕËÏ×ÏÄÓÔ×Á man saned(1)).

%description -n %name-server
This package contains SANE network server components.

%description -n lib%name
This package contains SANE shared libraries
and scanner backend modules.
Install this package for scan programs.

%description -n lib%name -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ SANE
É ÍÏÄÕÌÉ ÐÏÄÄÅÒÖËÉ ÒÁÚÌÉÞÎÙÈ ÓËÁÎÅÒÏ×.
éÍÅÎÎÏ ÜÔÏÔ ÐÁËÅÔ ÔÒÅÂÕÅÔÓÑ ÐÒÏÇÒÁÍÍÁÍ ÓËÁÎÉÒÏ×ÁÎÉÑ.

%description -n lib%name-devel
This package contains development environment for SANE.

%description -n lib%name-devel -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SANE.

%description -n lib%name-devel-static
This package contains SANE static libraries.

%description -n lib%name-devel-static -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ SANE.

%prep
%setup -q -n %oname-%version
%patch -p1
%patch1
%patch2
%patch3

# hpljm1005

cp %SOURCE4 backend/
cp %SOURCE5 doc/descriptions-external
%__subst "s,hp3900,hpljm1005\nhp3900," backend/dll.conf.in
%__subst "s,hp3900_usb.c,hp3900_usb.c hpljm1005.c," backend/Makefile.in
%__subst "s,BACKENDS=\"hp3900,BACKENDS=\"hp3900 hpljm1005," configure.in

#-%version

#cp -f %%SOURCE1 po/%oname.ru.po

%build
# due hp3900 backend patch
%__autoreconf
# use USER for dummy check lock group (there is uucp by default)
# group value does not used now in SANE
%configure --enable-static --enable-translations --with-gphoto2 \
--enable-libusb --with-docdir=%_docdir/%name-%version \
--enable-locking --with-group=$USER \
--with-lockdir=%_lockdir/%name

%make_build
#%make -C doc sane.ps.gz

%install
%make_install install DESTDIR=%buildroot

# fix default path to firmware (direct %_libdir here...)

subst "s|/path/to/your/firmware|%_libdir/hotplug/firmware|" %buildroot%_sysconfdir/sane.d/*.conf
install -D -m0644 tools/hotplug/libsane.usermap %buildroot%_sysconfdir/hotplug/usb/libsane.usermap
install -D -m0755 tools/hotplug/libusbscanner %buildroot%_sysconfdir/hotplug/usb/libusbscanner

# install udev rules

#sh tools/udev/convert-usermap.sh tools/hotplug/libsane.usermap
install -D -m0644 tools/udev/libsane.rules %buildroot%_sysconfdir/udev/rules.d/25-libsane.rules
install -D %SOURCE3 -m0644 %buildroot%_sysconfdir/udev/rules.d/75-libsane-scsi.rules

install -D %SOURCE2 -m0644 %buildroot%_sysconfdir/xinetd.d/%name
#mkdir -p %buildroot%_lockdir/%name/

%__rm -f %buildroot%_libdir/%name/*.la

%find_lang %oname

%pre -n lib%name
%_sbindir/groupadd -r -f scanner || :

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files
%_docdir/%name-*
%_bindir/sane-find-scanner
%_bindir/scanimage
%_bindir/gamma4scanimage
%_man1dir/*
%exclude %_man8dir/saned*
%exclude %_man1dir/sane-config*
%_man7dir/*

%files -n %name-server
%config(noreplace) %_sysconfdir/xinetd.d/%name
%config(noreplace) %_sysconfdir/sane.d/saned.conf
%_sbindir/*
%_man8dir/saned*

%files -n lib%name -f %oname.lang
%_libdir/*.so.*
%_sysconfdir/hotplug/usb/*
%_sysconfdir/udev/rules.d/*
%_man5dir/*
%dir %_sysconfdir/sane.d/
%config(noreplace) %_sysconfdir/sane.d/*
%exclude %_sysconfdir/sane.d/saned.conf
%dir %_libdir/%name/
%_libdir/%name/*.so.*
# used in sane-frontends, xsane
%dir %_datadir/%name/
%attr(775,root,scanner) %dir %_lockdir/%name/

%files -n lib%name-devel
%_bindir/sane-config
%_man1dir/sane-config*
%_libdir/*.so
%_libdir/%name/*.so
%_includedir/sane/

%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/sane/*.a

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009