From: Arron Wang Date: Mon, 24 Mar 2014 06:49:36 +0000 (+0800) Subject: Add build config for neard nfc stack X-Git-Tag: submit/tizen/20140402.051001^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fadaptation%2Femulator%2Femulator-plugin-nfc.git Add build config for neard nfc stack with %bcond_with macro, neard_nfc is disabled by default Due to we have two nfc stack, and both package nfc-manager and nfc-manager-neard provide the same lib for nfc-plugin-emul, to avoid the conflict, we require the corresponding package directly Change-Id: I23ef63ac6786ea2a8f6ed551aca115676fe97078 --- diff --git a/packaging/nfc-plugin-emul.spec b/packaging/nfc-plugin-emul.spec index 862081b..c8877aa 100644 --- a/packaging/nfc-plugin-emul.spec +++ b/packaging/nfc-plugin-emul.spec @@ -1,3 +1,5 @@ +%bcond_with neard_nfc + Name: nfc-plugin-emul Summary: NFC emul plugin Version: 0.0.12 @@ -9,7 +11,11 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(nfc-common) +%if %{with neard_nfc} +BuildRequires: nfc-common-neard-devel +%else +BuildRequires: nfc-common-devel +%endif BuildRequires: cmake %description