]> git.pld-linux.org Git - packages/lxc.git/commitdiff
add apparmor bcond
authorElan Ruusamäe <glen@delfi.ee>
Sun, 17 Nov 2013 01:43:02 +0000 (03:43 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 17 Nov 2013 01:43:02 +0000 (03:43 +0200)
lxc.spec

index 9592b9486f17fcc80346ad36ade96cc27495cfe2..5d16f9e88e67301582d923744781c36f74f0c1c7 100644 (file)
--- 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
 
This page took 0.100546 seconds and 4 git commands to generate.