Summary: Advanced IP routing and network device configuration tools Name: iproute Version: 6.12.0 Release: %autorelease URL: https://kernel.org/pub/linux/utils/net/%{name}2/ Source0: https://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.xz Source1: rt_dsfield.deprecated License: GPL-2.0-or-later AND NIST-PD BuildRequires: bison BuildRequires: elfutils-libelf-devel BuildRequires: flex BuildRequires: gcc BuildRequires: iptables-devel >= 1.4.5 BuildRequires: libbpf-devel BuildRequires: libcap-devel BuildRequires: libmnl-devel BuildRequires: libselinux-devel BuildRequires: make BuildRequires: pkgconfig %if ! 0%{?_module_build} %if 0%{?fedora} BuildRequires: linux-atm-libs-devel %endif %endif Requires: libbpf Requires: psmisc # Compat symlinks for Requires in other packages. Provides: /sbin/ip %if "%{_sbindir}" == "%{_bindir}" # We rely on filesystem to create the symlink for us. Requires: filesystem(unmerged-sbin-symlinks) Provides: /usr/sbin/ip Provides: /usr/sbin/ss %endif %description The iproute package contains networking utilities (ip and rtmon, for example) which are designed to use the advanced networking capabilities of the Linux kernel. %package tc Summary: Linux Traffic Control utility License: GPL-2.0-or-later Requires: %{name}%{?_isa} = %{version}-%{release} Provides: /sbin/tc %description tc The Traffic Control utility manages queueing disciplines, their classes and attached filters and actions. It is the standard tool to configure QoS in Linux. %if ! 0%{?_module_build} %package doc Summary: Documentation for iproute2 utilities with examples License: GPL-2.0-or-later Requires: %{name} = %{version}-%{release} %description doc The iproute documentation contains howtos and examples of settings. %endif %package devel Summary: iproute development files License: GPL-2.0-or-later Requires: %{name} = %{version}-%{release} Provides: iproute-static = %{version}-%{release} %description devel The libnetlink static library. %prep %autosetup -p1 -n %{name}2-%{version} %build %configure --color auto echo -e "\nPREFIX=%{_prefix}\nSBINDIR=%{_sbindir}" >> config.mk %make_build %install %make_install echo '.so man8/tc-cbq.8' > %{buildroot}%{_mandir}/man8/cbq.8 # libnetlink install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h install -D -m644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a # drop these files, iproute-doc package extracts files directly from _builddir rm -rf '%{buildroot}%{_docdir}' # append deprecated values to rt_dsfield for compatibility reasons %if 0%{?rhel} cat %{SOURCE1} >>%{buildroot}%{_datadir}/iproute2/rt_dsfield %endif %files %dir %{_datadir}/iproute2 %license COPYING %doc README README.devel %{_mandir}/man7/* %exclude %{_mandir}/man7/tc-* %{_mandir}/man8/* %exclude %{_mandir}/man8/tc* %exclude %{_mandir}/man8/cbq* %attr(644,root,root) %config(noreplace) %{_datadir}/iproute2/* %{_sbindir}/* %exclude %{_sbindir}/tc %exclude %{_sbindir}/routel %{_datadir}/bash-completion/completions/devlink %files tc %license COPYING %{_mandir}/man7/tc-* %{_mandir}/man8/tc* %{_mandir}/man8/cbq* %dir %{_libdir}/tc/ %{_libdir}/tc/* %{_sbindir}/tc %{_datadir}/bash-completion/completions/tc %if ! 0%{?_module_build} %files doc %license COPYING %doc examples %endif %files devel %license COPYING %{_mandir}/man3/* %{_libdir}/libnetlink.a %{_includedir}/libnetlink.h %{_includedir}/iproute2/bpf_elf.h %changelog %autochangelog