1 Name: wrt-plugins-tizen
2 Summary: JavaScript plugins for WebRuntime
5 Group: Development/Libraries
7 Source0: %{name}-%{version}.tar.gz
9 %define tizen_profile_mobile 0
10 %define tizen_profile_wearable 1
11 %define tizen_profile_tv 0
13 %define tizen_feature_core_api_support 0
14 %define tizen_feature_impl_backward_compatible_support 1
16 %define tizen_feature_app_control_setting_support 1
18 # Tizen Web Device APIs
19 # Account API is optional in Tizen Wearable Profile.
20 %define tizen_feature_account_support 0
22 # Archive API is optional in Tizen Wearable Profile.
23 %define tizen_feature_archive_support 1
25 # Badge API is mandatory in Tizen Wearable Profile.
26 %define tizen_feature_badge_support 1
28 # Bluetooth API is optional in Tizen Wearable Profile.
31 %define tizen_feature_bluetooth_support 1
32 %define tizen_feature_bluetooth_health_support 1
33 %define tizen_feature_bluetooth_always_on 0
36 %define tizen_feature_bluetooth_support 0
37 %define tizen_feature_bluetooth_health_support 0
38 %define tizen_feature_bluetooth_always_on 0
41 # Bookmark API is optional in Tizen Wearable Profile.
42 %define tizen_feature_bookmark_support 0
44 # Calendar API is mandatory in Tizen Wearable Profile.
45 %define tizen_feature_calendar_support 0
47 # Contact API is optional in Tizen Wearable Profile.
48 %define tizen_feature_contact_support 0
50 # Content API is mandatory in Tizen Wearable Profile.
51 %define tizen_feature_content_support 1
53 # DataControl API is optional in Tizen Wearable Profile.
54 %define tizen_feature_datacontrol_support 0
56 # DataSynchronization API is optional in Tizen Wearable Profile.
57 %define tizen_feature_datasync_support 0
59 # Download API is optional in Tizen Wearable Profile.
61 %define tizen_feature_download_support 0
63 %define tizen_feature_download_support 1
66 # Exif API is optional in Tizen Wearable Profile.
67 %define tizen_feature_exif_support 1
69 # FM Radio API is optional in Tizen Wearable Profile.
70 %define tizen_feature_fm_radio_support 0
72 # HumanActivityMonitor(HAM) API is optional in Tizen Wearable Profile.
73 %define tizen_feature_ham_support 1
75 # HumanActivityMonitor(HAM) - GPS type
76 %define tizen_feature_location_batch 0
78 # MediayKey API is optional in Tizen Wearable Profile.
79 # tizen.org/feature/network.bluetooth.audio.media is required for MediayKey API
81 %define tizen_feature_mediakey_support 1
83 %define tizen_feature_mediakey_support 0
86 # MessagePort API is mandatory in Tizen Wearable Profile.
87 %define tizen_feature_messageport_support 1
89 # Messaging API is optional in Tizen Wearable Profile.
90 %define tizen_feature_messaging_support 0
92 # Messaging(Email) API is optional in Tizen Wearable Profile.
93 %define tizen_feature_messaging_email_support 0
95 # NFC API is optional in Tizen Wearable Profile.
98 %if 0%{?model_build_feature_nfc}
99 %define tizen_feature_nfc_support 1
100 %define tizen_feature_nfc_emulation_support 1
102 %define tizen_feature_nfc_support 0
103 %define tizen_feature_nfc_emulation_support 0
107 %define tizen_feature_nfc_support 1
108 %define tizen_feature_nfc_emulation_support 1
111 # Notification API is mandatory in Tizen Wearable Profile.
112 %define tizen_feature_notification_support 1
114 # Power API is mandatory in Tizen Wearable Profile.
115 %define tizen_feature_power_support 1
117 # Push API is optional in Tizen Wearable Profile.
118 %define tizen_feature_push_support 0
120 # Sensor API is optional in Tizen Wearable Profile.
121 %define tizen_feature_sensor_support 1
123 # Secure Element API is optional in Tizen Wearable Profile.
126 %if 0%{?model_build_feature_smartcard }
127 %define tizen_feature_se_support 1
129 %define tizen_feature_se_support 0
133 %define tizen_feature_se_support 0
136 # Sound API is mandatory in Tizen Wearable Profile.
137 %define tizen_feature_sound_support 1
139 # SystemSetting API is optional in Tizen Wearable Profile.
140 %define tizen_feature_system_setting_support 1
141 %define tizen_feature_system_setting_home_screen_support 1
142 %define tizen_feature_system_setting_lock_screen_support 0
143 %define tizen_feature_system_setting_incoming_call_screen_support 1
144 %define tizen_feature_system_setting_notification_email_screen_support 0
146 # Telephony feature is optional in Tizen Wearable Profile.
147 %define tizen_feature_telephony_support 0
149 # WebSetting API is optional in Tizen Wearable Profile.
150 %define tizen_feature_web_setting_support 0
152 # Wi-Fi feature is optional in Tizen Wearable Profile.
153 %define tizen_feature_wi_fi_support 1
155 #- telephony related APIs
156 # CallHistory API is optional in Tizen Wearable Profile.
157 # NetworkBearerSelection API is optional in Tizen Wearable Profile.
158 %if 0%{?tizen_feature_telephony_support}
159 %define tizen_feature_callhistory_support 1
160 %define tizen_feature_nbs_support 1
162 %define tizen_feature_callhistory_support 0
163 %define tizen_feature_nbs_support 0
166 BuildRequires: pkgconfig(ewebkit2)
167 BuildRequires: pkgconfig(dpl-efl)
168 BuildRequires: pkgconfig(dpl-event-efl)
169 BuildRequires: pkgconfig(wrt-plugins-types)
170 BuildRequires: pkgconfig(wrt-plugins-commons)
171 BuildRequires: pkgconfig(wrt-plugins-commons-javascript)
172 BuildRequires: pkgconfig(wrt-plugins-plugin-manager)
173 BuildRequires: pkgconfig(wrt-plugins-ipc-message)
174 BuildRequires: pkgconfig(glib-2.0)
175 BuildRequires: pkgconfig(ecore)
176 BuildRequires: pkgconfig(dbus-1)
177 BuildRequires: pkgconfig(libpcrecpp)
178 BuildRequires: pkgconfig(dlog)
179 BuildRequires: pkgconfig(capi-appfw-application)
180 BuildRequires: pkgconfig(capi-appfw-app-manager)
181 BuildRequires: pkgconfig(capi-appfw-alarm)
182 BuildRequires: pkgconfig(capi-appfw-package-manager)
183 BuildRequires: pkgconfig(storage)
184 BuildRequires: pkgconfig(pkgmgr)
185 BuildRequires: pkgconfig(pkgmgr-info)
186 BuildRequires: pkgconfig(capi-system-info)
187 BuildRequires: pkgconfig(libxml-2.0)
188 BuildRequires: pkgconfig(capi-content-media-content)
189 BuildRequires: pkgconfig(capi-media-metadata-extractor)
190 BuildRequires: pkgconfig(appsvc)
192 BuildRequires: pkgconfig(capi-system-device)
194 BuildRequires: pkgconfig(capi-network-connection)
195 BuildRequires: pkgconfig(notification)
196 BuildRequires: pkgconfig(capi-system-runtime-info)
197 BuildRequires: pkgconfig(capi-system-sensor)
198 BuildRequires: pkgconfig(sensor)
199 BuildRequires: pkgconfig(capi-system-system-settings)
200 BuildRequires: pkgconfig(icu-i18n)
201 BuildRequires: pkgconfig(icu-io)
202 BuildRequires: pkgconfig(icu-le)
203 BuildRequires: pkgconfig(icu-lx)
204 BuildRequires: pkgconfig(icu-uc)
206 BuildRequires: pkgconfig(tapi)
207 BuildRequires: pkgconfig(capi-system-device)
208 BuildRequires: expat-devel
210 BuildRequires: gettext-devel
212 %if 0%{?tizen_feature_account_support}
213 BuildRequires: pkgconfig(accounts-svc)
216 %if 0%{?tizen_feature_archive_support}
217 BuildRequires: pkgconfig(minizip)
220 %if 0%{?tizen_feature_badge_support}
221 BuildRequires: pkgconfig(badge)
224 %if 0%{?tizen_feature_bluetooth_support}
225 BuildRequires: pkgconfig(capi-network-bluetooth)
228 %if 0%{?tizen_feature_bookmark_support}
229 BuildRequires: pkgconfig(capi-web-bookmark)
232 %if 0%{?tizen_feature_calendar_support}
233 BuildRequires: pkgconfig(calendar-service2)
236 %if 0%{?tizen_feature_contact_support}
237 BuildRequires: pkgconfig(contacts-service2)
240 %if 0%{?tizen_feature_datacontrol_support}
241 BuildRequires: pkgconfig(capi-data-control)
244 %if 0%{?tizen_feature_datasync_support}
245 BuildRequires: pkgconfig(sync-agent)
248 %if 0%{?tizen_feature_download_support}
249 BuildRequires: pkgconfig(capi-web-url-download)
252 %if 0%{?tizen_feature_exif_support}
253 BuildRequires: pkgconfig(libexif)
256 %if 0%{?tizen_feature_fm_radio_support}
257 BuildRequires: pkgconfig(capi-media-radio)
260 %if 0%{?tizen_feature_ham_support}
261 BuildRequires: pkgconfig(sensor)
262 BuildRequires: pkgconfig(glib-2.0)
263 BuildRequires: pkgconfig(libcore-context-manager)
266 %if 0%{?tizen_feature_mediakey_support}
267 BuildRequires: pkgconfig(capi-system-media-key)
270 %if 0%{?tizen_feature_messageport_support}
271 BuildRequires: pkgconfig(message-port)
274 %if 0%{?tizen_feature_messaging_email_support}
275 BuildRequires: pkgconfig(email-service)
278 %if 0%{?tizen_feature_nfc_support}
279 BuildRequires: pkgconfig(capi-network-nfc)
282 %if 0%{?tizen_feature_power_support}
283 BuildRequires: pkgconfig(deviced)
286 %if 0%{?tizen_feature_push_support}
287 BuildRequires: pkgconfig(push)
290 %if 0%{?tizen_feature_se_support}
291 BuildRequires: pkgconfig(smartcard-service-common)
292 BuildRequires: pkgconfig(smartcard-service)
295 %if 0%{?tizen_feature_sensor_support}
296 BuildRequires: pkgconfig(sensor)
297 BuildRequires: pkgconfig(capi-system-sensor)
300 %if 0%{?tizen_feature_sound_support}
301 BuildRequires: pkgconfig(capi-media-sound-manager)
302 BuildRequires: pkgconfig(vconf)
305 %if 0%{?tizen_feature_wi_fi_support}
306 BuildRequires: pkgconfig(capi-network-wifi)
309 Requires: wrt-plugins-common
312 JavaScript plugins for WebRuntime
315 Summary: Wrt-plugin-tizen development headers
316 Group: Development/Libraries
317 Requires: %{name} = %{version}
320 Wrt-plugin-tizen development headers
327 %define PREFIX "%{_libdir}/wrt-plugins"
329 export LDFLAGS+="-Wl,--rpath=%{PREFIX} -Wl,--as-needed"
332 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
333 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
334 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
337 %if 0%{?tizen_profile_mobile}
338 -DENABLE_TIZEN_MOBILE_PROFILE=YES \
340 %if 0%{?tizen_profile_wearable}
341 -DENABLE_TIZEN_WEARABLE_PROFILE=YES \
343 %if 0%{?tizen_profile_tv}
344 -DENABLE_TIZEN_TV_PROFILE=YES \
346 %if 0%{?tizen_feature_impl_backward_compatible_support}
347 -DENABLE_IMPL_BACKWARD_COMPATIBLE=YES \
349 %if 0%{?tizen_feature_core_api_support}
350 -DENABLE_OPTIONAL_CORE_API=YES \
352 %if 0%{?tizen_feature_app_control_setting_support}
353 -DENABLE_TIZEN_APP_CONTROL_SETTING_SUPPORT=YES \
355 %if 0%{?tizen_feature_account_support}
356 -DENABLE_OPTIONAL_ACCOUNT=YES \
358 %if 0%{?tizen_feature_archive_support}
359 -DENABLE_OPTIONAL_ARCHIVE=YES \
361 %if 0%{?tizen_feature_badge_support}
362 -DENABLE_OPTIONAL_BADGE=YES \
364 %if 0%{?tizen_feature_bluetooth_support}
365 -DENABLE_OPTIONAL_BT=YES \
367 %if 0%{?tizen_feature_bluetooth_health_support}
368 -DENABLE_OPTIONAL_BT_HEALTH=YES \
370 %if 0%{?tizen_feature_bluetooth_always_on}
371 -DENABLE_OPTIONAL_BT_ALWAYS_ON=YES \
373 %if 0%{?tizen_feature_bookmark_support}
374 -DENABLE_OPTIONAL_BOOKMARK=YES \
376 %if 0%{?tizen_feature_calendar_support}
377 -DENABLE_OPTIONAL_CALENDAR=YES \
379 %if 0%{?tizen_feature_callhistory_support}
380 -DENABLE_OPTIONAL_CALL_HISTORY=YES \
382 %if 0%{?tizen_feature_contact_support}
383 -DENABLE_OPTIONAL_CONTACT=YES \
385 %if 0%{?tizen_feature_content_support}
386 -DENABLE_OPTIONAL_CONTENT=YES \
388 %if 0%{?tizen_feature_datacontrol_support}
389 -DENABLE_OPTIONAL_DATA_CONTROL=YES \
391 %if 0%{?tizen_feature_datasync_support}
392 -DENABLE_OPTIONAL_DATA_SYNC=YES \
394 %if 0%{?tizen_feature_download_support}
395 -DENABLE_OPTIONAL_DOWNLOAD=YES \
397 %if 0%{?tizen_feature_exif_support}
398 -DENABLE_OPTIONAL_EXIF=YES \
400 %if 0%{?tizen_feature_fm_radio_support}
401 -DENABLE_OPTIONAL_FM_RADIO=YES \
403 %if 0%{?tizen_feature_ham_support}
404 -DENABLE_OPTIONAL_HAM=YES \
406 %if 0%{?tizen_feature_location_batch}
407 -DENABLE_OPTIONAL_LOCATION_BATCH=YES \
409 %if 0%{?tizen_feature_mediakey_support}
410 -DENABLE_OPTIONAL_MEDIAKEY=YES \
412 %if 0%{?tizen_feature_messageport_support}
413 -DENABLE_OPTIONAL_MESSAGE_PORT=YES \
415 %if 0%{?tizen_feature_messaging_support}
416 -DENABLE_OPTIONAL_MESSAGING=YES \
418 %if 0%{?tizen_feature_messaging_email_support}
419 -DENABLE_OPTIONAL_MESSAGING_EMAIL=YES \
421 %if 0%{?tizen_feature_nbs_support}
422 -DENABLE_OPTIONAL_NBS=YES \
424 %if 0%{?tizen_feature_nfc_support}
425 -DENABLE_OPTIONAL_NFC=YES \
427 %if 0%{?tizen_feature_nfc_emulation_support}
428 -DENABLE_OPTIONAL_NFC_EMULATION=YES \
430 %if 0%{?tizen_feature_notification_support}
431 -DENABLE_OPTIONAL_NOTIFICATION=YES \
433 %if 0%{?tizen_feature_power_support}
434 -DENABLE_OPTIONAL_POWER=YES \
436 %if 0%{?tizen_feature_push_support}
437 -DENABLE_OPTIONAL_PUSH=YES \
439 %if 0%{?tizen_feature_se_support}
440 -DENABLE_OPTIONAL_SE=YES \
442 %if 0%{?tizen_feature_sensor_support}
443 -DENABLE_OPTIONAL_SENSOR=YES \
445 %if 0%{?tizen_feature_sound_support}
446 -DENABLE_OPTIONAL_SOUND=YES \
448 %if 0%{?tizen_feature_system_setting_support}
449 -DENABLE_OPTIONAL_SYSTEM_SETTING=YES \
451 %if 0%{?tizen_feature_system_setting_home_screen_support}
452 -DENABLE_OPTIONAL_SYSTEM_SETTING_HOME_SCREEN=YES \
454 %if 0%{?define tizen_feature_system_setting_lock_screen_support}
455 -DENABLE_OPTIONAL_SYSTEM_SETTING_LOCK_SCREEN=YES \
457 %if 0%{?tizen_feature_system_setting_incoming_call_screen_support}
458 -DENABLE_OPTIONAL_SYSTEM_SETTING_INCOMING_CALL=YES \
460 %if 0%{?tizen_feature_system_setting_notification_email_screen_support}
461 -DENABLE_OPTIONAL_SYSTEM_SETTING_EMAIL_SCREEN=YES \
463 %if 0%{?tizen_feature_telephony_support}
464 -DENABLE_OPTIONAL_TELEPHONY=YES \
466 %if 0%{?tizen_feature_web_setting_support}
467 -DENABLE_OPTIONAL_WEB_SETTING=YES \
469 %if 0%{?tizen_feature_wi_fi_support}
470 -DENABLE_OPTIONAL_WI_FI=YES \
472 -DCMAKE_INSTALL_PREFIX=%{_prefix} -DDPL_LOG="OFF" -DENABLE_TIME_TRACER="OFF"
474 make %{?jobs:-j%jobs}
479 mkdir -p %{buildroot}/usr/share/license
480 cp LICENSE %{buildroot}/usr/share/license/%{name}
488 %manifest wrt-plugins-tizen.manifest
489 %{_libdir}/wrt-plugins/*
490 /usr/etc/tizen-apis/*
495 %{_libdir}/pkgconfig/*