2 Summary: The DALi Tizen Adaptor
5 Group: System/Libraries
7 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-adaptor.git;a=summary
8 Source0: %{name}-%{version}.tar.gz
10 %define dali_profile MOBILE
11 %define dali_mobile_profile 1
12 %define dali_feedback_plugin 1
13 %define dali_bullet_plugin 1
14 %define dali_assimp_plugin 1
16 Requires(post): /sbin/ldconfig
17 Requires(postun): /sbin/ldconfig
18 Requires: boost-thread
20 BuildRequires: pkgconfig
22 BuildRequires: pkgconfig(sensor)
23 BuildRequires: pkgconfig(aul)
24 BuildRequires: boost-devel
25 BuildRequires: giflib-devel
26 BuildRequires: pkgconfig(xi)
27 BuildRequires: pkgconfig(fontconfig)
28 BuildRequires: pkgconfig(elementary)
29 BuildRequires: pkgconfig(capi-appfw-application)
30 BuildRequires: libjpeg-turbo-devel
31 BuildRequires: pkgconfig(evas)
32 BuildRequires: pkgconfig(xfixes)
33 BuildRequires: pkgconfig(xdamage)
34 BuildRequires: pkgconfig(utilX)
35 BuildRequires: dali-devel
36 BuildRequires: dali-integration-devel
37 BuildRequires: libxml2-devel
38 BuildRequires: pkgconfig(vconf)
39 BuildRequires: tts-devel
40 BuildRequires: pkgconfig(dlog)
41 BuildRequires: libdrm-devel
42 BuildRequires: pkgconfig(libexif)
43 BuildRequires: pkgconfig(capi-system-system-settings)
44 BuildRequires: pkgconfig(libpng)
45 BuildRequires: pkgconfig(opengl-es-20)
46 BuildRequires: pkgconfig(efl-assist)
47 BuildRequires: pkgconfig(assimp)
50 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
51 platform abstraction and application shell
53 ##############################
55 ##############################
57 Summary: Development components for the DALi Tizen Adaptor
58 Group: Development/Building
59 Requires: %{name} = %{version}-%{release}
62 Development components for the DALi Tizen Adaptor - public headers and package configs
64 ##############################
65 # Dali Feedback Plugin
66 ##############################
67 %package dali-feedback-plugin
68 Summary: Plugin to play haptic and audio feedback for Dali
69 Group: System/Libraries
71 BuildRequires: pkgconfig(mm-sound)
72 BuildRequires: pkgconfig(deviced)
73 BuildRequires: libfeedback-devel
75 %description dali-feedback-plugin
76 Feedback plugin to play haptic and audio feedback for Dali
78 ##############################
79 # Dali Dynamics/Bullet Plugin
80 ##############################
81 %package dali-bullet-plugin
82 Summary: Plugin to provide physics
83 Group: System/Libraries
84 BuildRequires: libbullet-devel
86 %description dali-bullet-plugin
87 Dynamics plugin to wrap the libBulletDynamics libraries
89 ##############################
91 ##############################
94 %define dali_data_rw_dir /opt/usr/share/dali/
95 %define dali_data_ro_dir /usr/share/dali/
96 %define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
97 %define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
98 %define font_preloaded_path /usr/share/fonts/
99 %define font_downloaded_path /opt/share/fonts/
100 %define font_application_path /usr/share/app_fonts/
101 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
102 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
103 %define dali_plugin_theme_files %{dali_data_ro_dir}/themes/feedback-themes/
105 %define dev_include_path %{_includedir}
107 ##############################
109 ##############################
112 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
113 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections "
115 %if 0%{?sec_build_binary_debug_enable}
116 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
117 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
118 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
122 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
125 %if 0%{?under_tizen_2_3_capi_enable}
126 CFLAGS+=" -DUNDER_TIZEN_2_3_CAPI"
127 CXXFLAGS+=" -DUNDER_TIZEN_2_3_CAPI"
132 cd %{_builddir}/%{name}-%{version}/build/tizen
134 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
135 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
136 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
137 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
138 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
139 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
141 %configure --with-jpeg-turbo --enable-gles=30 --enable-profile=%{dali_profile} --libdir=%{_libdir}
143 make %{?jobs:-j%jobs}
145 ##############################
147 ##############################
151 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
154 mkdir -p %{buildroot}/usr/share/license
155 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
157 ##############################
159 # 1 - Pre Install new package
160 # 2 - Install new package
161 # 3 - Post install new package
162 # 4 - Pre uninstall old package
163 # 5 - Remove files not overwritten by new package
164 # 6 - Post uninstall old package
165 ##############################
168 rm -f %{user_font_cache_dir}/*
169 rm -f %{user_shader_cache_dir}/*
172 ##############################
173 # Post Install new package
174 ##############################
177 chown 5000:5000 %{user_font_cache_dir}
178 chown 5000:5000 %{user_shader_cache_dir}
181 %if 0%{?dali_feedback_plugin}
182 %post dali-feedback-plugin
187 %if 0%{?dali_bullet_plugin}
188 %post dali-bullet-plugin
193 ##############################
194 # Pre Uninstall old package
195 ##############################
197 rm -f %{user_font_cache_dir}/*
198 rm -f %{user_shader_cache_dir}/*
201 ##############################
202 # Post Uninstall old package
203 ##############################
208 %if 0%{?dali_feedback_plugin}
209 %postun dali-feedback-plugin
214 %if 0%{?dali_bullet_plugin}
215 %postun dali-bullet-plugin
220 ##############################
221 # Files in Binary Packages
222 ##############################
225 %manifest dali-adaptor.manifest-mobile
226 %defattr(-,root,root,-)
227 %{_libdir}/libdali-adap*.so*
228 %defattr(-,app,app,-)
229 %dir %{user_font_cache_dir}
230 %dir %{user_shader_cache_dir}
232 %{_datadir}/license/%{name}
235 %defattr(-,root,root,-)
236 %{dev_include_path}/dali/*
237 %{_libdir}/pkgconfig/dali*.pc
239 %if 0%{?dali_feedback_plugin}
240 %files dali-feedback-plugin
241 %defattr(-,root,root,-)
242 %{_libdir}/libdali-feedback-plugin.so*
243 %{dali_plugin_sound_files}/*
244 %{dali_plugin_theme_files}/*
247 %if 0%{?dali_bullet_plugin}
248 %files dali-bullet-plugin
249 %defattr(-,root,root,-)
250 %{_libdir}/libdali-bullet-plugin.so*