enable stock epson drivers by default

This commit is contained in:
Vladimir Potapov 2017-02-20 17:06:09 +08:00
parent 54de679b98
commit 35236b8d11

View file

@ -24,7 +24,7 @@
Summary: SANE - local and remote scanner access Summary: SANE - local and remote scanner access
Name: sane Name: sane
Version: 1.0.25 Version: 1.0.25
Release: 2 Release: 3
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions # lib/ is LGPLv2+, backends are GPLv2+ with exceptions
# Tools are GPLv2+, docs are public domain # Tools are GPLv2+, docs are public domain
License: GPLv2+ and GPLv2+ with exceptions and Public Domain License: GPLv2+ and GPLv2+ with exceptions and Public Domain
@ -367,12 +367,8 @@ perl -pi -e "s/installed.*/installed=yes/g" %{buildroot}%{_libdir}/libsane.la
# the appropriate scanner is not present # the appropriate scanner is not present
perl -p -i -e 's/^(\s*geniusvp2)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf perl -p -i -e 's/^(\s*geniusvp2)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf
# Comment out entry for the "epson" backend in /etc/sane.d/dll.conf as # Enable stocks driver by default
# we have also Epson's "epkowa" backend which supports the same sed -i 's/^#epson/epson/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf
# 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 # 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 perl -p -i -e 's/HP\s+OfficeJet/HPLIP/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf