File project.diff of Package iproute2

--- iproute2.changes.orig
+++ iproute2.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Sat May 10 00:21:54 UTC 2025 - Michal Kubecek <mkubecek@suse.cz>
+
+- avoid traditional %patch syntax (fix 16.0 build)
+
+-------------------------------------------------------------------
 Thu Apr 10 12:40:43 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
 
 - Update to release 6.14
@@ -90,6 +95,11 @@ Fri Jul 14 11:44:38 UTC 2023 - Jan Engel
   * macvlan: added the "bclim" parameter
 
 -------------------------------------------------------------------
+Mon Jun 12 21:42:40 UTC 2023 - Michal Kubecek <mkubecek@suse.cz>
+
+- make extended Supplements syntax conditional (fixes SLE12 builds)
+
+-------------------------------------------------------------------
 Thu May  4 07:20:24 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
 
 - Update to release 6.3:
@@ -327,6 +337,11 @@ Sat Mar  6 08:31:13 UTC 2021 - Jan Engel
   * dcb: new utility
 
 -------------------------------------------------------------------
+Thu Feb 11 20:17:15 UTC 2021 - Michal Kubecek <mkubecek@suse.cz>
+
+- undo specfile "modernization" breaking build on older systems
+
+-------------------------------------------------------------------
 Wed Jan 27 18:25:04 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
 
 - Update to release 5.10
@@ -552,6 +567,11 @@ Mon May 13 08:25:42 UTC 2019 - Michal Ku
   * many text/JSON output fixes
 
 -------------------------------------------------------------------
+Mon Mar 25 06:35:39 UTC 2019 - Michal Kubecek <mkubecek@suse.cz>
+
+- drop ss-fallback-AF_VSOCK-definition.patch (obsoleted by upstream)
+
+-------------------------------------------------------------------
 Sat Mar 23 05:39:54 UTC 2019 - seanlew@opensuse.org
 
 - Update to new upstream release 5.0.0
