Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
scanbuttond
scanbuttond.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scanbuttond.spec of Package scanbuttond
# # spec file for package scanbuttond # # Copyright (c) 2018 SUSE LINUX 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/ # %if 0%{?suse_version} >= 1210 || 0%{?centos_version} >= 600 %bcond_without systemd %else %bcond_with systemd %endif Name: scanbuttond Version: 0.2.3 Release: 0 Summary: Configure your scanner buttons License: GPL-2.0-only Group: Hardware/Scanner Url: http://scanbuttond.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 Source1: scanbuttond.init Source2: %{name}-%{version}-rpmlintrc Source3: scanbuttond-README.SUSE Source11: scanbuttond-sbd-gimp.sh Source12: scanbuttond-sbd-mail.sh Source13: scanbuttond-sbd-print.sh Source14: scanbuttond-sbd-scan.sh Source15: scanbuttond.service Patch0: scanbuttond-buttonpressed.patch BuildRequires: libusb-devel Requires: netpbm # Requirements for the scripts in /etc/scanbuttond/* Requires: sane-backends Requires: tiff Recommends: gimp %if %{with systemd} BuildRequires: systemd %{?systemd_requires} %endif %description Modern scanners usually have several front panel buttons which are intended to trigger certain actions like copying, faxing or mailing the scanned document. This daemon queries the scanner button status several times per second. If it detects that a button is pressed, it runs a shell script which the button number is passed to as a command line argument. Because scanbuttond is accessing the scanner directly via libusb, there should be no conflicts with SANE or other scanner drivers: scanbuttond simply won't touch the scanner hardware while you are using SANE. This means that you can still scan even when running scanbuttond. %package devel Summary: Files for developing applications with scanbuttond Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: glibc-devel Requires: libusb-compat-devel %description devel This package contains files for developing applications using scanbuttond. %prep %setup -q cp scripts/buttonpressed.sh scripts/buttonpressed.sh.org %patch0 %build %configure --disable-static make %{?_smp_mflags} %install %make_install # install init script install -d -m755 %{buildroot}%{_sbindir} %if %{with systemd} install -Dm644 %{SOURCE15} %{buildroot}%{_unitdir}/%{name}.service ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %else install -d -m755 %{buildroot}%{_sysconfdir}/init.d install -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/scanbuttond ln -s %{_sysconfdir}/init.d/scanbuttond %{buildroot}%{_sbindir}/rcscanbuttond %endif # install sample scripts install -m755 %{SOURCE11} %{buildroot}%{_sysconfdir}/scanbuttond/sbd-gimp.sh install -m755 %{SOURCE12} %{buildroot}%{_sysconfdir}/scanbuttond/sbd-mail.sh install -m755 %{SOURCE13} %{buildroot}%{_sysconfdir}/scanbuttond/sbd-print.sh install -m755 %{SOURCE14} %{buildroot}%{_sysconfdir}/scanbuttond/sbd-scan.sh cp %{_builddir}/%{name}-%{version}/scripts/buttonpressed.sh.org %{buildroot}%{_sysconfdir}/scanbuttond/ # devel-files install -d -m755 %{buildroot}%{_includedir} cp -a %{_builddir}/%{name}-%{version}/include/* %{buildroot}%{_includedir}/ %if %{with systemd} %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service /sbin/ldconfig %else %post -p /sbin/ldconfig %endif %preun %if %{with systemd} %service_del_preun %{name}.service %else %stop_on_removal scanbuttond %endif %postun /sbin/ldconfig %if %{with systemd} %service_del_postun nrpe.service %{name}.service %else %insserv_cleanup scanbuttond %restart_on_update scanbuttond %endif %files %doc AUTHORS COPYING ChangeLog README %dir %{_sysconfdir}/scanbuttond %config(noreplace) %{_sysconfdir}/scanbuttond/buttonpressed.sh %config(noreplace) %{_sysconfdir}/scanbuttond/initscanner.sh %config(noreplace) %{_sysconfdir}/scanbuttond/meta.conf %{_sysconfdir}/scanbuttond/buttonpressed.sh.org %{_sysconfdir}/scanbuttond/sbd-gimp.sh %{_sysconfdir}/scanbuttond/sbd-mail.sh %{_sysconfdir}/scanbuttond/sbd-print.sh %{_sysconfdir}/scanbuttond/sbd-scan.sh %{_bindir}/scanbuttond %if %{with systemd} %{_unitdir}/%{name}.service %else %{_sysconfdir}/init.d/scanbuttond %endif %{_sbindir}/rcscanbuttond %{_libdir}/libscanbtnd-interface_usb.so.* %{_libdir}/libscanbtnd-backend_*.so.* %files devel %{_includedir}/scanbuttond/ %{_libdir}/libscanbtnd-interface_usb.so %{_libdir}/libscanbtnd-backend_*.so %{_libdir}/libscanbtnd-backend_epson.la %{_libdir}/libscanbtnd-backend_meta.la %{_libdir}/libscanbtnd-backend_mustek.la %{_libdir}/libscanbtnd-backend_niash.la %{_libdir}/libscanbtnd-backend_plustek.la %{_libdir}/libscanbtnd-backend_plustek_umax.la %{_libdir}/libscanbtnd-backend_snapscan.la %{_libdir}/libscanbtnd-interface_usb.la %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