import sane-backends-1.0.32-6.el9
This commit is contained in:
commit
8f30be942f
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SOURCES/sane-backends-1.0.32.tar.gz
|
||||||
|
SOURCES/sane.png
|
2
.sane-backends.metadata
Normal file
2
.sane-backends.metadata
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
97b14808e1ab4bc4c38962372d13d37d9b9fb08b SOURCES/sane-backends-1.0.32.tar.gz
|
||||||
|
338783a09c91bf1cc1a3bda838a9e7568563e02e SOURCES/sane.png
|
2
SOURCES/66-saned.rules
Normal file
2
SOURCES/66-saned.rules
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# udev rule for saned (SANE scanning daemon) to be able to write on usb port
|
||||||
|
ENV{libsane_matched}=="yes", ENV{DEVNAME}!="", RUN+="/usr/bin/setfacl -m g:saned:rw $env{DEVNAME}"
|
28
SOURCES/README.Fedora
Normal file
28
SOURCES/README.Fedora
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
README.Fedora
|
||||||
|
-------------
|
||||||
|
|
||||||
|
This file is meant as README for Fedora specific changes for sane-backends
|
||||||
|
package.
|
||||||
|
|
||||||
|
SANE daemon is moved to subpackage
|
||||||
|
----------------------------------
|
||||||
|
sane-backends daemon - saned - its manual page and systemd unit files are moved
|
||||||
|
into subpackage named sane-backends-daemon. It was done because daemon provides
|
||||||
|
access to scanning devices on remote server, which nowadays isn't common
|
||||||
|
usage of sane-backends, so it wasn't necessary to ship it with main package.
|
||||||
|
|
||||||
|
Several scanners need proprietary driver for working
|
||||||
|
----------------------------------------------------
|
||||||
|
Several scanners (e.g. Samsung, Brother, Epson) sometimes need special backends,
|
||||||
|
whose isn't shipped with sane-backends or cannot be shipped in Fedora because of
|
||||||
|
licensing problem. If your scanner isn't working with basic sane-backends:
|
||||||
|
|
||||||
|
1) if your scanner is Epson, try to install iscan-firmware package or Image Scan from Epson official site
|
||||||
|
2) if your scanner is Samsung, try to find driver on https://support.hp.com/gb-en/drivers/selfservice/
|
||||||
|
3) if your scanner is Brother, see http://support.brother.com/g/s/id/linux/en/download_scn.html
|
||||||
|
|
||||||
|
Ad2) Samsung proprietary driver is needed when user needs JPEG compression - this
|
||||||
|
feature support was added to sane-backends upstream by commit 926bfade544de4a4fd5,
|
||||||
|
which contained patches from Samsung. But this commit broke scanning for Samsung
|
||||||
|
scanners, so this patch was reverted with consequences of losing JPEG compression
|
||||||
|
feature for Samsung scanners.
|
36
SOURCES/sane-backends-1.0.23-sane-config-multilib.patch
Normal file
36
SOURCES/sane-backends-1.0.23-sane-config-multilib.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From d0c61e7e9b13185f424dff1f4ac697ec53089d69 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue, 4 Sep 2012 16:45:14 +0200
|
||||||
|
Subject: [PATCH] patch: sane-config-multilib
|
||||||
|
|
||||||
|
Squashed commit of the following:
|
||||||
|
|
||||||
|
commit 81aa4f41bf102b08258c8e1de1c0476835329ec5
|
||||||
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue Sep 4 16:43:34 2012 +0200
|
||||||
|
|
||||||
|
make installed sane-config multi-lib aware again
|
||||||
|
|
||||||
|
This partially reverts commit 77c4ea1a7aa680fb1c3ee4daa1404f21439b2c9b.
|
||||||
|
---
|
||||||
|
tools/sane-config.in | 4 ----
|
||||||
|
1 file changed, 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tools/sane-config.in b/tools/sane-config.in
|
||||||
|
index 8e4b52a..1fae2e5 100644
|
||||||
|
--- a/tools/sane-config.in
|
||||||
|
+++ b/tools/sane-config.in
|
||||||
|
@@ -10,10 +10,6 @@ scriptname="sane-config"
|
||||||
|
prefix="@prefix@"
|
||||||
|
exec_prefix="@exec_prefix@"
|
||||||
|
|
||||||
|
-# using our installed *.pc only - neither default nor user paths
|
||||||
|
-export PKG_CONFIG_LIBDIR="@libdir@/pkgconfig"
|
||||||
|
-export PKG_CONFIG_PATH=""
|
||||||
|
-
|
||||||
|
pkgconfig_package=sane-backends
|
||||||
|
|
||||||
|
usage ()
|
||||||
|
--
|
||||||
|
1.7.11.4
|
||||||
|
|
27
SOURCES/sane-backends-1.0.23-soname.patch
Normal file
27
SOURCES/sane-backends-1.0.23-soname.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
diff -up sane-backends-1.0.28/ltmain.sh.soname sane-backends-1.0.28/ltmain.sh
|
||||||
|
--- sane-backends-1.0.28/ltmain.sh.soname 2019-09-12 09:57:10.979802716 +0200
|
||||||
|
+++ sane-backends-1.0.28/ltmain.sh 2019-09-12 10:27:21.719895206 +0200
|
||||||
|
@@ -9615,23 +9615,6 @@ EOF
|
||||||
|
dlname=$soname
|
||||||
|
fi
|
||||||
|
|
||||||
|
- # If -module or -export-dynamic was specified, set the dlname
|
||||||
|
- if test "$module" = yes || test "$export_dynamic" = yes; then
|
||||||
|
- # On all known operating systems, these are identical.
|
||||||
|
- dlname="$soname"
|
||||||
|
- fi
|
||||||
|
-
|
||||||
|
- # On sane-backends the internal name for every lib is "libsane"
|
||||||
|
- # not "libsane-backendname" so that linking to each backend is possible.
|
||||||
|
- case $host in
|
||||||
|
- *mingw*)
|
||||||
|
- ;;
|
||||||
|
- *aix*)
|
||||||
|
- ;;
|
||||||
|
- *)
|
||||||
|
- soname=`echo $soname | sed -e "s/libsane-[A-Za-z_0-9]*/libsane/g"`
|
||||||
|
- esac
|
||||||
|
-
|
||||||
|
lib=$output_objdir/$realname
|
||||||
|
linknames=
|
||||||
|
for link
|
72
SOURCES/sane-backends-1.0.25-udev.patch
Normal file
72
SOURCES/sane-backends-1.0.25-udev.patch
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
From 252f347d59fff3ab1877f77a36613b318651725e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue, 8 Oct 2013 16:29:13 +0200
|
||||||
|
Subject: [PATCH] patch: udev
|
||||||
|
|
||||||
|
Squashed commit of the following:
|
||||||
|
|
||||||
|
commit fb6d1f4c0d17f1df33429bf03a64cd4fbb819ea5
|
||||||
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Tue Oct 8 16:24:49 2013 +0200
|
||||||
|
|
||||||
|
adapt generated udev rules for Fedora
|
||||||
|
|
||||||
|
commit 8bffaccc1eeb19ecbaddb4ac9da73954af4c5d4f
|
||||||
|
Author: Nils Philippsen <nils@redhat.com>
|
||||||
|
Date: Mon Sep 10 12:20:43 2012 +0200
|
||||||
|
|
||||||
|
use group and mode macros consistently
|
||||||
|
---
|
||||||
|
tools/sane-desc.c | 14 +++++++-------
|
||||||
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tools/sane-desc.c b/tools/sane-desc.c
|
||||||
|
index badc8ce..f992bf5 100644
|
||||||
|
--- a/tools/sane-desc.c
|
||||||
|
+++ b/tools/sane-desc.c
|
||||||
|
@@ -57,9 +57,9 @@
|
||||||
|
#define COLOR_NEW "\"#F00000\""
|
||||||
|
#define COLOR_UNKNOWN "\"#000000\""
|
||||||
|
|
||||||
|
-#define DEVMODE "0664"
|
||||||
|
+#define DEVMODE "0644"
|
||||||
|
#define DEVOWNER "root"
|
||||||
|
-#define DEVGROUP "scanner"
|
||||||
|
+#define DEVGROUP "root"
|
||||||
|
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
# define PATH_MAX 1024
|
||||||
|
@@ -3564,7 +3564,8 @@ print_udev (void)
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("\n# The following rule will disable USB autosuspend for the device\n");
|
||||||
|
- printf("ENV{libsane_matched}==\"yes\", RUN+=\"/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'\"\n");
|
||||||
|
+ printf("ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n");
|
||||||
|
+ printf("ENV{libsane_matched}==\"yes\", TEST!=\"power/control\", TEST==\"power/level\", ATTR{power/level}=\"on\"\n");
|
||||||
|
|
||||||
|
printf ("\nLABEL=\"libsane_usb_rules_end\"\n\n");
|
||||||
|
|
||||||
|
@@ -3641,10 +3642,8 @@ print_udev (void)
|
||||||
|
}
|
||||||
|
printf ("LABEL=\"libsane_scsi_rules_end\"\n");
|
||||||
|
|
||||||
|
- if (mode == output_mode_udevacl)
|
||||||
|
- printf("\nENV{libsane_matched}==\"yes\", RUN+=\"/bin/setfacl -m g:%s:rw $env{DEVNAME}\"\n", DEVGROUP);
|
||||||
|
- else
|
||||||
|
- printf ("\nENV{libsane_matched}==\"yes\", MODE=\"664\", GROUP=\"scanner\"\n");
|
||||||
|
+ if (mode != output_mode_udevacl)
|
||||||
|
+ printf ("\nENV{libsane_matched}==\"yes\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
|
||||||
|
|
||||||
|
printf ("\nLABEL=\"libsane_rules_end\"\n");
|
||||||
|
}
|
||||||
|
@@ -3695,6 +3694,7 @@ print_udevhwdb (void)
|
||||||
|
|
||||||
|
printf("# The following rule will disable USB autosuspend for the device\n");
|
||||||
|
printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n\n");
|
||||||
|
+ printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST!=\"power/control\", TEST==\"power/level\", ATTR{power/level}=\"on\"\n");
|
||||||
|
|
||||||
|
printf ("SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n");
|
||||||
|
printf ("GOTO=\"libsane_rules_end\"\n\n");
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
36
SOURCES/sane-epson2-disable-focus.patch
Normal file
36
SOURCES/sane-epson2-disable-focus.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
diff --git a/backend/epson2-ops.c b/backend/epson2-ops.c
|
||||||
|
index 83a0169..573ebcf 100644
|
||||||
|
--- a/backend/epson2-ops.c
|
||||||
|
+++ b/backend/epson2-ops.c
|
||||||
|
@@ -291,14 +291,14 @@ e2_dev_post_init(struct Epson_Device *dev)
|
||||||
|
dev->need_reset_on_source_change = SANE_FALSE;
|
||||||
|
|
||||||
|
if (e2_dev_model(dev, "ES-9000H") || e2_dev_model(dev, "GT-30000")) {
|
||||||
|
- dev->cmd->set_focus_position = 0;
|
||||||
|
dev->cmd->feed = 0x19;
|
||||||
|
+ dev->focusSupport = SANE_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e2_dev_model(dev, "GT-8200") || e2_dev_model(dev, "Perfection1650")
|
||||||
|
|| e2_dev_model(dev, "Perfection1640") || e2_dev_model(dev, "GT-8700")) {
|
||||||
|
dev->cmd->feed = 0;
|
||||||
|
- dev->cmd->set_focus_position = 0;
|
||||||
|
+ dev->focusSupport = SANE_FALSE;
|
||||||
|
dev->need_reset_on_source_change = SANE_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -825,12 +825,12 @@ e2_discover_capabilities(Epson_Scanner *s)
|
||||||
|
|
||||||
|
if (esci_request_focus_position(s, &s->currentFocusPosition) ==
|
||||||
|
SANE_STATUS_GOOD) {
|
||||||
|
- DBG(1, "setting focus is supported, current focus: %u\n", s->currentFocusPosition);
|
||||||
|
+ DBG(1, "getting focus is supported, current focus: %u\n", s->currentFocusPosition);
|
||||||
|
dev->focusSupport = SANE_TRUE;
|
||||||
|
s->opt[OPT_FOCUS_POS].cap &= ~SANE_CAP_INACTIVE;
|
||||||
|
s->val[OPT_FOCUS_POS].w = s->currentFocusPosition;
|
||||||
|
} else {
|
||||||
|
- DBG(1, "setting focus is not supported\n");
|
||||||
|
+ DBG(1, "getting focus is not supported\n");
|
||||||
|
dev->focusSupport = SANE_FALSE;
|
||||||
|
s->opt[OPT_FOCUS_POS].cap |= SANE_CAP_INACTIVE;
|
||||||
|
s->val[OPT_FOCUS_POS].w = FOCUS_ON_GLASS; /* just in case */
|
10
SOURCES/saned.socket
Normal file
10
SOURCES/saned.socket
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=saned incoming socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=6566
|
||||||
|
Accept=yes
|
||||||
|
MaxConnections=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
18
SOURCES/saned@.service.in
Normal file
18
SOURCES/saned@.service.in
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Scanner Service
|
||||||
|
Requires=saned.socket
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/saned
|
||||||
|
User=saned
|
||||||
|
Group=saned
|
||||||
|
StandardInput=null
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
Environment=SANE_CONFIG_DIR=@CONFIGDIR@
|
||||||
|
# If you need to debug your configuration uncomment the next line and
|
||||||
|
# change it as appropriate to set the desired debug options
|
||||||
|
# Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_NET=255
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Also=saned.socket
|
1441
SPECS/sane-backends.spec
Normal file
1441
SPECS/sane-backends.spec
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user