2 Summary: The DALi Tizen Adaptor
5 Group: System/Libraries
8 Source0: %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 Requires: boost-thread
14 BuildRequires: gettext
15 BuildRequires: pkgconfig
17 BuildRequires: pkgconfig(sensor)
18 BuildRequires: pkgconfig(aul)
19 BuildRequires: boost-devel
20 BuildRequires: pkgconfig(assimp)
21 BuildRequires: giflib-devel
22 BuildRequires: pkgconfig(xi)
23 BuildRequires: pkgconfig(fontconfig)
24 BuildRequires: pkgconfig(elementary)
25 BuildRequires: pkgconfig(cairo)
26 BuildRequires: pkgconfig(capi-appfw-application)
27 BuildRequires: pkgconfig(isf)
28 BuildRequires: libjpeg-turbo-devel
29 BuildRequires: pkgconfig(evas)
30 BuildRequires: pkgconfig(xfixes)
31 BuildRequires: pkgconfig(xdamage)
32 BuildRequires: pkgconfig(utilX)
33 BuildRequires: dali-devel
34 BuildRequires: dali-integration-devel
35 BuildRequires: libxml2-devel
36 BuildRequires: vconf-devel
37 BuildRequires: tts-devel
38 BuildRequires: pkgconfig(dlog)
39 BuildRequires: pkgconfig(native-buffer)
40 BuildRequires: pkgconfig(native-buffer-pool)
41 BuildRequires: libdrm-devel
42 BuildRequires: pkgconfig(libexif)
43 BuildRequires: pkgconfig(capi-system-system-settings)
44 BuildRequires: pkgconfig(gles20)
45 BuildRequires: sec-product-features
49 The DALi Tizen Adaptor
51 ##############################
53 ##############################
55 Summary: Development components for the DALi Tizen Adaptor
56 Group: Development/Libs
57 Requires: %{name} = %{version}-%{release}
60 Development components for the DALi Tizen Adaptor
62 ##############################
63 # Dali Feedback Plugin
64 ##############################
65 %package dali-feedback-plugin
66 Summary: Feedback plugin to play haptic and audio feedback for Dali
67 Group: Development/Libs
69 BuildRequires: pkgconfig(mm-sound)
70 BuildRequires: pkgconfig(deviced)
71 BuildRequires: libfeedback-devel
73 %description dali-feedback-plugin
74 Feedback plugin to play haptic and audio feedback for Dali
76 ##############################
77 # Dali Dynamics/Bullet Plugin
78 ##############################
79 %package dali-bullet-plugin
80 Summary: Dynamics plugin to wrap libBulletDynamics libraries
81 Group: Development/Libs
82 BuildRequires: libbullet-devel
84 %description dali-bullet-plugin
85 Dynamics plugin to wrap libBulletDynamics libraries
87 ##############################
89 ##############################
92 %define dali_data_rw_dir /opt/usr/share/dali/
93 %define dali_data_ro_dir /usr/share/dali/
94 %define user_font_cache_dir %{dali_data_rw_dir}/glyphcache/
95 %define user_shader_cache_dir %{dali_data_rw_dir}/core/shaderbin/
96 %define font_preloaded_path /usr/share/fonts/
97 %define font_downloaded_path /opt/share/fonts/
98 %define font_application_path /usr/share/app_fonts/
99 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
100 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
101 %define dali_plugin_theme_files %{dali_data_ro_dir}/themes/feedback-themes/
103 # Switch over when CAPI finalized
104 #%define dev_include_path %{_includedir}/dali/internal
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 && autoreconf --install
127 %if 0%{?sec_product_feature_graphics_adreno}
128 cd %{_builddir}/%{name}-%{version}/build/tizen && CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" FONT_PRELOADED_PATH="%{font_preloaded_path}" FONT_DOWNLOADED_PATH="%{font_downloaded_path}" FONT_APPLICATION_PATH="%{font_application_path}" FONT_CONFIGURATION_FILE="%{font_configuration_file}" ./configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=30
130 cd %{_builddir}/%{name}-%{version}/build/tizen && CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" FONT_PRELOADED_PATH="%{font_preloaded_path}" FONT_DOWNLOADED_PATH="%{font_downloaded_path}" FONT_APPLICATION_PATH="%{font_application_path}" FONT_CONFIGURATION_FILE="%{font_configuration_file}" ./configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=20
133 make %{?jobs:-j%jobs}
135 ##############################
137 ##############################
141 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
144 mkdir -p %{buildroot}/usr/share/license
145 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
147 ##############################
149 # 1 - Pre Install new package
150 # 2 - Install new package
151 # 3 - Post install new package
152 # 4 - Pre uninstall old package
153 # 5 - Remove files not overwritten by new package
154 # 6 - Post uninstall old package
155 ##############################
158 rm -f %{user_font_cache_dir}/*
159 rm -f %{user_shader_cache_dir}/*
162 ##############################
163 # Post Install new package
164 ##############################
167 chown 5000:5000 %{user_font_cache_dir}
168 chown 5000:5000 %{user_shader_cache_dir}
171 ##############################
172 # Pre Uninstall old package
173 ##############################
175 rm -f %{user_font_cache_dir}/*
176 rm -f %{user_shader_cache_dir}/*
179 ##############################
180 # Post Uninstall old package
181 ##############################
186 ##############################
187 # Files in Binary Packages
188 ##############################
191 %manifest dali-adaptor.manifest
192 %defattr(-,root,root,-)
193 %{_libdir}/libdali-adap*.so*
194 %{_libdir}/libdali-appl*.so*
195 %{_libdir}/libdali-evas*.so*
196 %{_libdir}/libdali-nati*.so*
197 %defattr(-,app,app,-)
198 %dir %{user_font_cache_dir}
199 %dir %{user_shader_cache_dir}
201 %{_datadir}/license/%{name}
204 %defattr(-,root,root,-)
205 %{dev_include_path}/dali/*
206 %{_libdir}/pkgconfig/dali*.pc
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}/*
214 %files dali-bullet-plugin
215 %defattr(-,root,root,-)
216 %{_libdir}/libdali-bullet-plugin.so*