[packages/lxc] add apparmor bcond

glen glen at pld-linux.org
Sun Nov 17 02:51:41 CET 2013


commit ccd4948a413a9496b33f4c82c23f39a79d1f5421
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 17 03:43:02 2013 +0200

    add apparmor bcond

 lxc.spec | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/lxc.spec b/lxc.spec
index 9592b94..5d16f9e 100644
--- a/lxc.spec
+++ b/lxc.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	seccomp	# SecComp syscall filter
+%bcond_without	apparmor	# apparmor
 %bcond_without	lua	# Lua binding
 %bcond_without	python	# Python binding
 
@@ -25,7 +26,7 @@ BuildRequires:	automake
 BuildRequires:	docbook-dtd30-sgml
 BuildRequires:	docbook-utils
 BuildRequires:	docbook2X
-BuildRequires:	libapparmor-devel
+%{?with_apparmor:BuildRequires:	libapparmor-devel}
 BuildRequires:	libcap-devel
 %{?with_seccomp:BuildRequires:	libseccomp-devel}
 %{?with_lua:BuildRequires:	lua51-devel >= 5.1}
@@ -115,9 +116,10 @@ Wiązanie Pythona (3.x) do LXC.
 	db2xman=docbook2X2man \
 	--disable-rpath \
 	--enable-doc \
-	%{?with_lua:--enable-lua} \
-	%{?with_python:--enable-python} \
-	%{?with_seccomp:--enable-seccomp} \
+	%{__enable_disable apparmor} \
+	%{__enable_disable lua} \
+	%{__enable_disable python} \
+	%{__enable_disable seccomp} \
 	--with-config-path=%{configpath} \
 	--with-distro=pld
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/8a96554a78401e99b7968c05ca0996f95f628337



More information about the pld-cvs-commit mailing list