%global _version 2.7.0

Name: netperf 
Version: 2.7.0
Release: 7
Summary: A Performance benchmark testing tool fro TCP/UDP
License: MIT
URL: http://github.com/HewlettPackard/netperf
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz

Patch1:		netperf-fix-multiple-definition.patch      
Patch2:         netserver-suppress-debug-log-by-default.patch

BuildRequires: gcc texinfo texinfo-tex 

%description
netperf is a collection of  many different network performance benchmarking tools

%package_help

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1
%patch2

%build
%configure
%{__make} %{_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__rm} -rf %{buildroot}%{_infodir}/dir

%clean
%{__rm} -rf %{buildroot}

%post

%pre

%preun

%files
%defattr(-,root,root,0755)
%doc README AUTHORS COPYING Release_Notes
%{_bindir}/netperf
%{_bindir}/netserver
%{_infodir}/netperf.*

%files help
%doc doc/netperf.{html,pdf,txt,xml}
%doc doc/examples
%{_mandir}/man1/*

%changelog
* Thu Apr 18 2024 baiguo <baiguo@kylinos.cn> - 2.7.0-7
- netserver: suppress debug log by default

* Fri Nov 11 2022 xu_ping <xuping33@h-partners.com> - 2.7.0-6
- change source pac

* Wed Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
- fix multiple defination of variable

* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
- fixs failed: gcc command not found.

* 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

* Fri Mar 13 2020 hushiyuan <hushiyuan@huawei.com> - 2.7.0-1
- Package init
