[ovs-dev] [PATCH] rhel: Add libcap-ng dependency.

Russell Bryant rbryant at redhat.com
Thu Oct 1 20:04:14 UTC 2015


Commit e91b927d8966bfcb9768225392324dde4fd7d7f6 added optional usage of
the libcap-ng library.  It's packaged in Fedora, so go ahead and added
it to the Fedora spec file.

Our default systemd unit files don't make use of the --user option that
requires this library, but conceivably someone may want to customize
them and use this option.

Signed-off-by: Russell Bryant <rbryant at redhat.com>
---
 rhel/openvswitch-fedora.spec.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 695f1d7..cda92dc 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -37,13 +37,14 @@ Source: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
 
 BuildRequires: autoconf automake libtool
 BuildRequires: systemd-units openssl openssl-devel
+BuildRequires: libcap-ng libcap-ng-devel
 BuildRequires: python python-twisted-core python-zope-interface PyQt4
 BuildRequires: desktop-file-utils
 BuildRequires: groff graphviz
 # make check dependencies
 BuildRequires: procps-ng
 
-Requires: openssl iproute module-init-tools
+Requires: openssl iproute module-init-tools libcap-ng
 #Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
 #Requires: kernel >= 3.15.0-0
 
@@ -104,7 +105,8 @@ overlays and security groups.
 %setup -q
 
 %build
-%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
+%configure --enable-ssl --enable-libcapng \
+    --with-pkidir=%{_sharedstatedir}/openvswitch/pki
 make %{?_smp_mflags}
 
 %install
-- 
2.4.3




More information about the dev mailing list