2 Summary: Context Provider
7 Source0: %{name}-%{version}.tar.gz
9 %define BUILD_PROFILE %{?profile}%{!?profile:%{?tizen_profile_name}}
11 # Using the active window hooking for app monitoring, via ecore-x
12 %define ACTIVE_WINDOW_HOOK off
16 BuildRequires: pkgconfig(context-common)
17 BuildRequires: pkgconfig(vconf)
18 BuildRequires: pkgconfig(capi-system-info)
19 BuildRequires: pkgconfig(capi-system-device)
20 BuildRequires: pkgconfig(capi-system-runtime-info)
21 BuildRequires: pkgconfig(capi-appfw-package-manager)
22 BuildRequires: pkgconfig(capi-appfw-application)
23 BuildRequires: pkgconfig(capi-appfw-app-manager)
24 BuildRequires: pkgconfig(pkgmgr)
25 BuildRequires: pkgconfig(pkgmgr-info)
26 BuildRequires: pkgconfig(capi-media-sound-manager)
28 %if "%{ACTIVE_WINDOW_HOOK}" == "on"
29 BuildRequires: pkgconfig(ecore)
30 BuildRequires: pkgconfig(ecore-x)
33 %if "%{?BUILD_PROFILE}" == "mobile"
34 BuildRequires: pkgconfig(capi-network-bluetooth)
35 BuildRequires: pkgconfig(capi-network-wifi)
36 BuildRequires: pkgconfig(capi-telephony)
37 BuildRequires: pkgconfig(tapi)
38 BuildRequires: pkgconfig(msg-service)
39 BuildRequires: pkgconfig(capi-messaging-email)
40 BuildRequires: pkgconfig(motion)
41 BuildRequires: pkgconfig(contacts-service2)
42 BuildRequires: pkgconfig(capi-content-media-content)
45 %if "%{?BUILD_PROFILE}" == "wearable"
46 BuildRequires: pkgconfig(capi-network-bluetooth)
47 BuildRequires: pkgconfig(capi-network-wifi)
48 BuildRequires: pkgconfig(capi-telephony)
49 BuildRequires: pkgconfig(tapi)
50 BuildRequires: pkgconfig(msg-service)
51 BuildRequires: pkgconfig(motion)
54 %if "%{?BUILD_PROFILE}" == "tv"
55 BuildRequires: pkgconfig(capi-network-bluetooth)
56 BuildRequires: pkgconfig(capi-network-wifi)
57 BuildRequires: pkgconfig(capi-content-media-content)
67 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
69 export CFLAGS+=" -Wextra -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wswitch-default"
70 export CXXFLAGS+=" -Wextra -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wswitch-default -Wnon-virtual-dtor -Wno-c++0x-compat"
72 export CFLAGS+=" -Wno-unused-parameter -Wno-empty-body"
73 export CXXFLAGS+=" -Wno-unused-parameter -Wno-empty-body"
74 export CXXFLAGS+=" -std=c++0x"
76 export CFLAGS+=" -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing -fno-unroll-loops -fsigned-char -fstrict-overflow -fno-common"
77 export CXXFLAGS+=" -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing -fno-unroll-loops -fsigned-char -fstrict-overflow"
79 export CFLAGS+=" -DTIZEN_ENGINEER_MODE"
80 export CXXFLAGS+=" -DTIZEN_ENGINEER_MODE"
81 export FFLAGS+=" -DTIZEN_ENGINEER_MODE"
83 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DMAJORVER=${MAJORVER} -DFULLVER=%{version} \
84 -DPROFILE=%{?BUILD_PROFILE} -DACTIVE_WINDOW_HOOK=%{ACTIVE_WINDOW_HOOK}
91 mkdir -p %{buildroot}/usr/share/license
92 cp LICENSE %{buildroot}/usr/share/license/%{name}
101 %manifest packaging/%{name}.manifest
102 %defattr(-,root,root,-)
104 /usr/share/license/%{name}
107 Summary: Context Provider (Development)
108 Group: Service/Context
109 Requires: %{name} = %{version}-%{release}
112 Context Provider (Development)
115 %defattr(-,root,root,-)
116 %{_includedir}/context-service/internal/*.h
117 %{_libdir}/pkgconfig/%{name}.pc