Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37788267
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 

Name: sane
Version: 1.0.16
Release: alt2

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/

%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

Requires: lib%name = %version-%release

# 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

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

%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

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
%__subst "s|^\(localstatesanedir =\).*|\1%_lockdir/%name|" backend/Makefile.in
%__subst "s|\(PATH_SANE_LOCK_DIR=\).*| \1%_lockdir/%name \\\|g" configure
%__subst "s|/lock/sane|/sane|" sanei/sanei_access.c
#%__subst "s|chgrp|#chgrp|" configure

#-%version

cp -f %SOURCE1 po/%oname.ru.po
# niash
#CURDIR=`pwd`
#mkdir addon && cd addon && tar xvfj %SOURCE3 && cd backend && ./patch-sane.sh $CURDIR

%build
%configure --enable-static --enable-translations --with-gphoto2 \
--enable-libusb --with-docdir=%_docdir/%name-%version \
--enable-locking --with-group=$USER
# group value does not used now in SANE

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

%install
%make_install install DESTDIR=%buildroot

# fix default path to firmware (direct /usr/lib here...)

subst "s|/path/to/your/firmware|/usr/lib/hotplug/firmware|" %buildroot/etc/sane.d/*.conf
%__install -D -m0644 tools/hotplug/libsane.usermap $RPM_BUILD_ROOT/etc/hotplug/usb/libsane.usermap
%__install -D -m0755 tools/hotplug/libusbscanner $RPM_BUILD_ROOT/etc/hotplug/usb/libusbscanner
%__install -D %SOURCE2 -m0644 $RPM_BUILD_ROOT/etc/xinetd.d/%name

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

%find_lang %oname

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

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files
%docdir %_docdir/%name-*
%_docdir/%name-*
%_bindir/sane-find-scanner
%_bindir/scanimage
%_bindir/gamma4scanimage
%_man1dir/*
%exclude %_mandir/man8/saned*
%exclude %_mandir/man1/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.*
/etc/hotplug/usb/*
%_man5dir/*
%dir %_sysconfdir/sane.d
%config(noreplace) %_sysconfdir/sane.d/*
%exclude %_sysconfdir/sane.d/saned.conf
%dir %_libdir/%name
%_libdir/%name/*.so.*
%dir %_datadir/sane
%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