@@ -678,6 +698,12 @@ Wed May  2 06:13:55 UTC 2018 - mkubecek@
   (bsc#1091603)
 
 -------------------------------------------------------------------
+Tue Apr 10 15:03:19 UTC 2018 - mkubecek@suse.cz
+
+- make SLE11-SP4 build work again
+  add ss-fallback-AF_VSOCK-definition.patch
+
+-------------------------------------------------------------------
 Tue Apr 10 05:54:13 UTC 2018 - mkubecek@suse.cz
 
 - Update to new upstream release 4.16
@@ -975,6 +1001,11 @@ Thu Jan 14 09:57:42 UTC 2016 - mkubecek@
   replace Debian specific paths and package names with SUSE ones
 
 -------------------------------------------------------------------
+Tue Jan 12 09:20:39 UTC 2016 - mkubecek@suse.cz
+
+- drop SLE11-SP1 compatibility
+
+-------------------------------------------------------------------
 Wed Nov 11 15:21:05 UTC 2015 - jengelh@inai.de
 
 - Update to new upstream release 4.3
@@ -1010,6 +1041,11 @@ Wed Jul 15 14:25:28 UTC 2015 - dimstar@o
   (fixed upstream)
 
 -------------------------------------------------------------------
+Mon Jun 29 11:17:07 UTC 2015 - mkubecek@suse.cz
+
+- fix build on SLE11
+
+-------------------------------------------------------------------
 Mon Jun 29 09:28:01 UTC 2015 - mkubecek@suse.cz
 
 - iproute2-tipc-headers.patch:
@@ -1050,6 +1086,11 @@ Mon Apr 13 19:29:50 UTC 2015 - jengelh@i
 * bridge link: add support to specify master
 
 -------------------------------------------------------------------
+Mon Mar  9 08:08:17 UTC 2015 - mkubecek@suse.cz
+
+- workaround to allow build on SLE11 SP1 (xz compressed tarball)
+
+-------------------------------------------------------------------
 Sun Feb 22 11:39:04 UTC 2015 - jengelh@inai.de
 
 - Update to new upstream release 3.19
@@ -1153,6 +1194,11 @@ Mon Dec  9 16:35:15 UTC 2013 - jengelh@i
 * VXLAN IPV6 support
 
 -------------------------------------------------------------------
+Tue Nov  5 10:22:54 UTC 2013 - mkubecek@suse.cz
+
+- fix build on older systems which don not know 'cp -n'
+
+-------------------------------------------------------------------
 Thu Sep 12 21:44:57 UTC 2013 - jengelh@inai.de
 
 - Update to new upstream release 3.11
--- iproute2.spec.orig
+++ iproute2.spec
@@ -44,14 +44,25 @@ BuildRequires:  libbpf-devel
 BuildRequires:  libelf-devel
 BuildRequires:  pkgconfig >= 0.21
 BuildRequires:  xz
+%if 0%{?suse_version} > 1110
 BuildRequires:  pkgconfig(libmnl)
 BuildRequires:  pkgconfig(libselinux)
 BuildRequires:  pkgconfig(xtables) >= 1.4.11
+%else
+BuildRequires:  libmnl-devel
+BuildRequires:  libselinux-devel
+BuildRequires:  libxtables-devel >= 1.4.11
+BuildRequires:  pkg-config
+%endif
 Provides:       %name-doc = %version
 Provides:       iproute = %version-%release
 Provides:       %name(xfrm6_raw) = %version-%release
 Obsoletes:      %name-doc < 4.15.0
 
+%if 0%{?suse_version} < 1130
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%endif
+
 %description
 iproute2 is a collection of user-space utilities to set up networking
 under Linux from the command-line. It can inspect and configure,
@@ -75,7 +86,9 @@ License:        GPL-2.0-or-later
 Group:          System/Shells
 Requires:       %name
 Requires:       bash-completion
+%if 0%{?suse_version} >= 1500
 Supplements:    (%name and bash-completion)
+%endif
 
 %description bash-completion
 bash command line completion support for iproute.
@@ -103,10 +116,14 @@ find . -name *.orig -delete
 # https://bugzilla.novell.com/show_bug.cgi?id=388021
 xt_libdir="$(pkg-config xtables --variable=xtlibdir)"
 xt_cflags="$(pkg-config xtables --cflags)"
+extra_cflags=""
+%if 0%{?suse_version} < 1200
+extra_cflags="-D_LINUX_SYSINFO_H"
+%endif
 %if 0%{!?make_build:1}
 %define make_build make %{?_smp_mflags}
 %endif
-%make_build CCOPTS="-D_GNU_SOURCE %optflags -Wstrict-prototypes -Wno-error -fPIC -DXT_LIB_DIR=\\\"$xt_libdir\\\" $xt_cflags"
+%make_build CCOPTS="-D_GNU_SOURCE %optflags $extra_cflags -Wstrict-prototypes -Wno-error -fPIC -DXT_LIB_DIR=\\\"$xt_libdir\\\" $xt_cflags"
 
 %install
 b="%buildroot"
@@ -132,7 +149,9 @@ for BIN in lnstat nstat routel ss; do
 	ln -sf "%_sbindir/$BIN" "$b/%_bindir/$BIN"
 done
 mkdir -p "$b/%_docdir/%name"
-cp -an README* examples/bpf "$b/%_docdir/%name/"
+for f in README* examples/bpf; do
+  test -e "$b/%_docdir/%name/${f##*/}" || cp -a "$f" "$b/%_docdir/%name/"
+done
 
 # bugzilla.opensuse.org/1205632
 # You can't parse routel output anyway so it does not matter what our replacement program outputs
@@ -142,12 +161,16 @@ cat >"$b/%_sbindir/routel" <<-EOF
 	exec ip r l table all
 EOF
 
+%if 0%{?suse_version} < 1500 && 0%{?sle_version} < 120300
+test -f "$b/%_docdir/%name/COPYING" || cp -a COPYING "$b/%_docdir/%name/"
+%endif
 %fdupes %buildroot/%_prefix
 
 %post
 %tmpfiles_create %_tmpfilesdir/%name.conf
 
 %files
+%defattr(-,root,root)
 %_bindir/lnstat
 %_bindir/nstat
 %_bindir/routel
@@ -169,17 +192,22 @@ EOF
 %_libdir/tc/
 %_datadir/tc/
 %_docdir/%name/
+%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 120300
 %license COPYING
+%endif
 
 %files -n libnetlink-devel
+%defattr(-,root,root)
 %_includedir/*
 %_mandir/man3/libnetlink*
 %_libdir/lib*
 
 %files bash-completion
+%defattr(-,root,root)
 %_datadir/bash-completion/
 
 %files arpd
+%defattr(-,root,root)
 %_sbindir/arpd
 %_mandir/man8/arpd.8*
 
openSUSE Build Service is sponsored by