Drop libdb from RHEL 10 builds

libdb is unwanted in RHEL 10; the arpd binary is disabled without it.

Also, drop all Group entries, as they are no longer used.
This commit is contained in:
Yaakov Selkowitz 2024-01-30 14:24:56 -05:00
commit 159116d91e

View file

@ -2,9 +2,6 @@ Summary: Advanced IP routing and network device configuration tools
Name: iproute
Version: 6.5.0
Release: %autorelease
%if 0%{?rhel}
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
Patch0: 0001-Makefile-ensure-CONF_USR_DIR-honours-the-libdir-conf.patch
@ -17,7 +14,9 @@ BuildRequires: gcc
BuildRequires: iptables-devel >= 1.4.5
BuildRequires: libbpf-devel
BuildRequires: libcap-devel
%if ! 0%{?rhel} >= 10
BuildRequires: libdb-devel
%endif
BuildRequires: libmnl-devel
BuildRequires: libselinux-devel
BuildRequires: make
@ -38,9 +37,6 @@ kernel.
%package tc
Summary: Linux Traffic Control utility
%if 0%{?rhel}
Group: Applications/System
%endif
License: GPL-2.0-or-later
Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: /sbin/tc
@ -53,9 +49,6 @@ Linux.
%if ! 0%{?_module_build}
%package doc
Summary: Documentation for iproute2 utilities with examples
%if 0%{?rhel}
Group: Applications/System
%endif
License: GPL-2.0-or-later
Requires: %{name} = %{version}-%{release}
@ -65,9 +58,6 @@ The iproute documentation contains howtos and examples of settings.
%package devel
Summary: iproute development files
%if 0%{?rhel}
Group: Development/Libraries
%endif
License: GPL-2.0-or-later
Requires: %{name} = %{version}-%{release}
Provides: iproute-static = %{version}-%{release}