enable spolicy conditionally
authorAnas Nashif <anas.nashif@intel.com>
Fri, 4 Jan 2013 14:46:54 +0000 (06:46 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 11 Apr 2013 11:50:31 +0000 (04:50 -0700)
packaging/pulseaudio.spec

index 23199a6..4f61a1e 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with spolicy
+
 Name:           pulseaudio
 Version:        2.1
 Release:        0
@@ -36,6 +38,9 @@ BuildRequires:  libcap-devel
 BuildRequires:  orc
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(json) >= 0.9
+%if %{with spolicy}
+BuildRequires:  pkgconfig(vconf)
+%endif
 Requires(pre):         pwdutils
 Requires:       udev >= 146
 
@@ -212,7 +217,9 @@ echo "%{version}" > .tarball-version
 %configure \
         --disable-static \
         --disable-rpath \
+%if %{with spolicy}
         --enable-spolicy \
+%endif
         --enable-systemd \
         --with-system-user=pulse \
         --with-system-group=pulse \