Группа :: Графика
Пакет: sane
Главная Изменения Спек Патчи Загрузить Bugs and FR
# This spec for backport to M24 is autogenerated. Do not edit it.
Name: sane
Version: 1.0.17
Release: alt0.M24.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
Patch: %name-%version.lock.patch
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 libexif-devel
%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
BuildRequires: rpm-build-compat >= 0.4
%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
%patch -p1
#-%version
#cp -f %%SOURCE1 po/%oname.ru.po
%build
# use USER for dummy check lock group (there is uucp by default)
# group value does not used now in SANE
%__autoreconf
%configure --enable-static --enable-translations --with-gphoto2 \
--enable-libusb --with-docdir=%_docdir/%name-%version \
--enable-locking --with-group=$USER \
--with-lockdir=%_lockdir/%name
%make
#%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 -D %SOURCE2 -m0644 %buildroot%_sysconfdir/xinetd.d/%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/*
%_man5dir/*
%dir %_sysconfdir/sane.d/
%config(noreplace) %_sysconfdir/sane.d/*
%exclude %_sysconfdir/sane.d/saned.conf
%dir %_libdir/%name/
%_libdir/%name/*.so.*
%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
…
Полный changelog можно просмотреть здесь
Name: sane
Version: 1.0.17
Release: alt0.M24.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
Patch: %name-%version.lock.patch
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 libexif-devel
%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
BuildRequires: rpm-build-compat >= 0.4
%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
%patch -p1
#-%version
#cp -f %%SOURCE1 po/%oname.ru.po
%build
# use USER for dummy check lock group (there is uucp by default)
# group value does not used now in SANE
%__autoreconf
%configure --enable-static --enable-translations --with-gphoto2 \
--enable-libusb --with-docdir=%_docdir/%name-%version \
--enable-locking --with-group=$USER \
--with-lockdir=%_lockdir/%name
%make
#%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 -D %SOURCE2 -m0644 %buildroot%_sysconfdir/xinetd.d/%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/*
%_man5dir/*
%dir %_sysconfdir/sane.d/
%config(noreplace) %_sysconfdir/sane.d/*
%exclude %_sysconfdir/sane.d/saned.conf
%dir %_libdir/%name/
%_libdir/%name/*.so.*
%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
…
Полный changelog можно просмотреть здесь