!6 delete /sbin/install-info in %post and %preun

From: @chengzihan2
Reviewed-by: @jimmy_hero
Signed-off-by: @jimmy_hero
This commit is contained in:
openeuler-ci-bot 2020-09-25 18:48:14 +08:00 committed by Gitee
commit f57fed0ba1

View File

@ -1,6 +1,6 @@
Name: docbook2X
Version: 0.8.8
Release: 32
Release: 33
Summary: Convert docbook into man and Texinfo
License: MIT
URL: http://docbook2x.sourceforge.net/
@ -36,14 +36,6 @@ install -p doc/*.html __dist_html/html
%install
%make_install
%post
/sbin/install-info %{_infodir}/docbook2X.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/docbook2X.info %{_infodir}/dir || :
fi
%files
%doc COPYING AUTHORS
%{_bindir}/*
@ -61,5 +53,8 @@ fi
%{_infodir}/docbook2*
%changelog
* Fri Sep 25 2020 chengzihan <chengzihan2@huawei.com> - 0.8.8-33
- delete /sbin/install-info in %post and %preun
* Fri Nov 29 2019 zhujunhao <zhujunhao5@huawei.com> - 0.8.8-32
- Package init