spec: add tcpdump to BuildRequires
tcpdump is used in tests. When RPM package is built it
appropriate test fails if tcpdump package is not installed.
This commit fixes this issue by adding a new conditional
BuildRequires: tcpdump to specfile.
@@ -36,6 +36,9 @@ Provides: openvswitch-ovn-common = %{?epoch:%{epoch}:}%{version}-%{release}
%define ovsver @OVSVERSION@
%define ovsdir openvswitch-%{ovsver}
+# to skip running checks, pass --without check
+%bcond_without check
+
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
# lib/sflow*.[ch] files are SISSL
License: ASL 2.0 and LGPLv2+ and SISSL
@@ -56,6 +59,9 @@ BuildRequires: procps-ng
%if %{with libcapng}
BuildRequires: libcap-ng libcap-ng-devel
%endif
+%if %{with check}
+BuildRequires: tcpdump
+%endif
BuildRequires: unbound unbound-devel
Requires: openssl hostname iproute module-init-tools openvswitch
@@ -64,9 +70,6 @@ Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
-# to skip running checks, pass --without check
-%bcond_without check
-
%description
OVN, the Open Virtual Network, is a system to support virtual network
abstraction. OVN complements the existing capabilities of OVS to add
