Add build config for neard nfc stack 41/18441/1 accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda tizen accepted/tizen/generic/20140408.093157 accepted/tizen/ivi/20140410.192005 accepted/tizen/ivi/panda/20140402.181619 submit/tizen/20140402.051001
authorArron Wang <arron.wang@intel.com>
Mon, 24 Mar 2014 06:49:36 +0000 (14:49 +0800)
committerArron Wang <arron.wang@intel.com>
Mon, 24 Mar 2014 06:49:41 +0000 (14:49 +0800)
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

packaging/nfc-plugin-emul.spec

index 862081b..c8877aa 100644 (file)
@@ -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