ALT Linux repositórios
Group :: Gráficos
RPM: xsane
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: xsane
Version: 0.97
Release: alt2
Summary: XSane is a graphical frontend for scanners. It uses the library SANE
Summary(ru_RU.KOI8-R): Xsane -- ÜÔÏ ÇÒÁÆÉÞÅÓËÁÑ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÓËÁÎÉÒÏ×ÁÎÉÑ, ÉÓÐÏÌØÚÕÀÝÁÑ ÂÉÂÌÉÏÔÅËÕ SANE
License: GPL
Group: Graphics
Url: http://www.xsane.org
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: ftp://ftp.mostang.com/pub/sane/xsane/%name-%version.tar.bz2
Source1: %name-16x16.xpm
Source2: %name.menu
Source3: %name-%version.ru.po
Patch: %name-%version-debian.patch
Patch1: %name-%version-printf.patch
# Automatically added by buildreq on Mon Jan 31 2005
BuildRequires: fontconfig freetype2 glib2-devel hostinfo libatk-devel libgimp2-devel libgphoto2-devel libgtk+2-devel libieee1284-devel libjpeg-devel libpango-devel libpng-devel libsane-devel libtiff-devel libusb-devel pkgconfig recode xorg-x11-libs zlib-devel
BuildPreReq: recode
%description
XSane is a graphical frontend for SANE library,
which provides access to scanners, digital cameras,
and other capture devices. XSane is written in GTK+
and provides control for performing the scan and
then manipulating the captured image.
Install this if you want a graphical frontend for
sane for use in the X Window System.
%description -l ru_RU.KOI8-R
XSane -- ÜÔÏ ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ Ë ÂÉÂÌÉÏÔÅËÅ SANE,
ËÏÔÏÒÁÑ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÏÓÔÕÐ Ë ÓËÁÎÅÒÁÍ, ÃÉÆÒÏ×ÙÍ ËÁÍÅÒÁÍ É ÄÒÕÇÉÍ
ÕÓÔÒÏÊÓÔ×ÁÍ ××ÏÄÁ ÉÚÏÂÒÁÖÅÎÉÑ. XSane ÎÁÐÉÓÁÎÁ ÎÁ GTK+ É ÐÏÚ×ÏÌÑÅÔ
ÕÐÒÁ×ÌÑÔØ ÓËÁÎÉÒÏ×ÁÎÉÅÍ É ÏÂÒÁÂÏÔËÏÊ ÐÏÌÕÞÅÎÎÏÇÏ ÉÚÏÂÒÁÖÅÎÉÑ.
õÓÔÁÎÏ×ÉÔÅ XSane, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÌÕÞÉÔØ ÇÒÁÆÉÞÅÓËÕÀ ÏÂÏÌÏÞËÕ
ÄÌÑ sane, ÒÁÂÏÔÁÀÝÕÀ × ÓÉÓÔÅÍÅ X Window.
%package gimp2
Summary: A GIMP2 plug-in which provides the SANE scanner interface
Summary(ru_RU.KOI8-R): íÏÄÕÌØ ÄÌÑ GIMP2, ÐÏÚ×ÏÌÑÀÝÉÊ ÓËÁÎÉÒÏ×ÁÔØ ÞÅÒÅÚ SANE.
Group: Graphics
Provides: %name-gimp
Requires: %name = %version-%release, gimp2
%description gimp2
This package provides the regular XSane frontend for the SANE scanner
nterface, but it works as a GIMP2 plug-in. You must have GIMP2
installed to use this package.
%description gimp2 -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÏÂÙÞÎÙÊ ÆÒÏÎÔÅÎÄ XSane ÄÌÑ ÓËÁÎÉÒÏ×ÁÎÉÑ
ÞÅÒÅÚ ÉÎÔÅÒÆÅÊÓ SANE, ËÏÔÏÒÙÊ ÒÁÂÏÔÁÅÔ ËÁË ÍÏÄÕÌØ ÄÌÑ GIMP2.
÷ÁÍ ÐÏÔÒÅÂÕÅÔÓÑ ÕÓÔÁÎÏ×ÉÔØ GIMP2 ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÜÔÏÇÏ ÐÁËÅÔÁ.
%package doc
Summary: Documentation for XSANE
Summary(ru_RU.KOI8-R): äÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ XSANE
Group: Graphics
Requires: %name = %version-%release
%description doc
Documentation for XSANE
%description doc -l ru_RU.KOI8-R
äÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ XSANE
%prep
%setup -q
%patch -p0
%patch1 -p0
cp -f %SOURCE3 po/ru.po
# Set mozilla by default
%__subst 's|BROWSER "netscape|BROWSER "mozilla|g' src/xsane.h
%build
%configure --enable-gtk2 --enable-gimp
%__subst "s|/sane/xsane/doc|/doc/%name-%version/doc|" src/Makefile doc/Makefile
# What's problem with sane backend docs?
#%__subst "s|/usr/local/share/sane/|/usr/share/doc/%name-%version/doc|" doc/sane-backends-doc.html
#TODO: will we fix it to %_libdir?
%__subst 's#,-rpath,/usr/lib##' src/Makefile
cd po
make utf8
cd -
%make_build
%install
%makeinstall
install -d %buildroot/%_libdir/gimp/2.0/plug-ins
ln -s %_bindir/%name %buildroot/%_libdir/gimp/2.0/plug-ins/%name
install -p -m644 -D src/%name-32x32.xpm %buildroot%_iconsdir/%name.xpm
install -p -m644 -D src/%name-48x48.xpm %buildroot%_liconsdir/%name.xpm
install -p -m644 -D %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -p -m644 -D %SOURCE2 %buildroot%_menudir/%name
%__install -d %buildroot/%_docdir/%name-%version
%__install %name.* %buildroot/%_docdir/%name-%version/
%find_lang %name
%post
%update_menus
%update_scrollkeeper
%postun
%clean_menus
%clean_scrollkeeper
%files -f %name.lang
%_bindir/%name
%_docdir/%name-%version
%exclude %_docdir/%name-%version/doc
%exclude %_docdir/%name-%version/xsane.spec*
%_datadir/sane/*
%_mandir/man?/*
%_menudir/*
%_iconsdir/*.xpm
%_iconsdir/*/*.xpm
#%doc %name.*
%files doc
%_docdir/%name-%version/doc
%files gimp2
%_libdir/gimp/2.0/plug-ins/%name
%changelog
…
Todas as alterações você pod ver aqui
Version: 0.97
Release: alt2
Summary: XSane is a graphical frontend for scanners. It uses the library SANE
Summary(ru_RU.KOI8-R): Xsane -- ÜÔÏ ÇÒÁÆÉÞÅÓËÁÑ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÓËÁÎÉÒÏ×ÁÎÉÑ, ÉÓÐÏÌØÚÕÀÝÁÑ ÂÉÂÌÉÏÔÅËÕ SANE
License: GPL
Group: Graphics
Url: http://www.xsane.org
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: ftp://ftp.mostang.com/pub/sane/xsane/%name-%version.tar.bz2
Source1: %name-16x16.xpm
Source2: %name.menu
Source3: %name-%version.ru.po
Patch: %name-%version-debian.patch
Patch1: %name-%version-printf.patch
# Automatically added by buildreq on Mon Jan 31 2005
BuildRequires: fontconfig freetype2 glib2-devel hostinfo libatk-devel libgimp2-devel libgphoto2-devel libgtk+2-devel libieee1284-devel libjpeg-devel libpango-devel libpng-devel libsane-devel libtiff-devel libusb-devel pkgconfig recode xorg-x11-libs zlib-devel
BuildPreReq: recode
%description
XSane is a graphical frontend for SANE library,
which provides access to scanners, digital cameras,
and other capture devices. XSane is written in GTK+
and provides control for performing the scan and
then manipulating the captured image.
Install this if you want a graphical frontend for
sane for use in the X Window System.
%description -l ru_RU.KOI8-R
XSane -- ÜÔÏ ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ Ë ÂÉÂÌÉÏÔÅËÅ SANE,
ËÏÔÏÒÁÑ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÏÓÔÕÐ Ë ÓËÁÎÅÒÁÍ, ÃÉÆÒÏ×ÙÍ ËÁÍÅÒÁÍ É ÄÒÕÇÉÍ
ÕÓÔÒÏÊÓÔ×ÁÍ ××ÏÄÁ ÉÚÏÂÒÁÖÅÎÉÑ. XSane ÎÁÐÉÓÁÎÁ ÎÁ GTK+ É ÐÏÚ×ÏÌÑÅÔ
ÕÐÒÁ×ÌÑÔØ ÓËÁÎÉÒÏ×ÁÎÉÅÍ É ÏÂÒÁÂÏÔËÏÊ ÐÏÌÕÞÅÎÎÏÇÏ ÉÚÏÂÒÁÖÅÎÉÑ.
õÓÔÁÎÏ×ÉÔÅ XSane, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÌÕÞÉÔØ ÇÒÁÆÉÞÅÓËÕÀ ÏÂÏÌÏÞËÕ
ÄÌÑ sane, ÒÁÂÏÔÁÀÝÕÀ × ÓÉÓÔÅÍÅ X Window.
%package gimp2
Summary: A GIMP2 plug-in which provides the SANE scanner interface
Summary(ru_RU.KOI8-R): íÏÄÕÌØ ÄÌÑ GIMP2, ÐÏÚ×ÏÌÑÀÝÉÊ ÓËÁÎÉÒÏ×ÁÔØ ÞÅÒÅÚ SANE.
Group: Graphics
Provides: %name-gimp
Requires: %name = %version-%release, gimp2
%description gimp2
This package provides the regular XSane frontend for the SANE scanner
nterface, but it works as a GIMP2 plug-in. You must have GIMP2
installed to use this package.
%description gimp2 -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÏÂÙÞÎÙÊ ÆÒÏÎÔÅÎÄ XSane ÄÌÑ ÓËÁÎÉÒÏ×ÁÎÉÑ
ÞÅÒÅÚ ÉÎÔÅÒÆÅÊÓ SANE, ËÏÔÏÒÙÊ ÒÁÂÏÔÁÅÔ ËÁË ÍÏÄÕÌØ ÄÌÑ GIMP2.
÷ÁÍ ÐÏÔÒÅÂÕÅÔÓÑ ÕÓÔÁÎÏ×ÉÔØ GIMP2 ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÜÔÏÇÏ ÐÁËÅÔÁ.
%package doc
Summary: Documentation for XSANE
Summary(ru_RU.KOI8-R): äÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ XSANE
Group: Graphics
Requires: %name = %version-%release
%description doc
Documentation for XSANE
%description doc -l ru_RU.KOI8-R
äÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ XSANE
%prep
%setup -q
%patch -p0
%patch1 -p0
cp -f %SOURCE3 po/ru.po
# Set mozilla by default
%__subst 's|BROWSER "netscape|BROWSER "mozilla|g' src/xsane.h
%build
%configure --enable-gtk2 --enable-gimp
%__subst "s|/sane/xsane/doc|/doc/%name-%version/doc|" src/Makefile doc/Makefile
# What's problem with sane backend docs?
#%__subst "s|/usr/local/share/sane/|/usr/share/doc/%name-%version/doc|" doc/sane-backends-doc.html
#TODO: will we fix it to %_libdir?
%__subst 's#,-rpath,/usr/lib##' src/Makefile
cd po
make utf8
cd -
%make_build
%install
%makeinstall
install -d %buildroot/%_libdir/gimp/2.0/plug-ins
ln -s %_bindir/%name %buildroot/%_libdir/gimp/2.0/plug-ins/%name
install -p -m644 -D src/%name-32x32.xpm %buildroot%_iconsdir/%name.xpm
install -p -m644 -D src/%name-48x48.xpm %buildroot%_liconsdir/%name.xpm
install -p -m644 -D %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -p -m644 -D %SOURCE2 %buildroot%_menudir/%name
%__install -d %buildroot/%_docdir/%name-%version
%__install %name.* %buildroot/%_docdir/%name-%version/
%find_lang %name
%post
%update_menus
%update_scrollkeeper
%postun
%clean_menus
%clean_scrollkeeper
%files -f %name.lang
%_bindir/%name
%_docdir/%name-%version
%exclude %_docdir/%name-%version/doc
%exclude %_docdir/%name-%version/xsane.spec*
%_datadir/sane/*
%_mandir/man?/*
%_menudir/*
%_iconsdir/*.xpm
%_iconsdir/*/*.xpm
#%doc %name.*
%files doc
%_docdir/%name-%version/doc
%files gimp2
%_libdir/gimp/2.0/plug-ins/%name
%changelog
…
Todas as alterações você pod ver aqui