delete /sbin/install-info in %post and %preun
This commit is contained in:
parent
e7cbb1d4f7
commit
0fa5ef8ee6
19
netperf.spec
19
netperf.spec
@ -2,18 +2,16 @@
|
||||
|
||||
Name: netperf
|
||||
Version: 2.7.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3
|
||||
Summary: A Performance benchmark testing tool fro TCP/UDP
|
||||
License: HP no-commercial
|
||||
URL: http://github.com/HewlettPackard/netperf
|
||||
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
|
||||
|
||||
BuildRequires:texinfo,texinfo-tex
|
||||
BuildRequires:texinfo texinfo-tex
|
||||
|
||||
%description
|
||||
netperf is a collection of many different network performance benchmarking tools
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
||||
%package_help
|
||||
|
||||
@ -33,16 +31,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%clean
|
||||
%{__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)
|
||||
%doc README AUTHORS COPYING Release_Notes
|
||||
@ -56,6 +44,9 @@ fi
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Sat Sep 26 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-3
|
||||
* Delete install-info in post and preun
|
||||
|
||||
* Tue Apr 8 2020 hushiyuan <hushiyuan@huawie.com> - 2.7.0.-2
|
||||
- Update package description for some spelling mistake
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user