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

From: @love_hangzhou
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2020-09-26 22:41:47 +08:00 committed by Gitee
commit df20dc2b51

View File

@ -2,18 +2,16 @@
Name: netperf Name: netperf
Version: 2.7.0 Version: 2.7.0
Release: 2%{?dist} Release: 3
Summary: A Performance benchmark testing tool fro TCP/UDP Summary: A Performance benchmark testing tool fro TCP/UDP
License: HP no-commercial License: HP no-commercial
URL: http://github.com/HewlettPackard/netperf URL: http://github.com/HewlettPackard/netperf
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
BuildRequires:texinfo,texinfo-tex BuildRequires:texinfo texinfo-tex
%description %description
netperf is a collection of many different network performance benchmarking tools netperf is a collection of many different network performance benchmarking tools
Requires: %{name}%{?_isa} = %{version}-%{release}
%package_help %package_help
@ -34,14 +32,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 +50,11 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Apr 8 2020 hushiyuan <hushiyuan@huawie.com> - 2.7.0.-2 * Sat Sep 26 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-3
* Delete install-info in post and preun
* 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