# # spec file for package scanbd # # Copyright (c) 2014-2018 Malcolm J Lewis # # 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: scanbd Version: 1.5.1 Release: 3.29 Summary: Scanner button daemon looking for scanner button pressed License: GPL-2.0+ Group: Productivity/Graphics/Other Url: http://scanbd.sourceforge.net/ Source: https://downloads.sourceforge.net/project/%{name}/releases/%{name}-%{version}.tgz #FIXME If intended for inclusion in any SUSE product please open a bug report to # request review of the service by the security team. Source99: scanbd-rpmlintrc #PATCH-FIX-OPENSUSE scanbd-fix-ownership.patch malcolmlewis@opensuse.org -- Set ownership of systemd services and dbus service to root. Patch0: scanbd-fix-ownership.patch # patch from Debian Patch100: scanbd-fix_gcc9.patch # patch run for pid.file Patch110: scanbd-run.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(libconfuse) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(sane-backends) BuildRequires: pkgconfig(systemd) %description Scanbd is a scanner button daemon. It polls the scanner buttons looking for buttons pressed or function knob changes or other scanner events as paper inserts / removals and at the same time allows also scan-applications to access the scanners. If buttons are pressed, etc., various actions can be submitted (scan, copy, email, ...) via action scripts. The function knob values are passed to the action-scripts as well. Scan actions are also signaled via dbus. This can be useful for foreign applications. Scans can also be triggered via dbus from foreign applications. On platforms which support signaling of dynamic device insertion / removal (libudev, dbus, hal) scanbd supports this as well. scanbd can use all sane-backends or some special backends from the (old) scanbuttond project. %prep %setup -q -n %{version} %patch0 -p1 %patch100 -p1 %patch110 -p1 %build %configure \ --with-user=root \ --with-group=root make CFLAGS="%{optflags} -Wno-missing-field-initializers" %{?_smp_mflags} %install %make_install pushd %{buildroot}%{_sbindir} ln -s service rcscanbd popd install -Dm0644 integration/scanbd_dbus.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/scanbd_dbus.conf install -Dm0644 integration/systemd/de.kmux.scanbd.server.service %{buildroot}/%{_datadir}/dbus-1/system-services/de.kmux.scanbd.server.service %pre %service_add_pre scanbd.service %service_add_pre scanbm.socket %service_add_pre scanbm@.service %post %service_add_post scanbd.service %service_add_post scanbm.socket %service_add_post scanbm@.service %preun %service_del_preun scanbd.service %service_del_preun scanbm.socket %service_del_preun scanbm@.service %postun %service_del_postun scanbd.service %service_del_postun scanbm.socket %service_del_postun scanbm@.service %files %doc AUTHORS %config(noreplace) %{_sysconfdir}/dbus-1/system.d/scanbd_dbus.conf %dir %{_sysconfdir}/scanbd %{_sysconfdir}/scanbd/action.script %{_sysconfdir}/scanbd/example.script %{_sysconfdir}/scanbd/insert.script %{_sysconfdir}/scanbd/scanadf.script %{_sysconfdir}/scanbd/test.script %dir %{_sysconfdir}/scanbd/scanner.d %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/pixma.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/canon.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/avision.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/fujitsu.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/snapscan.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/plustek.conf %config(noreplace) %{_sysconfdir}/scanbd/scanner.d/hp.conf %config(noreplace) %{_sysconfdir}/scanbd/scanbd.conf %{_sbindir}/rcscanbd %{_sbindir}/scanbd %{_sbindir}/scanbm #\%{_unitdir}/scanbd.service #\%{_unitdir}/scanbm.socket #\%{_unitdir}/scanbm@.service %{_datadir}/dbus-1/system-services/de.kmux.scanbd.server.service %{_mandir}/man8/scanbd.8%{?ext_man} %{_mandir}/man8/scanbm.8%{?ext_man} %changelog * Mon Aug 27 2018 malcolmlewis@opensuse.org - Add scanbd-fix-ownership.patch: Set ownership of systemd services and dbus service to root. * Mon Aug 27 2018 malcolmlewis@opensuse.org - Add dbus service files and scanbd-rpmlintrc to set dbus policy badness to 0 since not planning on submission. * Sun Oct 8 2017 mardnh@gmx.de - Update to version 1.5.1: + No changelog reference. - Changes from version 1.5.0: + No changelog reference. - Changes from version 1.4.6: + No changelog reference. - Changes from version 1.4.5: + No changelog reference. - Changes from version 1.4.4: * Tue Jan 12 2016 malcolmlewis@opensuse.org - Add optflags to build. * Mon Oct 5 2015 malcolmlewis@opensuse.org - Update to version 1.4.4 + Add call to setgroups (Issue 10). - Drop scanbd-fix-pos36c-setgroups-error.patch as fixed upstream. * Mon Oct 5 2015 malcolmlewis@opensuse.org - Update to version 1.4.3: + No changelog reference. - Changes from version 1.4.2: + No changelog reference. - Add scanbd-fix-pos36c-setgroups-error.patch: Fix warning for missing call to setgroups before setuid. See https://sourceforge.net/p/scanbd/tickets/10/ * Tue Nov 18 2014 malcolmlewis@cableone.net - Initial build.