Skip to content

Commit 74952f6

Browse files
committed
[skip-ci] RPM: handle iptables/nftables dependencies
This was previously being handled in containers-common but is best handled here. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
1 parent f17d903 commit 74952f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rpm/netavark.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ BuildRequires: %{_bindir}/go-md2man
4949
# aardvark-dns and %%{name} are usually released in sync
5050
Requires: aardvark-dns >= %{epoch}:%{major_minor}
5151
Provides: container-network-stack = 2
52+
%if "%{default_fw}" == "nftables"
53+
Requires: nftables
54+
%else
55+
Requires: iptables
56+
%endif
5257
BuildRequires: make
5358
BuildRequires: protobuf-c
5459
BuildRequires: protobuf-compiler

0 commit comments

Comments
 (0)