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 WEARABLE
11 %define dali_wearable_profile 1
12 %define dali_feedback_plugin 0
13 %define dali_assimp_plugin 0
15 Requires(post): /sbin/ldconfig
16 Requires(postun): /sbin/ldconfig
17 Requires: boost-thread
19 BuildRequires: pkgconfig
21 BuildRequires: pkgconfig(sensor)
22 BuildRequires: pkgconfig(aul)
23 BuildRequires: boost-devel
24 BuildRequires: giflib-devel
25 BuildRequires: pkgconfig(xi)
26 BuildRequires: pkgconfig(fontconfig)
27 BuildRequires: pkgconfig(elementary)
28 BuildRequires: pkgconfig(capi-appfw-application)
29 BuildRequires: libjpeg-turbo-devel
30 BuildRequires: pkgconfig(evas)
31 BuildRequires: pkgconfig(xfixes)
32 BuildRequires: pkgconfig(xdamage)
33 BuildRequires: pkgconfig(utilX)
34 BuildRequires: dali-devel
35 BuildRequires: dali-integration-devel
36 BuildRequires: libxml2-devel
37 BuildRequires: pkgconfig(vconf)
38 BuildRequires: tts-devel
39 BuildRequires: pkgconfig(dlog)
40 BuildRequires: libdrm-devel
41 BuildRequires: pkgconfig(libexif)
42 BuildRequires: pkgconfig(capi-system-system-settings)
43 BuildRequires: pkgconfig(libpng)
44 BuildRequires: pkgconfig(gles20)
45 BuildRequires: pkgconfig(efl-assist)
47 %if 0%{?dali_assimp_plugin}
48 BuildRequires: pkgconfig(assimp)
52 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
53 platform abstraction and application shell
55 ##############################
57 ##############################
59 Summary: Development components for the DALi Tizen Adaptor
60 Group: Development/Building
61 Requires: %{name} = %{version}-%{release}
64 Development components for the DALi Tizen Adaptor - public headers and package configs
66 ##############################
67 # Dali Feedback Plugin
68 ##############################
69 %package dali-feedback-plugin
70 Summary: Plugin to play haptic and audio feedback for Dali
71 Group: System/Libraries
72 %if 0%{?dali_feedback_plugin}
74 BuildRequires: pkgconfig(mm-sound)
75 BuildRequires: pkgconfig(deviced)
76 BuildRequires: libfeedback-devel
79 %description dali-feedback-plugin
80 Feedback plugin to play haptic and audio feedback for Dali
82 ##############################
84 ##############################
87 %define dali_data_rw_dir /opt/usr/share/dali/
88 %define dali_data_ro_dir /usr/share/dali/
89 %define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
90 %define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
91 %define font_preloaded_path /usr/share/fonts/
92 %define font_downloaded_path /opt/share/fonts/
93 %define font_application_path /usr/share/app_fonts/
94 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
95 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
96 %define dali_plugin_theme_files %{dali_data_ro_dir}/themes/feedback-themes/
98 %define dev_include_path %{_includedir}
100 ##############################
102 ##############################
105 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
106 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections "
109 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
113 cd %{_builddir}/%{name}-%{version}/build/tizen
115 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
116 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
117 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
118 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
119 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
120 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
122 %configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} \
123 %if 0%{?dali_feedback_plugin}
126 %if 0%{?dali_assimp_plugin}
131 make %{?jobs:-j%jobs}
133 ##############################
135 ##############################
139 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
142 mkdir -p %{buildroot}/usr/share/license
143 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
145 ##############################
147 # 1 - Pre Install new package
148 # 2 - Install new package
149 # 3 - Post install new package
150 # 4 - Pre uninstall old package
151 # 5 - Remove files not overwritten by new package
152 # 6 - Post uninstall old package
153 ##############################
156 rm -f %{user_font_cache_dir}/*
157 rm -f %{user_shader_cache_dir}/*
160 ##############################
161 # Post Install new package
162 ##############################
165 chown 5000:5000 %{user_font_cache_dir}
166 chown 5000:5000 %{user_shader_cache_dir}
169 %if 0%{?dali_feedback_plugin}
170 %post dali-feedback-plugin
175 ##############################
176 # Pre Uninstall old package
177 ##############################
179 rm -f %{user_font_cache_dir}/*
180 rm -f %{user_shader_cache_dir}/*
183 ##############################
184 # Post Uninstall old package
185 ##############################
190 %if 0%{?dali_feedback_plugin}
191 %postun dali-feedback-plugin
196 ##############################
197 # Files in Binary Packages
198 ##############################
201 %manifest dali-adaptor.manifest-mobile
202 %defattr(-,root,root,-)
203 %{_libdir}/libdali-adap*.so*
204 %defattr(-,app,app,-)
205 %dir %{user_font_cache_dir}
206 %dir %{user_shader_cache_dir}
208 %{_datadir}/license/%{name}
211 %defattr(-,root,root,-)
212 %{dev_include_path}/dali/*
213 %{_libdir}/pkgconfig/dali*.pc
215 %if 0%{?dali_feedback_plugin}
216 %files dali-feedback-plugin
217 %defattr(-,root,root,-)
218 %{_libdir}/libdali-feedback-plugin.so*
219 %{dali_plugin_sound_files}/*
220 %{dali_plugin_theme_files}/*