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}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/${infofile} %{_infodir}/dir || :
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ];then
|
|
||||||
/sbin/install-info --delete %{_infodir}/${infofile} %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
@ -56,8 +52,8 @@ fi
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%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
|
- 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
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user