From 0fa5ef8ee65ab06b28d02d2372d9a7fe0beae08e Mon Sep 17 00:00:00 2001 From: orange-snn Date: Sat, 26 Sep 2020 19:40:27 +0800 Subject: [PATCH] delete /sbin/install-info in %post and %preun --- netperf.spec | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/netperf.spec b/netperf.spec index 03988de..aa9f746 100644 --- a/netperf.spec +++ b/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 - 2.7.0-3 +* Delete install-info in post and preun + * Tue Apr 8 2020 hushiyuan - 2.7.0.-2 - Update package description for some spelling mistake -- Gitee