From 261000bc12eeb85728384823dbd844bb18221be3 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Thu, 11 Jul 2013 20:18:53 +0300 Subject: [PATCH] packaging: enable SMACK support. --- packaging.in/murphy.spec.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packaging.in/murphy.spec.in b/packaging.in/murphy.spec.in index 9293184..608fa9b 100644 --- a/packaging.in/murphy.spec.in +++ b/packaging.in/murphy.spec.in @@ -17,6 +17,7 @@ %{!?_with_telephony:%{!?_without_telephony:%define _with_telephony 1}} %{!?_with_audiosession:%{!?_without_audiosession:%define _without_audiosession 0}} %{!?_with_websockets:%{!?_without_websockets:%define _with_websockets 1}} +%{!?_with_smack:%{!?_without_smack:%define _with_smack 1}} %{!?_with_squashpkg:%{!?_without_squashpkg:%define _with_squashpkg 1}} # TODO: take care of /lib vs /lib64... @@ -74,6 +75,10 @@ BuildRequires: libwebsockets-devel %endif BuildRequires: pkgconfig(json) +%if %{?_with_smack:1}%{!?_with_smack:0} +BuildRequires: pkgconfig(libsmack) +%endif + %if %{?_with_squashpkg:0}%{!?_with_squashpkg:1} %package core Summary: Murphy core runtime libraries @@ -311,6 +316,12 @@ CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-websockets" CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-websockets" %endif +%if %{?_with_smack:1}%{!?_with_smack:0} +CONFIG_OPTIONS="$CONFIG_OPTIONS --enable-smack" +%else +CONFIG_OPTIONS="$CONFIG_OPTIONS --disable-smack" +%endif + NUM_CPUS="`cat /proc/cpuinfo | tr -s '\t' ' ' | \ grep '^processor *:' | wc -l`" [ -z "$NUM_CPUS" ] && NUM_CPUS=1 -- 2.7.4