packages xsane.spec
      Pages: < 1 >  DOWNLOAD      
Summary:       An X Window System front-end for the SANE scanner interface.
Name:          xsane
Version:       0.999
Release:       2mamba
Group:         Graphical Desktop/Applications/Graphics
Distribution:  openmamba
Vendor:        openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
Patch0:        xsane-0.999-libpng-1.5.patch
Patch1:        xsane-0.999-xdg-open.patch
License:       GPL
BuildRoot:     %{_tmppath}/%{name}-%{version}-root
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libsane-backends-devel
BuildRequires: libtiff-devel
BuildRequires: libz-devel

XSane is an X based interface for the SANE (Scanner Access Now Easy) 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.
This package also includes THE GIMP plug-in

%setup -q
%patch0 -p1
%patch1 -p1

CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
uname -a | grep -qi SMP && make -j 2 || make

install -D -m0755 src/xsane %{buildroot}%{_libdir}/gimp/2.0/plug-ins/xsane

make clean
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --disable-gimp
uname -a | grep -qi SMP && make -j 2 || make

mkdir -p %{buildroot}%{_prefix}
make prefix=%{buildroot}%{_prefix} install
strip %{buildroot}%{_prefix}/bin/* || :

install -D -m644 src/xsane-16x16.png %{buildroot}%{_datadir}/pixmaps/xsane.png

# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Comment=Sane FrontEnd
GenericName=Scanner Utility
GenericName[it]=Programma per lo Scanner

chmod 755  %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

rm -rf %{buildroot}

%files -f %{name}.lang
%dir %{_datadir}/sane/xsane
%dir %{_datadir}/sane/xsane/doc
#%doc xsane*

* Wed Aug 01 2018 Silvan Calarco <silvan.calarco@...> 0.999-2mamba
- rebuilt

* Tue Aug 06 2013 Automatic Build System <autodist@...> 0.999-1mamba
- automatic update by autodist

* Wed Nov 02 2011 Silvan Calarco <silvan.calarco@...> 0.998-2mamba
- rebuild with latest libsane-backends to remove dependency on libresmgr

* Fri Feb 11 2011 Silvan Calarco <silvan.calarco@...> 0.998-1mamba
- update to 0.998

* Tue Dec 02 2008 Silvan Calarco <silvan.calarco@...> 0.996-1mamba
- automatic update by autodist

* Mon Apr 28 2008 Silvan Calarco <silvan.calarco@...> 0.995-1mamba
- update to 0.995

* Sat Aug 18 2007 Tiziana Ferro <tiziana.ferro@...> 0.994-1mamba
- update to 0.994

* Thu Jun 09 2005 Alessandro Ramazzina <alessandro.ramazzina@...> 0.97-2qilnx
- rebuild and moved from devel-contrib repository to devel repository

* Wed Jun 8 2005  Matteo Bernasconi <voyagernm@...> 0.97-1qilnx 
- first build