2020-10-15 11:43:28 +00:00
|
|
|
Summary: Advanced IP routing and network device configuration tools
|
|
|
|
Name: iproute
|
2024-01-19 21:34:20 +00:00
|
|
|
Version: 6.7.0
|
|
|
|
Release: %autorelease
|
2021-11-24 10:34:03 +00:00
|
|
|
%if 0%{?rhel}
|
2021-08-18 09:58:34 +00:00
|
|
|
Group: Applications/System
|
|
|
|
%endif
|
|
|
|
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
|
2021-11-24 10:34:03 +00:00
|
|
|
Source1: rt_dsfield.deprecated
|
2020-10-15 11:43:28 +00:00
|
|
|
|
2023-04-27 15:03:48 +00:00
|
|
|
License: GPL-2.0-or-later AND NIST-PD
|
2020-10-15 11:43:28 +00:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: flex
|
2021-08-18 09:58:34 +00:00
|
|
|
BuildRequires: gcc
|
2020-10-15 11:43:28 +00:00
|
|
|
BuildRequires: iptables-devel >= 1.4.5
|
2021-08-18 09:58:34 +00:00
|
|
|
BuildRequires: libbpf-devel
|
2020-10-15 11:43:28 +00:00
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libdb-devel
|
|
|
|
BuildRequires: libmnl-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2021-02-04 04:48:44 +00:00
|
|
|
BuildRequires: make
|
2021-08-18 09:58:34 +00:00
|
|
|
BuildRequires: pkgconfig
|
2020-10-15 11:43:28 +00:00
|
|
|
%if ! 0%{?_module_build}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: linux-atm-libs-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2021-08-18 09:58:34 +00:00
|
|
|
Requires: libbpf
|
2020-10-15 11:43:28 +00:00
|
|
|
Requires: psmisc
|
2021-08-18 09:58:34 +00:00
|
|
|
Provides: /sbin/ip
|
2020-10-15 11:43:28 +00:00
|
|
|
|
|
|
|
%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
|
2021-11-24 10:34:03 +00:00
|
|
|
%if 0%{?rhel}
|
2021-08-18 09:58:34 +00:00
|
|
|
Group: Applications/System
|
|
|
|
%endif
|
2023-04-27 15:03:48 +00:00
|
|
|
License: GPL-2.0-or-later
|
2020-10-15 11:43:28 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-12-04 13:52:10 +00:00
|
|
|
Provides: /sbin/tc
|
2020-10-15 11:43:28 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2021-08-18 09:58:34 +00:00
|
|
|
%if ! 0%{?_module_build}
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for iproute2 utilities with examples
|
2021-11-24 10:34:03 +00:00
|
|
|
%if 0%{?rhel}
|
2021-08-18 09:58:34 +00:00
|
|
|
Group: Applications/System
|
|
|
|
%endif
|
2023-04-27 15:03:48 +00:00
|
|
|
License: GPL-2.0-or-later
|
2021-08-18 09:58:34 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The iproute documentation contains howtos and examples of settings.
|
|
|
|
%endif
|
|
|
|
|
2020-10-15 11:43:28 +00:00
|
|
|
%package devel
|
|
|
|
Summary: iproute development files
|
2021-11-24 10:34:03 +00:00
|
|
|
%if 0%{?rhel}
|
2021-08-18 09:58:34 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
%endif
|
2023-04-27 15:03:48 +00:00
|
|
|
License: GPL-2.0-or-later
|
2021-08-18 09:58:34 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2020-10-15 11:43:28 +00:00
|
|
|
Provides: iproute-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libnetlink static library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n %{name}2-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-19 21:34:20 +00:00
|
|
|
%configure
|
|
|
|
echo -e "\nSBINDIR=%{_sbindir}" >> config.mk
|
2020-12-04 13:52:10 +00:00
|
|
|
%make_build
|
2020-10-15 11:43:28 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-04 13:52:10 +00:00
|
|
|
%make_install
|
2020-10-15 11:43:28 +00:00
|
|
|
|
2021-08-18 09:58:34 +00:00
|
|
|
echo '.so man8/tc-cbq.8' > %{buildroot}%{_mandir}/man8/cbq.8
|
|
|
|
|
2020-10-15 11:43:28 +00:00
|
|
|
# libnetlink
|
|
|
|
install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
|
|
|
install -D -m644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a
|
|
|
|
|
2021-08-18 09:58:34 +00:00
|
|
|
# drop these files, iproute-doc package extracts files directly from _builddir
|
|
|
|
rm -rf '%{buildroot}%{_docdir}'
|
|
|
|
|
2021-11-24 10:34:03 +00:00
|
|
|
# append deprecated values to rt_dsfield for compatibility reasons
|
2022-10-06 15:50:16 +00:00
|
|
|
%if 0%{?rhel} && ! 0%{?eln}
|
2024-01-19 21:34:20 +00:00
|
|
|
cat %{SOURCE1} >>%{buildroot}%{_datadir}/iproute2/rt_dsfield
|
2021-08-18 09:58:34 +00:00
|
|
|
%endif
|
|
|
|
|
2020-10-15 11:43:28 +00:00
|
|
|
%files
|
2024-01-19 21:34:20 +00:00
|
|
|
%dir %{_datadir}/iproute2
|
2020-10-15 11:43:28 +00:00
|
|
|
%license COPYING
|
2021-08-18 09:58:34 +00:00
|
|
|
%doc README README.devel
|
2020-10-15 11:43:28 +00:00
|
|
|
%{_mandir}/man7/*
|
|
|
|
%exclude %{_mandir}/man7/tc-*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%exclude %{_mandir}/man8/tc*
|
2021-08-18 09:58:34 +00:00
|
|
|
%exclude %{_mandir}/man8/cbq*
|
2024-01-19 21:34:20 +00:00
|
|
|
%attr(644,root,root) %config(noreplace) %{_datadir}/iproute2/*
|
2020-10-15 11:43:28 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%exclude %{_sbindir}/tc
|
2022-06-15 17:15:16 +00:00
|
|
|
%exclude %{_sbindir}/routel
|
2020-10-15 11:43:28 +00:00
|
|
|
%{_datadir}/bash-completion/completions/devlink
|
|
|
|
|
|
|
|
%files tc
|
|
|
|
%license COPYING
|
|
|
|
%{_mandir}/man7/tc-*
|
|
|
|
%{_mandir}/man8/tc*
|
2021-08-18 09:58:34 +00:00
|
|
|
%{_mandir}/man8/cbq*
|
2020-10-15 11:43:28 +00:00
|
|
|
%dir %{_libdir}/tc/
|
|
|
|
%{_libdir}/tc/*
|
|
|
|
%{_sbindir}/tc
|
|
|
|
%{_datadir}/bash-completion/completions/tc
|
|
|
|
|
2021-08-18 09:58:34 +00:00
|
|
|
%if ! 0%{?_module_build}
|
|
|
|
%files doc
|
|
|
|
%license COPYING
|
|
|
|
%doc examples
|
|
|
|
%endif
|
|
|
|
|
2020-10-15 11:43:28 +00:00
|
|
|
%files devel
|
|
|
|
%license COPYING
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_libdir}/libnetlink.a
|
|
|
|
%{_includedir}/libnetlink.h
|
|
|
|
%{_includedir}/iproute2/bpf_elf.h
|
|
|
|
|
|
|
|
%changelog
|
2024-01-19 21:34:20 +00:00
|
|
|
%autochangelog
|