Summary: An X Window System front-end for the SANE scanner interface. Name: xsane Version: 0.999 Release: 1mamba Group: Graphical Desktop/Applications/Graphics Distribution: openmamba Vendor: openmamba Packager: Silvan Calarco URL: http://www.xsane.org/ Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz Patch0: xsane-0.999-libpng-1.5.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libatk-devel BuildRequires: libavahi-devel BuildRequires: libcairo-devel BuildRequires: libexif-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel BuildRequires: libgphoto-devel BuildRequires: libgtk2-devel BuildRequires: libjpeg-devel BuildRequires: liblcms-devel BuildRequires: libnetsnmp-devel BuildRequires: libopenssl-devel BuildRequires: libpango-devel BuildRequires: libpng-devel BuildRequires: libsane-backends-devel BuildRequires: libtiff-devel BuildRequires: libusb0-devel BuildRequires: libv4l-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END %description 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 %prep %setup -q %patch0 -p1 %build 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 %install 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] Name=XSane Comment=Sane FrontEnd GenericName=Scanner Utility GenericName[it]=Programma per lo Scanner Exec=xsane Icon=xsane Terminal=0 Type=Application Categories=Graphics EOF chmod 755 %{buildroot}%{_datadir}/applications/%{name}.desktop %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/xsane %{_datadir}/applications/xsane.desktop %{_datadir}/pixmaps/xsane.png %{_datadir}/pixmaps/xsane.xpm %dir %{_datadir}/sane/xsane %{_datadir}/sane/xsane/*-logo.xpm %{_datadir}/sane/xsane/xsane-*.txt %{_datadir}/sane/xsane/xsane-*.pnm %{_datadir}/sane/xsane/xsane-*.rc %dir %{_datadir}/sane/xsane/doc %{_datadir}/sane/xsane/doc/* %{_mandir}/man1/xsane.1* #%doc xsane* %changelog * Tue Aug 06 2013 Automatic Build System 0.999-1mamba - automatic update by autodist * Wed Nov 02 2011 Silvan Calarco 0.998-2mamba - rebuild with latest libsane-backends to remove dependency on libresmgr * Fri Feb 11 2011 Silvan Calarco 0.998-1mamba - update to 0.998 * Tue Dec 02 2008 Silvan Calarco 0.996-1mamba - automatic update by autodist * Mon Apr 28 2008 Silvan Calarco 0.995-1mamba - update to 0.995 * Sat Aug 18 2007 Tiziana Ferro 0.994-1mamba - update to 0.994 * Thu Jun 09 2005 Alessandro Ramazzina 0.97-2qilnx - rebuild and moved from devel-contrib repository to devel repository * Wed Jun 8 2005 Matteo Bernasconi 0.97-1qilnx - first build