We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e8148c + c29c09c commit 967304fCopy full SHA for 967304f
rpm/netavark.spec
@@ -22,6 +22,15 @@
22
# Minimum X.Y dep for aardvark-dns
23
%define major_minor %((v=%{version}; echo ${v%.*}))
24
25
+# Set default firewall to nftables on CentOS Stream 10+, RHEL 10+
26
+# and default to iptables on all other environments
27
+# The `rhel` macro is defined on CentOS Stream, RHEL as well as Fedora ELN.
28
+%if %{defined rhel} && 0%{?rhel} >= 10
29
+%define default_fw nftables
30
+%else
31
+%define default_fw iptables
32
+%endif
33
+
34
Name: netavark
35
# Set a different Epoch for copr builds
36
%if %{defined copr_username}
@@ -101,7 +110,7 @@ EOF
101
110
%endif
102
111
103
112
%build
104
-%{__make} CARGO="%{__cargo}" build
113
+NETAVARK_DEFAULT_FW=%{default_fw} %{__make} CARGO="%{__cargo}" build
105
114
106
115
cd docs
107
116
%{__make}
0 commit comments