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
13 Requires(post): /sbin/ldconfig
14 Requires(postun): /sbin/ldconfig
15 Requires: boost-thread
17 BuildRequires: pkgconfig
19 BuildRequires: pkgconfig(sensor)
20 BuildRequires: pkgconfig(aul)
21 BuildRequires: boost-devel
22 BuildRequires: giflib-devel
23 BuildRequires: pkgconfig(xi)
24 BuildRequires: pkgconfig(fontconfig)
25 BuildRequires: pkgconfig(elementary)
26 BuildRequires: pkgconfig(capi-appfw-application)
27 BuildRequires: libjpeg-turbo-devel
28 BuildRequires: pkgconfig(evas)
29 BuildRequires: pkgconfig(xfixes)
30 BuildRequires: pkgconfig(xdamage)
31 BuildRequires: pkgconfig(utilX)
32 BuildRequires: dali-devel
33 BuildRequires: dali-integration-devel
34 BuildRequires: libxml2-devel
35 BuildRequires: vconf-devel
36 BuildRequires: tts-devel
37 BuildRequires: pkgconfig(dlog)
38 BuildRequires: libdrm-devel
39 BuildRequires: pkgconfig(libexif)
40 BuildRequires: pkgconfig(capi-system-system-settings)
41 BuildRequires: pkgconfig(libpng)
42 BuildRequires: pkgconfig(gles20)
43 BuildRequires: pkgconfig(efl-assist)
46 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
47 platform abstraction and application shell
49 ##############################
51 ##############################
53 Summary: Development components for the DALi Tizen Adaptor
54 Group: Development/Building
55 Requires: %{name} = %{version}-%{release}
58 Development components for the DALi Tizen Adaptor - public headers and package configs
60 ##############################
61 # Dali Feedback Plugin
62 ##############################
63 %package dali-feedback-plugin
64 Summary: Plugin to play haptic and audio feedback for Dali
65 Group: System/Libraries
67 BuildRequires: pkgconfig(mm-sound)
68 BuildRequires: pkgconfig(deviced)
69 BuildRequires: libfeedback-devel
71 %description dali-feedback-plugin
72 Feedback plugin to play haptic and audio feedback for Dali
74 ##############################
76 ##############################
79 %define dali_data_rw_dir /opt/usr/share/dali/
80 %define dali_data_ro_dir /usr/share/dali/
81 %define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
82 %define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
83 %define font_preloaded_path /usr/share/fonts/
84 %define font_downloaded_path /opt/share/fonts/
85 %define font_application_path /usr/share/app_fonts/
86 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
87 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
88 %define dali_plugin_theme_files %{dali_data_ro_dir}/themes/feedback-themes/
90 %define dev_include_path %{_includedir}
92 ##############################
94 ##############################
97 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections "
98 LDFLAGS+=" -Wl,--rpath=$PREFIX/lib -Wl,--as-needed -Wl,--gc-sections "
100 %if 0%{?sec_build_binary_debug_enable}
101 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
102 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
103 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
107 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
111 cd %{_builddir}/%{name}-%{version}/build/tizen
113 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
114 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
115 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
116 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
117 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
118 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
120 %configure --with-jpeg-turbo --enable-gles=30 --enable-profile=%{dali_profile}
122 make %{?jobs:-j%jobs}
124 ##############################
126 ##############################
130 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
133 mkdir -p %{buildroot}/usr/share/license
134 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
136 ##############################
138 # 1 - Pre Install new package
139 # 2 - Install new package
140 # 3 - Post install new package
141 # 4 - Pre uninstall old package
142 # 5 - Remove files not overwritten by new package
143 # 6 - Post uninstall old package
144 ##############################
147 rm -f %{user_font_cache_dir}/*
148 rm -f %{user_shader_cache_dir}/*
151 ##############################
152 # Post Install new package
153 ##############################
156 chown 5000:5000 %{user_font_cache_dir}
157 chown 5000:5000 %{user_shader_cache_dir}
160 %if 0%{?dali_feedback_plugin}
161 %post dali-feedback-plugin
166 ##############################
167 # Pre Uninstall old package
168 ##############################
170 rm -f %{user_font_cache_dir}/*
171 rm -f %{user_shader_cache_dir}/*
174 ##############################
175 # Post Uninstall old package
176 ##############################
181 %if 0%{?dali_feedback_plugin}
182 %postun dali-feedback-plugin
187 ##############################
188 # Files in Binary Packages
189 ##############################
192 %manifest dali-adaptor.manifest-mobile
193 %defattr(-,root,root,-)
194 %{_libdir}/libdali-adap*.so*
195 %{_libdir}/libdali-appl*.so*
196 %defattr(-,app,app,-)
197 %dir %{user_font_cache_dir}
198 %dir %{user_shader_cache_dir}
200 %{_datadir}/license/%{name}
203 %defattr(-,root,root,-)
204 %{dev_include_path}/dali/*
205 %{_libdir}/pkgconfig/dali*.pc
207 %if 0%{?dali_feedback_plugin}
208 %files dali-feedback-plugin
209 %defattr(-,root,root,-)
210 %{_libdir}/libdali-feedback-plugin.so*
211 %{dali_plugin_sound_files}/*
212 %{dali_plugin_theme_files}/*