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: vconf-devel
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=$PREFIX/lib -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"
126 cd %{_builddir}/%{name}-%{version}/build/tizen
128 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
129 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
130 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
131 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
132 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
133 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
135 %configure --with-jpeg-turbo --enable-gles=30 --enable-profile=%{dali_profile}
137 make %{?jobs:-j%jobs}
139 ##############################
141 ##############################
145 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
148 mkdir -p %{buildroot}/usr/share/license
149 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
151 ##############################
153 # 1 - Pre Install new package
154 # 2 - Install new package
155 # 3 - Post install new package
156 # 4 - Pre uninstall old package
157 # 5 - Remove files not overwritten by new package
158 # 6 - Post uninstall old package
159 ##############################
162 rm -f %{user_font_cache_dir}/*
163 rm -f %{user_shader_cache_dir}/*
166 ##############################
167 # Post Install new package
168 ##############################
171 chown 5000:5000 %{user_font_cache_dir}
172 chown 5000:5000 %{user_shader_cache_dir}
175 %if 0%{?dali_feedback_plugin}
176 %post dali-feedback-plugin
181 %if 0%{?dali_bullet_plugin}
182 %post dali-bullet-plugin
187 ##############################
188 # Pre Uninstall old package
189 ##############################
191 rm -f %{user_font_cache_dir}/*
192 rm -f %{user_shader_cache_dir}/*
195 ##############################
196 # Post Uninstall old package
197 ##############################
202 %if 0%{?dali_feedback_plugin}
203 %postun dali-feedback-plugin
208 %if 0%{?dali_bullet_plugin}
209 %postun dali-bullet-plugin
214 ##############################
215 # Files in Binary Packages
216 ##############################
219 %manifest dali-adaptor.manifest-mobile
220 %defattr(-,root,root,-)
221 %{_libdir}/libdali-adap*.so*
222 %{_libdir}/libdali-appl*.so*
223 %defattr(-,app,app,-)
224 %dir %{user_font_cache_dir}
225 %dir %{user_shader_cache_dir}
227 %{_datadir}/license/%{name}
230 %defattr(-,root,root,-)
231 %{dev_include_path}/dali/*
232 %{_libdir}/pkgconfig/dali*.pc
234 %if 0%{?dali_feedback_plugin}
235 %files dali-feedback-plugin
236 %defattr(-,root,root,-)
237 %{_libdir}/libdali-feedback-plugin.so*
238 %{dali_plugin_sound_files}/*
239 %{dali_plugin_theme_files}/*
242 %if 0%{?dali_bullet_plugin}
243 %files dali-bullet-plugin
244 %defattr(-,root,root,-)
245 %{_libdir}/libdali-bullet-plugin.so*