Add tizen feature macro for Widget app building block 45/145045/6
authorSemun Lee <semun.lee@samsung.com>
Mon, 21 Aug 2017 03:22:39 +0000 (12:22 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 21 Aug 2017 04:51:30 +0000 (13:51 +0900)
Change-Id: I2a4954299cf826393b88f2fb795fd4a308f9d687
Signed-off-by: Semun Lee <semun.lee@samsung.com>
packaging/building-blocks.spec
packaging/domain-apis.inc

index 6cec9a70ddb0929e0781d2d188e0f9c8b7d0e1ca..2d5fa9c45c23bf0abd3a519819ba26820d39bb89 100644 (file)
@@ -1,6 +1,7 @@
 # There are meta packages only.
 %define __debug_install_post %{nil}
 %define debug_package %{nil}
+%define tizen_feature() sed -i 's#\\\(\\\"%{1}\\\".\\\+>\\\).\\\+\\\(</key>\\\)#\\\1%{2}\\\2#' %{_sysconfdir}/config/model-config.xml;
 
 Name:          building-blocks
 Version:       0.0.2
index 774e5a84bba6e000f5b69878ea5c54489efb1861..7f0a4131424e61f4a751264caad7f632cc3c5c4a 100755 (executable)
@@ -184,6 +184,8 @@ Requires: libwidget_viewer_evas
 %description sub2-domain_API-AppFramework-Native_EFL_Widget_App_Model
 This block supports native EFL widget app model
 %files sub2-domain_API-AppFramework-Native_EFL_Widget_App_Model
+%posttrans sub2-domain_API-AppFramework-Native_EFL_Widget_App_Model
+%tizen_feature tizen.org/feature/shell.appwidget true
 
 %package sub2-domain_API-AppFramework-Notification_API
 Summary: Notification API
@@ -192,6 +194,8 @@ Requires: data-provider-master
 %description sub2-domain_API-AppFramework-Notification_API
 This block supports notification API
 %files sub2-domain_API-AppFramework-Notification_API
+%posttrans sub2-domain_API-AppFramework-Notification_API
+%tizen_feature tizen.org/feature/notification true
 
 %package sub2-domain_API-AppFramework-Shortcut_API
 Summary: Shortcut API
@@ -208,6 +212,8 @@ Requires: data-provider-master
 %description sub2-domain_API-AppFramework-Badge_API
 This block supports badge API
 %files sub2-domain_API-AppFramework-Badge_API
+%posttrans sub2-domain_API-AppFramework-Badge_API
+%tizen_feature tizen.org/feature/badge true
 
 %package sub2-domain_API-AppFramework-Media_Key_API
 Summary: Media Key API