diff --git a/sane-backends.spec b/sane-backends.spec index a025382..9a6b43a 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -14,7 +14,7 @@ Summary: Scanner access software Name: sane-backends Version: 1.0.30 -Release: 2%{?dist} +Release: 3%{?dist} # lib/ is LGPLv2+, backends are GPLv2+ with exceptions # Tools are GPLv2+, docs are public domain # see LICENSE for details @@ -240,6 +240,14 @@ rm -f %{buildroot}%{_libdir}/sane/libsane-qcam.so %post udevadm hwdb --update >/dev/null 2>&1 || : +# check if there is autodiscovery enabled in epsonds.conf +autodiscovery=`%{_bindir}/grep -E '^[[:space:]]*net[[:space:]]*autodiscovery' /etc/sane.d/epsonds.conf` +if [ -n "$autodiscovery" ] +then + # comment out 'net autodiscovery' if it is not commented out + %{_bindir}/sed -i 's,^[[:space:]]*net[[:space:]]*autodiscovery,#net autodiscovery,g' /etc/sane.d/epsonds.conf +fi + %postun udevadm hwdb --update >/dev/null 2>&1 || : @@ -421,6 +429,9 @@ exit 0 %{_unitdir}/saned@.service %changelog +* Tue Jul 28 2020 Zdenek Dohnal - 1.0.30-3 +- add a scriptlet to disable epsonds autodiscovery in case an user changed epsonds.conf + * Tue Jul 14 2020 Tom Stellard - 1.0.30-2 - Use make macros - https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro