fix:I1WP9K delete /sbin/install-info in %post and %preun
This commit is contained in:
parent
520475dfe9
commit
d22024130e
@ -34,14 +34,10 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post
|
||||
/sbin/install-info %{_infodir}/${infofile} %{_infodir}/dir || :
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ];then
|
||||
/sbin/install-info --delete %{_infodir}/${infofile} %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
@ -56,8 +52,8 @@ fi
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 8 2020 hushiyuan <hushiyuan@huawie.com> - 2.7.0.-2
|
||||
* Wed Apr 8 2020 hushiyuan <hushiyuan@huawie.com> - 2.7.0.-2
|
||||
- Update package description for some spelling mistake
|
||||
|
||||
* Tue Mar 13 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-1
|
||||
* Fri Mar 13 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user