Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Update
xsane
xsane.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xsane.spec of Package xsane
# # spec file for package xsane # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: xsane Version: 0.998 Release: 0 Summary: A GTK-Based Graphical Scanning Front-End for SANE License: GPL-2.0+ Group: Hardware/Scanner Url: http://www.xsane.org/ # URL for Source0: http://www.xsane.org/download/xsane-0.998.tar.gz Source0: xsane-%{version}.tar.bz2 # PATCH-FIX-UPSTREAM xsane-desktop.patch sbrabec@suse.cz -- Fix upstream desktop file. Patch: %{name}-desktop.patch # fix printf using locale dependent float representation Patch1: xsane_fix_pdf_floats.patch # fix build with libpng15 Patch2: xsane-libpng15.patch # Patch100... is SUSE specific stuff: # Patch100 suppresses the disclaimer of warranty and liability dialog # and adds a modification note and adds a openSUSE Bugzilla URL # to make the change obvious for the user and direct bug reports to us: Patch100: no-eula.patch # Patch101 sets DEFAULT_BROWSER "xdg-open" in xsane.h # to get the right browser launched for KDE and Gnome users: Patch101: xdg-open-as-default-browser.patch # Patch102 removes the items in the help menue regarding backend documentation # because the referred files do not exist (dead URLs in sane-backends-doc.html): Patch102: remove-non-working-help.patch # bnc#542539 Patch103: xsane-memory-leak.diff BuildRequires: gimp-devel BuildRequires: libgphoto2-devel BuildRequires: libjpeg-devel BuildRequires: liblcms-devel BuildRequires: libtiff-devel BuildRequires: update-desktop-files %if 0%{?suse_version} > 1130 BuildRequires: sane-backends-devel %else BuildRequires: sane-backends %endif # Require the SANE base system in sane-backends explicitely to be on the safe side # because whatever third-party scanner driver package (e.g. a third-party Iscan RPM) # could provide libsane.so.1 by accident via RPM Autoreqprov, see our iscan-free.spec # and iscan.spec how to exclude libsane from the provide-list of Autoreqprov. # Require xdg-utils because Patch101 sets the DEFAULT_BROWSER to "xdg-open" # to get the right browser launched for KDE and Gnome users. Requires: sane-backends Requires: xdg-utils # Provide the RPM capability "gimp-2.0-scanner-plugin" which is also provided by # the sane-frontends RPM so that the gimp RPM can recommend "gimp-2.0-scanner-plugin" # so that either of xsane or sane-frontends are sufficient to be installed. Provides: gimp-2.0-scanner-plugin # Install into this non-root directory (required when norootforbuild is used): BuildRoot: %{_tmppath}/%{name}-%{version}-build %description XSane does not support any scanners itself. XSane uses the SANE library to talk to scanners that are supported by SANE. XSane is designed for acquiring images with scanners (there are other devices like cameras and video devices supported by SANE, but XSane is not designed for that purpose). You can scan to file, make a photocopy, create a fax, and start XSane from the GIMP as a GIMP plug-in. XSane may not work correctly or you may not be able to take full advantage of all functions if you do not configure XSane correctly. See the documentation at /usr/share/sane/xsane/doc/sane-xsane-doc.html. The XSane home page is http://www.xsane.org/. %prep # Be quiet when unpacking: %setup -q # zh is not valid locale. In fact it is zh_TW: mv po/zh.po po/zh_TW.po mv po/zh.gmo po/zh_TW.gmo sed -i "s/ zh / zh_TW /" configure.in configure %patch %patch1 -p1 %patch2 -p1 # Patch100 suppresses the disclaimer of warranty and liability dialog # and adds a modification note and adds a openSUSE Bugzilla URL # to make the change obvious for the user and direct bug reports to us: %patch100 # Patch101 sets DEFAULT_BROWSER "xdg-open" in xsane.h # to get the right browser launched for KDE and Gnome users: %patch101 # Patch102 removes the items in the help menue regarding backend documentation # because the referred files do not exist (dead URLs in sane-backends-doc.html): %patch102 %patch103 -p1 %build # Set our preferred architecture-specific flags for the compiler and linker: #export CFLAGS="%{optflags} -fno-strict-aliasing" # See /usr/lib/rpm/suse_macros regarding our RPM macros (e.g. sysconfdir is /etc): #ACLOCAL="aclocal -I m4" autoreconf -f -i %configure\ --enable-gimp make %{?_smp_mflags} %install make install\ prefix=%{buildroot}%{_prefix}\ bindir=%{buildroot}%{_bindir}\ datadir=%{buildroot}%{_datadir}\ mandir=%{buildroot}%{_mandir}\ desktopappdir=%{buildroot}%{_datadir}/applications\ pixmapdir=%{buildroot}%{_datadir}/pixmaps # Create GIMP plugin link: mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins ln -sf %{_bindir}/xsane %{buildroot}%{_libdir}/gimp/2.0/plug-ins/xsane %suse_update_desktop_file %{name} %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) # Exclude xsane.WIN* and xsane,INSTALL: %doc xsane.[A-HJ-VX-Z]* # The manual is in _datadir/sane/xsane/doc, so do not package it here again: #%doc doc/*.html doc/*.jpg %{_bindir}/xsane %{_datadir}/sane/xsane %doc %{_mandir}/man1/xsane.1* %dir %{_libdir}/gimp/ %dir %{_libdir}/gimp/2.0/ %dir %{_libdir}/gimp/2.0/plug-ins/ %{_libdir}/gimp/2.0/plug-ins/* %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/*.xpm %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor