From 54de679b987cb34e2d2aa7d097723e9c85521067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9F?= =?UTF-8?q?=D0=BE=D1=82=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Fri, 17 Feb 2017 04:43:20 +0300 Subject: [PATCH] fix epkowa support --- sane.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sane.spec b/sane.spec index 8386323..2d734e1 100644 --- a/sane.spec +++ b/sane.spec @@ -24,7 +24,7 @@ Summary: SANE - local and remote scanner access Name: sane Version: 1.0.25 -Release: 1 +Release: 2 # lib/ is LGPLv2+, backends are GPLv2+ with exceptions # Tools are GPLv2+, docs are public domain License: GPLv2+ and GPLv2+ with exceptions and Public Domain @@ -370,7 +370,9 @@ perl -p -i -e 's/^(\s*geniusvp2)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.c # Comment out entry for the "epson" backend in /etc/sane.d/dll.conf as # we have also Epson's "epkowa" backend which supports the same # scanners +%if %{with epkowa} perl -p -i -e 's/^(\s*epson)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf +%endif # Remove "hpoj" line from /etc/sane.d/dll.con perl -p -i -e 's/HP\s+OfficeJet/HPLIP/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf