!10 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:49:32 +08:00 committed by Gitee
commit d3252ac1a5
2 changed files with 8 additions and 9 deletions

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

4
docbook2X.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Distrotech/docbook2X
tag_prefix: ^
seperator: .