2011-04-21 12:49:23 +00:00
|
|
|
Summary: Advanced IP routing and network device configuration tools
|
|
|
|
Name: iproute
|
2024-12-18 17:08:37 +00:00
|
|
|
Version: 6.11.0
|
2023-04-26 09:43:32 +00:00
|
|
|
Release: %autorelease
|
2021-01-18 01:02:33 +00:00
|
|
|
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
|
2024-02-13 16:38:45 +00:00
|
|
|
Source1: rt_dsfield.deprecated
|
2019-02-01 10:14:04 +00:00
|
|
|
|
2023-04-26 09:43:32 +00:00
|
|
|
License: GPL-2.0-or-later AND NIST-PD
|
2013-04-25 14:16:06 +00:00
|
|
|
BuildRequires: bison
|
2016-01-20 12:54:31 +00:00
|
|
|
BuildRequires: elfutils-libelf-devel
|
2013-04-25 14:16:06 +00:00
|
|
|
BuildRequires: flex
|
2021-10-20 12:51:03 +00:00
|
|
|
BuildRequires: gcc
|
2011-04-21 12:49:23 +00:00
|
|
|
BuildRequires: iptables-devel >= 1.4.5
|
2021-10-20 12:51:03 +00:00
|
|
|
BuildRequires: libbpf-devel
|
2019-02-01 10:14:04 +00:00
|
|
|
BuildRequires: libcap-devel
|
2015-10-04 22:05:01 +00:00
|
|
|
BuildRequires: libmnl-devel
|
2015-09-24 14:53:22 +00:00
|
|
|
BuildRequires: libselinux-devel
|
2021-01-05 06:19:11 +00:00
|
|
|
BuildRequires: make
|
2021-10-20 12:51:03 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-05-11 21:14:09 +00:00
|
|
|
%if ! 0%{?_module_build}
|
2013-04-25 14:16:06 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: linux-atm-libs-devel
|
|
|
|
%endif
|
2017-05-11 21:14:09 +00:00
|
|
|
%endif
|
2021-10-20 12:51:03 +00:00
|
|
|
Requires: libbpf
|
2019-10-08 10:32:08 +00:00
|
|
|
Requires: psmisc
|
2024-12-18 17:08:37 +00:00
|
|
|
|
|
|
|
# Compat symlinks for Requires in other packages.
|
2021-10-20 12:51:03 +00:00
|
|
|
Provides: /sbin/ip
|
2024-12-18 17:08:37 +00:00
|
|
|
%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
|
2004-09-09 06:18:30 +00:00
|
|
|
|
|
|
|
%description
|
2011-04-21 12:49:23 +00:00
|
|
|
The iproute package contains networking utilities (ip and rtmon, for example)
|
|
|
|
which are designed to use the advanced networking capabilities of the Linux
|
2016-03-18 17:40:51 +00:00
|
|
|
kernel.
|
|
|
|
|
|
|
|
%package tc
|
|
|
|
Summary: Linux Traffic Control utility
|
2023-04-26 09:43:32 +00:00
|
|
|
License: GPL-2.0-or-later
|
2016-04-07 19:12:21 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2020-12-02 19:29:21 +00:00
|
|
|
Provides: /sbin/tc
|
2016-03-18 17:40:51 +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.
|
2004-09-09 06:18:30 +00:00
|
|
|
|
2021-10-20 12:51:03 +00:00
|
|
|
%if ! 0%{?_module_build}
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for iproute2 utilities with examples
|
2023-04-26 09:43:32 +00:00
|
|
|
License: GPL-2.0-or-later
|
2021-10-20 12:51:03 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The iproute documentation contains howtos and examples of settings.
|
|
|
|
%endif
|
|
|
|
|
2011-04-27 09:06:53 +00:00
|
|
|
%package devel
|
|
|
|
Summary: iproute development files
|
2023-04-26 09:43:32 +00:00
|
|
|
License: GPL-2.0-or-later
|
2021-10-20 12:51:03 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2011-04-27 09:06:53 +00:00
|
|
|
Provides: iproute-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libnetlink static library.
|
|
|
|
|
2004-09-09 06:18:30 +00:00
|
|
|
%prep
|
2017-12-11 16:12:56 +00:00
|
|
|
%autosetup -p1 -n %{name}2-%{version}
|
2004-09-09 06:18:30 +00:00
|
|
|
|
|
|
|
%build
|
2024-02-09 23:16:01 +00:00
|
|
|
%configure --color auto
|
2024-12-18 17:08:37 +00:00
|
|
|
echo -e "\nPREFIX=%{_prefix}\nSBINDIR=%{_sbindir}" >> config.mk
|
2020-12-02 19:23:47 +00:00
|
|
|
%make_build
|
2004-09-09 06:18:30 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-02 19:23:47 +00:00
|
|
|
%make_install
|
2011-04-27 09:06:53 +00:00
|
|
|
|
2021-10-20 12:51:03 +00:00
|
|
|
echo '.so man8/tc-cbq.8' > %{buildroot}%{_mandir}/man8/cbq.8
|
|
|
|
|
2015-10-04 22:08:55 +00:00
|
|
|
# libnetlink
|
|
|
|
install -D -m644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
|
|
|
|
install -D -m644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a
|
|
|
|
|
2021-10-20 12:51:03 +00:00
|
|
|
# drop these files, iproute-doc package extracts files directly from _builddir
|
|
|
|
rm -rf '%{buildroot}%{_docdir}'
|
|
|
|
|
|
|
|
# append deprecated values to rt_dsfield for compatibility reasons
|
2024-12-18 17:08:37 +00:00
|
|
|
%if 0%{?rhel}
|
2024-02-09 23:16:01 +00:00
|
|
|
cat %{SOURCE1} >>%{buildroot}%{_datadir}/iproute2/rt_dsfield
|
2021-10-20 12:51:03 +00:00
|
|
|
%endif
|
|
|
|
|
2004-09-09 06:18:30 +00:00
|
|
|
%files
|
2024-02-09 23:16:01 +00:00
|
|
|
%dir %{_datadir}/iproute2
|
2014-07-12 22:15:13 +00:00
|
|
|
%license COPYING
|
2021-10-20 12:51:03 +00:00
|
|
|
%doc README README.devel
|
2012-11-19 10:48:30 +00:00
|
|
|
%{_mandir}/man7/*
|
2016-03-18 17:40:51 +00:00
|
|
|
%exclude %{_mandir}/man7/tc-*
|
2004-09-09 06:19:55 +00:00
|
|
|
%{_mandir}/man8/*
|
2016-03-18 17:40:51 +00:00
|
|
|
%exclude %{_mandir}/man8/tc*
|
2021-10-20 12:51:03 +00:00
|
|
|
%exclude %{_mandir}/man8/cbq*
|
2024-02-09 23:16:01 +00:00
|
|
|
%attr(644,root,root) %config(noreplace) %{_datadir}/iproute2/*
|
2004-09-09 06:18:30 +00:00
|
|
|
%{_sbindir}/*
|
2016-03-18 17:40:51 +00:00
|
|
|
%exclude %{_sbindir}/tc
|
2022-03-30 16:11:16 +00:00
|
|
|
%exclude %{_sbindir}/routel
|
2020-06-03 08:29:13 +00:00
|
|
|
%{_datadir}/bash-completion/completions/devlink
|
2016-03-18 17:40:51 +00:00
|
|
|
|
|
|
|
%files tc
|
|
|
|
%license COPYING
|
|
|
|
%{_mandir}/man7/tc-*
|
|
|
|
%{_mandir}/man8/tc*
|
2021-10-20 12:51:03 +00:00
|
|
|
%{_mandir}/man8/cbq*
|
2008-01-21 11:54:21 +00:00
|
|
|
%dir %{_libdir}/tc/
|
|
|
|
%{_libdir}/tc/*
|
2016-03-18 17:40:51 +00:00
|
|
|
%{_sbindir}/tc
|
2016-05-05 06:02:05 +00:00
|
|
|
%{_datadir}/bash-completion/completions/tc
|
2004-09-09 06:18:30 +00:00
|
|
|
|
2021-10-20 12:51:03 +00:00
|
|
|
%if ! 0%{?_module_build}
|
|
|
|
%files doc
|
|
|
|
%license COPYING
|
|
|
|
%doc examples
|
|
|
|
%endif
|
|
|
|
|
2011-04-27 09:06:53 +00:00
|
|
|
%files devel
|
2014-07-12 22:15:13 +00:00
|
|
|
%license COPYING
|
2011-04-27 09:06:53 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_libdir}/libnetlink.a
|
|
|
|
%{_includedir}/libnetlink.h
|
2017-03-14 13:41:35 +00:00
|
|
|
%{_includedir}/iproute2/bpf_elf.h
|
2011-04-27 09:06:53 +00:00
|
|
|
|
2004-09-09 06:18:30 +00:00
|
|
|
%changelog
|
2023-04-26 09:43:32 +00:00
|
|
|
%autochangelog
|