!4 Disable with-fingerprint when with-fingerprint is enabled

From: @ultra_planet
Reviewed-by: @si-gui,@small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-03-01 14:01:27 +08:00 committed by Gitee
commit 1f1b44cb5b

View File

@ -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 <lingsheng@huawei.com> - 0.8.1-5
- Disable with-fingerprint when with-fingerprint is enabled
* Mon Nov 04 2019 huzhiyu <huzhiyu1@huawei.com> - 0.8.1-4
- Package init