File project.diff of Package netperf

--- netperf.changes.orig
+++ netperf.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Feb 18 10:15:32 UTC 2021 - Michal Kubecek <mkubecek@suse.cz>
+
+- undo specfile "modernization" which looks cool but is only good
+  to break builds for non-recent targets
+
+-------------------------------------------------------------------
 Thu Jun 11 07:26:21 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
 
 - Fix building with gcc10
--- netperf.spec.orig
+++ netperf.spec
@@ -38,6 +38,10 @@ Recommends:     ethtool
 BuildRequires:  libsmbios-devel
 %endif
 
+%if 0%{?suse_version} < 1130
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%endif
+
 %description
 Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirecitonal throughput, and end-to-end latency. The environments currently measureable by netperf include:
 
@@ -47,7 +51,12 @@ Netperf is a benchmark that can be used
     * SCTP for both IPv4 and IPv6
 
 %prep
-%autosetup -p1
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 CFLAGS="%{optflags} -fno-strict-aliasing -fcommon"
@@ -57,10 +66,10 @@ CXXFLAGS="%{optflgags} -D_GNU_SOURCE"
   --enable-dccp \
   --enable-sctp \
   --enable-demo
-%make_build
+make %{?_smp_mflags}
 
 %install
-%make_install
+make %{?_smp_mflags} DESTDIR=%{buildroot} install
 rm doc/examples/Makefile*
 
 %post
@@ -70,7 +79,12 @@ rm doc/examples/Makefile*
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
 
 %files
+%defattr(-,root,root)
+%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 120300
 %license COPYING
+%else
+%doc COPYING
+%endif
 %doc AUTHORS ChangeLog README
 %{_bindir}/netperf
 %{_bindir}/netserver
openSUSE Build Service is sponsored by