diff --git a/fprintd.spec b/fprintd.spec index faa51d8..616f961 100644 --- a/fprintd.spec +++ b/fprintd.spec @@ -1,6 +1,6 @@ Name: fprintd Version: 0.8.1 -Release: 4 +Release: 5 Summary: Support for consumer fingerprint reader devices License: GPLv2+ Url: http://www.freedesktop.org/wiki/Software/fprint/fprintd @@ -53,7 +53,11 @@ install -d %{buildroot}%{_localstatedir}/lib/fprint %postun if [ $1 -eq 0 ] then - /bin/authselect disable-feature with-fingerprint || : + /bin/authselect current | grep with-fingerprint >/dev/null 2>&1 + if [ $? -eq 0 ] + then + /bin/authselect disable-feature with-fingerprint || : + fi fi %files -f %{name}.lang @@ -77,5 +81,8 @@ fi %{_mandir}/man1/fprintd.1.gz %changelog +* Fri Feb 26 2021 lingsheng - 0.8.1-5 +- Disable with-fingerprint when with-fingerprint is enabled + * Mon Nov 04 2019 huzhiyu - 0.8.1-4 - Package init