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 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires: boost-thread
14 BuildRequires: pkgconfig
16 BuildRequires: pkgconfig(sensor)
17 BuildRequires: pkgconfig(aul)
18 BuildRequires: boost-devel
19 BuildRequires: giflib-devel
20 BuildRequires: pkgconfig(fontconfig)
21 BuildRequires: pkgconfig(elementary)
22 BuildRequires: pkgconfig(capi-appfw-application)
23 BuildRequires: libjpeg-turbo-devel
24 BuildRequires: pkgconfig(evas)
25 BuildRequires: dali-devel
26 BuildRequires: dali-integration-devel
27 BuildRequires: libxml2-devel
28 BuildRequires: pkgconfig(vconf)
29 BuildRequires: tts-devel
30 BuildRequires: pkgconfig(dlog)
31 BuildRequires: libdrm-devel
32 BuildRequires: pkgconfig(libexif)
33 BuildRequires: pkgconfig(capi-system-system-settings)
34 BuildRequires: pkgconfig(libpng)
35 BuildRequires: pkgconfig(xi)
36 BuildRequires: pkgconfig(xfixes)
37 BuildRequires: pkgconfig(xdamage)
38 BuildRequires: pkgconfig(utilX)
39 BuildRequires: pkgconfig(gles20)
42 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
43 platform abstraction and application shell
45 ##############################
47 ##############################
49 Summary: Development components for the DALi Tizen Adaptor
50 Group: Development/Building
51 Requires: %{name} = %{version}-%{release}
54 Development components for the DALi Tizen Adaptor - public headers and package configs
56 ##############################
57 # Dali Feedback Plugin
58 ##############################
59 %package dali-feedback-plugin
60 Summary: Plugin to play haptic and audio feedback for Dali
61 Group: System/Libraries
63 BuildRequires: pkgconfig(mm-sound)
64 BuildRequires: pkgconfig(haptic)
65 BuildRequires: libfeedback-devel
67 %description dali-feedback-plugin
68 Feedback plugin to play haptic and audio feedback for Dali
70 ##############################
71 # Dali Dynamics/Bullet Plugin
72 ##############################
73 %package dali-bullet-plugin
74 Summary: Plugin to provide physics
75 Group: System/Libraries
76 BuildRequires: pkgconfig(bullet)
78 %description dali-bullet-plugin
79 Dynamics plugin to wrap the libBulletDynamics libraries
81 ##############################
83 ##############################
86 %define dali_data_rw_dir /usr/share/dali/
87 %define dali_data_ro_dir /usr/share/dali/
88 %define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
89 %define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
90 %define font_preloaded_path /usr/share/fonts/
91 %define font_downloaded_path /opt/share/fonts/
92 %define font_application_path /usr/share/app_fonts/
93 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
94 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
95 %define dali_plugin_theme_files %{dali_data_ro_dir}/themes/feedback-themes/
97 %define dev_include_path %{_includedir}
99 ##############################
101 ##############################
104 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
105 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections "
107 %if 0%{?sec_build_binary_debug_enable}
108 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
109 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
110 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
114 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
118 cd %{_builddir}/%{name}-%{version}/build/tizen
120 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
121 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
122 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
123 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
124 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
125 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
128 %if "%{?sec_product_feature_graphics_gpu_info}" == "adreno330"
129 %configure --with-jpeg-turbo --enable-gles=30 --enable-profile=TV --libdir=%{_libdir}
131 %configure --with-jpeg-turbo --enable-gles=20 --enable-profile=TV --libdir=%{_libdir}
134 make %{?jobs:-j%jobs}
136 ##############################
138 ##############################
142 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
145 mkdir -p %{buildroot}/usr/share/license
146 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
148 ##############################
150 # 1 - Pre Install new package
151 # 2 - Install new package
152 # 3 - Post install new package
153 # 4 - Pre uninstall old package
154 # 5 - Remove files not overwritten by new package
155 # 6 - Post uninstall old package
156 ##############################
159 rm -f %{user_font_cache_dir}/*
160 rm -f %{user_shader_cache_dir}/*
163 ##############################
164 # Post Install new package
165 ##############################
168 chown 5000:5000 %{user_font_cache_dir}
169 chown 5000:5000 %{user_shader_cache_dir}
172 %post dali-feedback-plugin
176 %post dali-bullet-plugin
180 ##############################
181 # Pre Uninstall old package
182 ##############################
184 rm -f %{user_font_cache_dir}/*
185 rm -f %{user_shader_cache_dir}/*
188 ##############################
189 # Post Uninstall old package
190 ##############################
195 %postun dali-feedback-plugin
199 %postun dali-bullet-plugin
204 ##############################
205 # Files in Binary Packages
206 ##############################
209 %manifest dali-adaptor.manifest-tv
210 %defattr(-,root,root,-)
211 %{_libdir}/libdali-adap*.so*
212 %defattr(-,app,app,-)
213 %dir %{user_font_cache_dir}
214 %dir %{user_shader_cache_dir}
216 %{_datadir}/license/%{name}
219 %defattr(-,root,root,-)
220 %{dev_include_path}/dali/*
221 %{_libdir}/pkgconfig/dali*.pc
223 %files dali-feedback-plugin
224 %defattr(-,root,root,-)
225 %{_libdir}/libdali-feedback-plugin.so*
226 %{dali_plugin_sound_files}/*
227 %{dali_plugin_theme_files}/*
229 %files dali-bullet-plugin
230 %defattr(-,root,root,-)
231 %{_libdir}/libdali-bullet-plugin.so*