Add build config for neard nfc stack 91/18091/3 accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen/generic/20140408.093140 accepted/tizen/ivi/20140410.191953 accepted/tizen/ivi/panda/20140402.034935 submit/tizen/20140402.032658
authorArron Wang <arron.wang@intel.com>
Mon, 17 Mar 2014 08:20:31 +0000 (16:20 +0800)
committerArron Wang <arron.wang@intel.com>
Tue, 18 Mar 2014 03:32:01 +0000 (11:32 +0800)
with %bcond_with macro, neard_nfc is disabled by default, the build
system need to add the macro at the project config

Due to we have two nfc stack, and both package nfc-manager and
nfc-manager-neard provide the same lib for capi-network-nfc,
to avoid the conflict, we require the corresponding package directly
Change-Id: I8d2b533f1232608744f2619e136138680dc015a3

packaging/capi-network-nfc.spec

index 7867f6f..56fd156 100644 (file)
@@ -1,4 +1,5 @@
 %bcond_with x
+%bcond_with neard_nfc
 
 Name:       capi-network-nfc
 Summary:    NFC Core API
@@ -12,8 +13,13 @@ BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-2.0)
+%if %{with neard_nfc}
+BuildRequires:  nfc-client-lib-neard-devel
+BuildRequires:  nfc-common-neard-devel
+%else
 BuildRequires:  nfc-client-lib-devel
 BuildRequires:  nfc-common-devel
+%endif
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(vconf)
 %if %{with x}