Rename library name for cxx11 abi
[platform/core/uifw/dali-adaptor.git] / packaging / dali-adaptor.spec
1 # NOTES
2 # This spec file is used to build DALi Adaptor for different Tizen Profiles
3 # Current profiles are:  Mobile, TV, Wearable, Common
4 #
5 # The profile variable is defined outside of the spec file in a build.conf file.
6 # It will contain the profile and whether or not to build with X11 or Wayland
7 #
8 # gbs will try to download the build.conf for the platform automatically from the repo location when
9 # performing a gbs build ( use gbs build -v to see it download location) E.g.
10 # http://download.tizen.org/snapshots/tizen/tv/tizen-tv/repos/arm-wayland/packages/repodata/xxxx-build.conf.gz
11
12 # Do not provide .so automatically for the extensions.
13 # This if statement is for backward compatibility with GBM/Obsolete build systems
14 %if "%{?profile}" != "wearable" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
15 %global __provides_exclude_from ^.*\\.(wearable|mobile|tv|ivi|common)$
16 %endif
17
18 %bcond_with wayland
19
20 Name:       dali-adaptor
21 Summary:    The DALi Tizen Adaptor
22 Version:    1.2.39
23 Release:    1
24 Group:      System/Libraries
25 License:    Apache-2.0 and BSD-3-Clause and MIT
26 URL:        https://review.tizen.org/git/?p=platform/core/uifw/dali-adaptor.git;a=summary
27 Source0:    %{name}-%{version}.tar.gz
28
29 Requires(post): /sbin/ldconfig
30 Requires(postun): /sbin/ldconfig
31 Requires:       giflib
32
33 #need libtzplatform-config for directory if tizen version is 3.x
34
35 %if 0%{?tizen_version_major} >= 3
36 %define tizen_platform_config_supported 1
37 BuildRequires:  pkgconfig(libtzplatform-config)
38 %endif
39
40
41 # Get the profile from tizen_profile_name if tizen version is 2.x and tizen_profile_name exists.
42
43 %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
44 %define profile %{tizen_profile_name}
45 %endif
46
47 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
48 # if wearable || "undefined"
49 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
50 BuildRequires:  pkgconfig(capi-appfw-watch-application)
51 BuildRequires:  pkgconfig(appcore-watch)
52 BuildRequires:  pkgconfig(screen_connector_provider)
53 %endif
54
55 BuildRequires:  pkgconfig(gles20)
56 BuildRequires:  pkgconfig(glesv2)
57 BuildRequires:  dali-devel-cxx03
58 BuildRequires:  dali-integration-devel-cxx03
59 BuildRequires:  dali-devel
60 BuildRequires:  dali-integration-devel
61 BuildRequires:  pkgconfig
62 BuildRequires:  gawk
63 BuildRequires:  giflib-devel
64 BuildRequires:  pkgconfig(fontconfig)
65 BuildRequires:  libjpeg-turbo-devel
66 BuildRequires:  pkgconfig(vconf)
67 BuildRequires:  tts-devel
68 BuildRequires:  pkgconfig(dlog)
69 BuildRequires:  libdrm-devel
70 BuildRequires:  pkgconfig(libexif)
71 BuildRequires:  pkgconfig(libpng)
72 BuildRequires:  pkgconfig(egl)
73 BuildRequires:  libcurl-devel
74 BuildRequires:  pkgconfig(harfbuzz)
75 BuildRequires:  fribidi-devel
76 BuildRequires:  pkgconfig(capi-system-info)
77 BuildRequires:  pkgconfig(capi-system-sensor)
78
79 # Tizen currently does not have libuv as a separate libuv package
80 # So we have to look into the uv headers bundled inside node-js
81 BuildRequires:  nodejs-devel
82
83
84 %if %{with wayland}
85
86 ####### BUILDING FOR WAYLAND #######
87 BuildRequires:  pkgconfig(wayland-egl)
88 BuildRequires:  pkgconfig(wayland-client)
89 BuildRequires:  wayland-devel
90 BuildRequires:  wayland-extension-client-devel
91
92 # dali-adaptor-uv uses libuv mainloop and has its own wayland client (it needs wayland-client headers).
93 BuildRequires:  libxkbcommon-devel
94
95 # dali-adaptor uses ecore mainloop
96 BuildRequires:  pkgconfig(ecore-wayland)
97
98 # dali-adaptor needs tbm_surface in tizen 3.0 wayland
99 BuildRequires:  pkgconfig(libtbm)
100
101 # tpkp-curl (certificate pinning for libcurl functions) is only available in Tizen 3.0
102 #BuildRequires:  pkgconfig(tpkp-curl)
103 BuildRequires:  pkgconfig(tpkp-curl-cxx03)
104 BuildRequires:  pkgconfig(tpkp-curl)
105 ####### BUILDING FOR X11#######
106 %else
107 BuildRequires:  pkgconfig(egl)
108 BuildRequires:  pkgconfig(xext)
109 BuildRequires:  pkgconfig(xi)
110 BuildRequires:  pkgconfig(xfixes)
111 BuildRequires:  pkgconfig(xdamage)
112 BuildRequires:  pkgconfig(utilX)
113 %endif
114
115 # for dali-adaptor
116 BuildRequires:  pkgconfig(evas)
117 BuildRequires:  pkgconfig(elementary)
118 BuildRequires:  pkgconfig(capi-appfw-application)
119 BuildRequires:  pkgconfig(capi-system-system-settings)
120
121 # for feedback plugin
122 BuildRequires:  pkgconfig(mm-sound)
123 BuildRequires:  pkgconfig(feedback)
124
125 # for videoplayer Plugin
126 BuildRequires:  pkgconfig(capi-media-player)
127
128
129 # for multiprofile
130 Requires:   %{name}-compat = %{version}-%{release}
131 Recommends: %{name}-profile_common = %{version}-%{release}
132
133 %description
134 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
135 platform abstraction and application shell
136
137 %package cxx03
138 Summary:        The DALi Tizen Adaptor DALi Tizen Adaptor with cxx03 abi 
139 Provides:       %{name}-cxx03 = %{version}-%{release}
140
141 %description cxx03
142 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
143 platform abstraction and application shell
144
145 ###########################################
146 # Dali adapter for profiles
147 ###########################################
148
149 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
150 # if mobile || "undefined"
151 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
152 %package profile_mobile
153 Summary:        The DALi Tizen Adaptor for mobile
154 Provides:       %{name}-compat = %{version}-%{release}
155 Conflicts:      %{name}-profile_tv
156 Conflicts:      %{name}-profile_wearable
157 Conflicts:      %{name}-profile_ivi
158 Conflicts:      %{name}-profile_common
159 %description profile_mobile
160 The DALi Tizen Adaptor for mobile.
161 %endif
162
163 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
164 # if tv ||"undefined"
165 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
166 %package profile_tv
167 Summary:        The DALi Tizen Adaptor for tv
168 Provides:       %{name}-compat = %{version}-%{release}
169 Conflicts:      %{name}-profile_mobile
170 Conflicts:      %{name}-profile_wearable
171 Conflicts:      %{name}-profile_ivi
172 Conflicts:      %{name}-profile_common
173 %description profile_tv
174 The DALi Tizen Adaptor for tv.
175 %endif
176
177 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
178 # if wearable || "undefined"
179 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
180 %package profile_wearable
181 Summary:        The DALi Tizen Adaptor for wearable
182 Provides:       %{name}-compat = %{version}-%{release}
183 Conflicts:      %{name}-profile_mobile
184 Conflicts:      %{name}-profile_tv
185 Conflicts:      %{name}-profile_ivi
186 Conflicts:      %{name}-profile_common
187 %description profile_wearable
188 The DALi Tizen Adaptor for wearable.
189 %endif
190
191 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
192 # if ivi ||"undefined"
193 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
194 %package profile_ivi
195 Summary:        The DALi Tizen Adaptor for ivi
196 Provides:       %{name}-compat = %{version}-%{release}
197 Conflicts:      %{name}-profile_mobile
198 Conflicts:      %{name}-profile_wearable
199 Conflicts:      %{name}-profile_tv
200 Conflicts:      %{name}-profile_common
201 %description profile_ivi
202 The DALi Tizen Adaptor for ivi.
203 %endif
204
205 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
206 # if common ||"undefined"
207 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
208 # Currently Tizen Common we use does not have wayland extensions like xdg-shell
209 %package profile_common
210 %define tizen_2_2_compatibility 0
211 Summary:  The DALi Tizen Adaptor for common
212 Provides:       %{name}-compat = %{version}-%{release}
213 Conflicts:      %{name}-profile_mobile
214 Conflicts:      %{name}-profile_wearable
215 Conflicts:      %{name}-profile_tv
216 Conflicts:      %{name}-profile_ivi
217 %description profile_common
218 The DALi Tizen Adaptor for common.
219 %endif
220
221
222 ###########################################
223 # Dali adapter for profiles for cxx03 ABI
224 ###########################################
225
226 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
227 # if mobile || "undefined"
228 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
229 %package profile_mobile-cxx03
230 Summary:        The DALi Tizen Adaptor for mobile
231 Provides:       %{name}-cxx03-compat = %{version}-%{release}
232 Conflicts:      %{name}-profile_tv-cxx03
233 Conflicts:      %{name}-profile_wearable-cxx03
234 Conflicts:      %{name}-profile_ivi-cxx03
235 Conflicts:      %{name}-profile_common-cxx03
236 %description profile_mobile-cxx03
237 The DALi Tizen Adaptor for mobile.
238 %endif
239
240 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
241 # if tv ||"undefined"
242 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
243 %package profile_tv-cxx03
244 Summary:        The DALi Tizen Adaptor for tv
245 Provides:       %{name}-cxx03-compat = %{version}-%{release}
246 Conflicts:      %{name}-profile_mobile-cxx03
247 Conflicts:      %{name}-profile_wearable-cxx03
248 Conflicts:      %{name}-profile_ivi-cxx03
249 Conflicts:      %{name}-profile_common-cxx03
250 %description profile_tv-cxx03
251 The DALi Tizen Adaptor for tv.
252 %endif
253
254 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
255 # if wearable || "undefined"
256 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
257 %package profile_wearable-cxx03
258 Summary:        The DALi Tizen Adaptor for wearable
259 Provides:       %{name}-cxx03-compat = %{version}-%{release}
260 Conflicts:      %{name}-profile_mobile-cxx03
261 Conflicts:      %{name}-profile_tv-cxx03
262 Conflicts:      %{name}-profile_ivi-cxx03
263 Conflicts:      %{name}-profile_common-cxx03
264 %description profile_wearable-cxx03
265 The DALi Tizen Adaptor for wearable.
266 %endif
267
268 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
269 # if ivi ||"undefined"
270 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
271 %package profile_ivi-cxx03
272 Summary:        The DALi Tizen Adaptor for ivi
273 Provides:       %{name}-cxx03-compat = %{version}-%{release}
274 Conflicts:      %{name}-profile_mobile-cxx03
275 Conflicts:      %{name}-profile_wearable-cxx03
276 Conflicts:      %{name}-profile_tv-cxx03
277 Conflicts:      %{name}-profile_common-cxx03
278 %description profile_ivi-cxx03
279 The DALi Tizen Adaptor for ivi.
280 %endif
281
282 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
283 # if common ||"undefined"
284 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
285 # Currently Tizen Common we use does not have wayland extensions like xdg-shell
286 %package profile_common-cxx03
287 %define tizen_2_2_compatibility 0
288 Summary:  The DALi Tizen Adaptor for common
289 Provides:       %{name}-cxx03-compat = %{version}-%{release}
290 Conflicts:      %{name}-profile_mobile-cxx03
291 Conflicts:      %{name}-profile_wearable-cxx03
292 Conflicts:      %{name}-profile_tv-cxx03
293 Conflicts:      %{name}-profile_ivi-cxx03
294 %description profile_common-cxx03
295 The DALi Tizen Adaptor for common.
296 %endif
297
298
299
300 ##############################
301 # devel
302 ##############################
303 %package devel
304 Summary:    Development components for the DALi Tizen Adaptor
305 Group:      Development/Building
306 Requires:   %{name} = %{version}-%{release}
307 Requires:   %{name}-integration-devel = %{version}-%{release}
308
309 %description devel
310 Development components for the DALi Tizen Adaptor - public headers and package configs
311
312 ##############################
313 # integration-devel
314 ##############################
315 %package integration-devel
316 Summary:    Integration development package for the Adaptor
317 Group:      Development/Building
318 Requires:   %{name} = %{version}-%{release}
319
320 %description integration-devel
321 Integration development package for the Adaptor - headers for integrating with an adaptor library.
322
323
324 ##############################
325 # devel cxx03
326 ##############################
327 %package devel-cxx03
328 Summary:    Development components for the DALi Tizen Adaptor
329 Group:      Development/Building
330 Requires:   %{name}-cxx03 = %{version}-%{release}
331 Requires:   %{name}-integration-devel-cxx03 = %{version}-%{release}
332
333 %description devel-cxx03
334 Development components for the DALi Tizen Adaptor - public headers and package configs
335
336 ##############################
337 # integration-devel cxx03
338 ##############################
339 %package integration-devel-cxx03
340 Summary:    Integration development package for the Adaptor
341 Group:      Development/Building
342 Requires:   %{name}-cxx03 = %{version}-%{release}
343
344 %description integration-devel-cxx03
345 Integration development package for the Adaptor - headers for integrating with an adaptor library.
346
347
348 ##############################
349 # Dali Feedback Plugin
350 ##############################
351
352 %package dali-feedback-plugin
353 Summary:    Plugin to play haptic and audio feedback for Dali
354 Group:      System/Libraries
355 Requires:   %{name} = %{version}-%{release}
356 %description dali-feedback-plugin
357 eedback plugin to play haptic and audio feedback for Dali
358
359 ##############################
360 # Dali VideoPlayer Plugin
361 ##############################
362 %if %{with wayland}
363
364 %package dali-video-player-plugin
365 Summary:    Plugin to play a video file for Dali
366 Group:      System/Libraries
367 %description dali-video-player-plugin
368 VideoPlayer plugin to play a video file for Dali
369 %endif
370
371 ##############################
372 # Dali Feedback Plugin cxx03
373 ##############################
374
375 %package dali-feedback-plugin-cxx03
376 Summary:    Plugin to play haptic and audio feedback for Dali
377 Group:      System/Libraries
378 Requires:   %{name}-cxx03 = %{version}-%{release}
379 %description dali-feedback-plugin-cxx03
380 eedback plugin to play haptic and audio feedback for Dali
381
382 ##############################
383 # Dali VideoPlayer Plugin
384 ##############################
385 %if %{with wayland}
386
387 %package dali-video-player-plugin-cxx03
388 Summary:    Plugin to play a video file for Dali
389 Group:      System/Libraries
390 %description dali-video-player-plugin-cxx03
391 VideoPlayer plugin to play a video file for Dali
392 %endif
393
394
395 ##############################
396 # Preparation
397 ##############################
398 %prep
399 %setup -q
400
401 #Use TZ_PATH when tizen version is 3.x or greater
402
403 %if 0%{?tizen_version_major} >= 3
404 %define dali_data_rw_dir         %TZ_SYS_RO_SHARE/dali/
405 %define dali_data_ro_dir         %TZ_SYS_RO_SHARE/dali/
406 %define font_preloaded_path      %TZ_SYS_RO_SHARE/fonts/
407 %define font_downloaded_path     %TZ_SYS_SHARE/fonts/
408 %define font_application_path    %TZ_SYS_RO_SHARE/app_fonts/
409 %define font_configuration_file  %TZ_SYS_ETC/fonts/conf.avail/99-slp.conf
410 %else
411 %define dali_data_rw_dir         /usr/share/dali/
412 %define dali_data_ro_dir         /usr/share/dali/
413 %define font_preloaded_path      /usr/share/fonts/
414 %define font_downloaded_path     /opt/share/fonts/
415 %define font_application_path    /usr/share/app_fonts/
416 %define font_configuration_file  /opt/etc/fonts/conf.avail/99-slp.conf
417 %endif
418
419 %define user_shader_cache_dir    %{dali_data_ro_dir}/core/shaderbin/
420 %define dali_plugin_sound_files  /plugins/sounds/
421 %define dev_include_path %{_includedir}
422
423 ##############################
424 # Build
425 ##############################
426 %build
427 PREFIX+="/usr"
428 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
429 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
430
431 %ifarch %{arm}
432 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
433 %endif
434
435 %if %{with wayland}
436 CFLAGS+=" -DWAYLAND"
437 CXXFLAGS+=" -DWAYLAND"
438 configure_flags="--enable-wayland"
439 %endif
440
441 %if 0%{?tizen_2_2_compatibility}
442 CFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
443 CXXFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
444 %endif
445
446 libtoolize --force
447 cd %{_builddir}/%{name}-%{version}/build/tizen
448 autoreconf --install
449
450 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
451 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"  ; export DALI_DATA_RO_DIR
452 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
453 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
454 FONT_APPLICATION_PATH="%{font_application_path}"  ; export FONT_APPLICATION_PATH
455 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
456 %if 0%{?tizen_platform_config_supported}
457 TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TIZEN_PLATFORM_CONFIG_SUPPORTED
458 %endif
459
460 # Default to GLES 2.0 if not specified.
461 %define target_gles_version 20
462
463 #--enable-efl=no \ # only affects dali-adaptor-uv
464 #--enable-appfw=yes \ # affects both dali-adaptor & dali-adaptor-uv
465 #--with-libuv=/usr/include/node/ \ # only affects dali-adaptor-uv
466
467 # Set up the build via configure.
468 #######################################################################
469 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
470 # if mobile || "undefined"
471 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
472
473 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
474            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
475            --enable-feedback \
476            --enable-videoplayer \
477 %if 0%{?tizen_2_2_compatibility}
478            --with-tizen-2-2-compatibility \
479 %endif
480 %if %{with wayland}
481            --enable-efl=no \
482 %else
483            --enable-efl=yes \
484 %endif
485 %if 0%{?enable_debug}
486            --enable-debug \
487 %endif
488            --enable-appfw=yes \
489            --with-libuv=/usr/include/node/ \
490            $configure_flags --libdir=%{_libdir}
491
492 # Build.
493 make %{?jobs:-j%jobs}
494
495 pushd %{_builddir}/%{name}-%{version}/build/tizen
496 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
497 popd
498
499 pushd %{buildroot}%{_libdir}
500 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
501 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
502 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
503 popd
504
505 make clean
506
507 %endif
508
509 #######################################################################
510 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
511 # if tv ||"undefined"
512 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
513
514 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
515            --enable-shaderbincache=DISABLE --enable-profile=TV \
516            --enable-feedback \
517            --enable-videoplayer \
518 %if 0%{?tizen_2_2_compatibility}
519            --with-tizen-2-2-compatibility \
520 %endif
521 %if %{with wayland}
522            --enable-efl=no \
523 %else
524            --enable-efl=yes \
525 %endif
526 %if 0%{?enable_debug}
527            --enable-debug \
528 %endif
529            --enable-appfw=yes \
530            --with-libuv=/usr/include/node/ \
531            $configure_flags --libdir=%{_libdir}
532
533 # Build.
534 make %{?jobs:-j%jobs}
535
536 pushd %{_builddir}/%{name}-%{version}/build/tizen
537 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
538 popd
539
540 pushd %{buildroot}%{_libdir}
541 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
542 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
543 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
544 popd
545
546 make clean
547 %endif
548
549 #######################################################################
550 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
551 # if wearable || "undefined"
552 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
553
554 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
555            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
556            --enable-feedback \
557            --enable-videoplayer \
558 %if 0%{?tizen_2_2_compatibility}
559            --with-tizen-2-2-compatibility \
560 %endif
561 %if %{with wayland}
562            --enable-efl=no \
563 %else
564            --enable-efl=yes \
565 %endif
566 %if 0%{?enable_debug}
567            --enable-debug \
568 %endif
569            --enable-appfw=yes \
570            --with-libuv=/usr/include/node/ \
571            $configure_flags --libdir=%{_libdir}
572
573 # Build.
574 make %{?jobs:-j%jobs}
575
576 pushd %{_builddir}/%{name}-%{version}/build/tizen
577 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
578 popd
579
580 pushd %{buildroot}%{_libdir}
581 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
582 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
583 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
584 popd
585
586 make clean
587 %endif
588
589 #######################################################################
590 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
591 # if ivi ||"undefined"
592 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
593
594 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
595            --enable-shaderbincache=DISABLE --enable-profile=IVI \
596            --enable-feedback \
597            --enable-videoplayer \
598 %if 0%{?tizen_2_2_compatibility}
599            --with-tizen-2-2-compatibility \
600 %endif
601 %if %{with wayland}
602            --enable-efl=no \
603 %else
604            --enable-efl=yes \
605 %endif
606 %if 0%{?enable_debug}
607            --enable-debug \
608 %endif
609            --enable-appfw=yes \
610            --with-libuv=/usr/include/node/ \
611            $configure_flags --libdir=%{_libdir}
612
613 # Build.
614 make %{?jobs:-j%jobs}
615
616 pushd %{_builddir}/%{name}-%{version}/build/tizen
617 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
618 popd
619
620 pushd %{buildroot}%{_libdir}
621 for FILE in libdali-adaptor*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
622 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
623
624 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
625 popd
626
627 make clean
628 %endif
629
630 #######################################################################
631 # common ( build dali_videoplayer_plugin for common uses )
632 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
633 # if common ||"undefined"
634 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
635
636 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
637            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
638            --enable-feedback \
639            --enable-videoplayer \
640 %if 0%{?tizen_2_2_compatibility}
641            --with-tizen-2-2-compatibility \
642 %endif
643 %if %{with wayland}
644            --enable-efl=no \
645 %else
646            --enable-efl=yes \
647 %endif
648 %if 0%{?enable_debug}
649            --enable-debug \
650 %endif
651            --enable-appfw=yes \
652            --with-libuv=/usr/include/node/ \
653            $configure_flags --libdir=%{_libdir}
654
655 # Build.
656 make %{?jobs:-j%jobs}
657
658 pushd %{_builddir}/%{name}-%{version}/build/tizen
659 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
660 popd
661
662 pushd %{buildroot}%{_libdir}
663 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
664 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
665
666 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
667 popd
668
669 make clean
670
671 %endif
672
673 #######################################################################
674 #BUILD for cxx03 ABI
675 #######################################################################
676
677 # Set up the build via configure.
678 #######################################################################
679 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
680 # if mobile || "undefined"
681 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
682
683 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
684            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
685            --enable-feedback \
686            --enable-videoplayer \
687            --enable-cxx03-abi=yes  \
688 %if 0%{?tizen_2_2_compatibility}
689            --with-tizen-2-2-compatibility \
690 %endif
691 %if %{with wayland}
692            --enable-efl=no \
693 %else
694            --enable-efl=yes \
695 %endif
696 %if 0%{?enable_debug}
697            --enable-debug \
698 %endif
699            --enable-appfw=yes \
700            --with-libuv=/usr/include/node/ \
701            $configure_flags --libdir=%{_libdir}
702
703 # Build.
704 make %{?jobs:-j%jobs}
705
706 pushd %{_builddir}/%{name}-%{version}/build/tizen
707 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
708 popd
709
710 pushd %{buildroot}%{_libdir}
711 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
712 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
713 popd
714
715 make clean
716
717 %endif
718
719 #######################################################################
720 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
721 # if tv ||"undefined"
722 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
723
724 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
725            --enable-shaderbincache=DISABLE --enable-profile=TV \
726            --enable-feedback \
727            --enable-videoplayer \
728            --enable-cxx03-abi=yes  \
729 %if 0%{?tizen_2_2_compatibility}
730            --with-tizen-2-2-compatibility \
731 %endif
732 %if %{with wayland}
733            --enable-efl=no \
734 %else
735            --enable-efl=yes \
736 %endif
737 %if 0%{?enable_debug}
738            --enable-debug \
739 %endif
740            --enable-appfw=yes \
741            --with-libuv=/usr/include/node/ \
742            $configure_flags --libdir=%{_libdir}
743
744 # Build.
745 make %{?jobs:-j%jobs}
746
747 pushd %{_builddir}/%{name}-%{version}/build/tizen
748 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
749 popd
750
751 pushd %{buildroot}%{_libdir}
752 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
753 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
754 popd
755
756 make clean
757 %endif
758
759 #######################################################################
760 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
761 # if wearable || "undefined"
762 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
763
764 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
765            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
766            --enable-feedback \
767            --enable-videoplayer \
768            --enable-cxx03-abi=yes \
769 %if 0%{?tizen_2_2_compatibility}
770            --with-tizen-2-2-compatibility \
771 %endif
772 %if %{with wayland}
773            --enable-efl=no \
774 %else
775            --enable-efl=yes \
776 %endif
777 %if 0%{?enable_debug}
778            --enable-debug \
779 %endif
780            --enable-appfw=yes \
781            --with-libuv=/usr/include/node/ \
782            $configure_flags --libdir=%{_libdir}
783
784 # Build.
785 make %{?jobs:-j%jobs}
786
787 pushd %{_builddir}/%{name}-%{version}/build/tizen
788 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
789 popd
790
791 pushd %{buildroot}%{_libdir}
792 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
793 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
794 popd
795
796 make clean
797 %endif
798
799 #######################################################################
800 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
801 # if ivi ||"undefined"
802 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
803
804 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
805            --enable-shaderbincache=DISABLE --enable-profile=IVI \
806            --enable-feedback \
807            --enable-videoplayer \
808            --enable-cxx03-abi=yes  \
809 %if 0%{?tizen_2_2_compatibility}
810            --with-tizen-2-2-compatibility \
811 %endif
812 %if %{with wayland}
813            --enable-efl=no \
814 %else
815            --enable-efl=yes \
816 %endif
817 %if 0%{?enable_debug}
818            --enable-debug \
819 %endif
820            --enable-appfw=yes \
821            --with-libuv=/usr/include/node/ \
822            $configure_flags --libdir=%{_libdir}
823
824 # Build.
825 make %{?jobs:-j%jobs}
826
827 pushd %{_builddir}/%{name}-%{version}/build/tizen
828 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
829 popd
830
831 pushd %{buildroot}%{_libdir}
832 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
833 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
834 popd
835
836 make clean
837 %endif
838
839 #######################################################################
840 # common ( build dali_videoplayer_plugin for common uses )
841 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
842 # if common ||"undefined"
843 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
844
845 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
846            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
847            --enable-feedback \
848            --enable-videoplayer \
849            --enable-cxx03-abi=yes  \
850 %if 0%{?tizen_2_2_compatibility}
851            --with-tizen-2-2-compatibility \
852 %endif
853 %if %{with wayland}
854            --enable-efl=no \
855 %else
856            --enable-efl=yes \
857 %endif
858 %if 0%{?enable_debug}
859            --enable-debug \
860 %endif
861            --enable-appfw=yes \
862            --with-libuv=/usr/include/node/ \
863            $configure_flags --libdir=%{_libdir}
864
865 # Build.
866 make %{?jobs:-j%jobs}
867
868 %endif
869
870 ##############################
871 # Installation
872 ##############################
873 %install
874 rm -rf %{buildroot}
875
876 pushd %{_builddir}/%{name}-%{version}/build/tizen
877 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
878
879 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
880 # !unified && (wearable || tv || ivi || mobile)
881 %if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile"
882 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
883 %endif
884
885 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
886 # wearable || tv || ivi || mobile || unified
887 %if "%{?profile}" != "common"
888 for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
889 mv dali-adaptor*.pc %{buildroot}%{_libdir}/pkgconfig/
890 %endif
891 popd
892
893 ################################################
894 #rename 
895 ###############################################
896 pushd %{buildroot}%{_libdir}
897
898 rm -rf libdali-adaptor*.so
899 ln -s libdali-adaptor.so.0.0.0 libdali-adaptor-cxx03.so
900 ln -s libdali-adaptor-cxx11.so.0.0.0 libdali-adaptor.so
901 ln -s libdali-adaptor-uv.so.0.0.0 libdali-adaptor-uv-cxx03.so
902 ln -s libdali-adaptor-uv-cxx11.so.0.0.0 libdali-adaptor-uv.so
903
904 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
905 rm -rf libdali-adaptor*.so.wearable
906 ln -s libdali-adaptor.so.0.0.*.wearable libdali-adaptor-cxx03.so.wearable
907 ln -s libdali-adaptor-cxx11.so.0.0.*.wearable libdali-adaptor.so.wearable
908 ln -s libdali-adaptor-uv.so.0.0.*.wearable libdali-adaptor-uv-cxx03.so.wearable
909 ln -s libdali-adaptor-uv-cxx11.so.0.0.*.wearable libdali-adaptor-uv.so.wearable
910 #%endif
911
912 #%if "%{?profile}" != "wearable" && "%{?profile}" == "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
913 rm -rf libdali-adaptor*.so.tv
914 ln -s libdali-adaptor.so.0.0.*.tv libdali-adaptor-cxx03.so.tv
915 ln -s libdali-adaptor-cxx11.so.0.0.*.tv libdali-adaptor.so.tv
916 ln -s libdali-adaptor-uv.so.0.0.*.tv libdali-adaptor-uv-cxx03.so.tv
917 ln -s libdali-adaptor-uv-cxx11.so.0.0.*.tv libdali-adaptor-uv.so.tv
918 #%endif
919
920 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" == "ivi" && "%{?profile}" != "mobile"
921 rm -rf libdali-adaptor*.so.ivi
922 ln -s libdali-adaptor.so.0.0.*.ivi libdali-adaptor-cxx03.so.ivi
923 ln -s libdali-adaptor-cxx11.so.0.0.*.ivi libdali-adaptor.so.ivi
924 ln -s libdali-adaptor-uv.so.0.0.*.ivi libdali-adaptor-uv-cxx03.so.ivi
925 ln -s libdali-adaptor-uv-cxx11.so.0.0.*.ivi libdali-adaptor-uv.so.ivi
926 #%endif
927
928 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" == "mobile"
929 rm -rf libdali-adaptor*.so.mobile
930 ln -s libdali-adaptor.so.0.0.*.mobile libdali-adaptor-cxx03.so.mobile
931 ln -s libdali-adaptor-cxx11.so.0.0.*.mobile libdali-adaptor.so.mobile
932 ln -s libdali-adaptor-uv.so.0.0.*.mobile libdali-adaptor-uv-cxx03.so.mobile
933 ln -s libdali-adaptor-uv-cxx11.so.0.0.*.mobile libdali-adaptor-uv.so.mobile
934 #%endif
935 popd
936
937 ##############################
938 # Upgrade order:
939 # 1 - Pre Install new package
940 # 2 - Install new package
941 # 3 - Post install new package
942 # 4 - Pre uninstall old package
943 # 5 - Remove files not overwritten by new package
944 # 6 - Post uninstall old package
945 ##############################
946
947 %pre
948 exit 0
949
950 ##############################
951 #  Post, Preun, Postun Install new package
952 ##############################
953 %post
954 /sbin/ldconfig
955 exit 0
956
957 %preun
958 exit 0
959
960 %postun
961 /sbin/ldconfig
962 exit 0
963
964 %if %{with wayland}
965 %post dali-video-player-plugin
966 /sbin/ldconfig
967 exit 0
968 %endif
969
970 %if %{with wayland}
971 %postun dali-video-player-plugin
972 /sbin/ldconfig
973 exit 0
974 %endif
975
976 ##############################
977
978 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
979 # if mobile || "undefined"
980 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
981 %post profile_mobile
982 pushd %{_libdir}
983 for FILE in libdali-adaptor-cxx11.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
984 for FILE in libdali-adaptor-uv-cxx11.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
985 popd
986 /sbin/ldconfig
987 exit 0
988
989 %postun profile_mobile
990 /sbin/ldconfig
991 exit 0
992 %endif
993
994 ##############################
995
996 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
997 # if tv ||"undefined"
998 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
999 %post profile_tv
1000 pushd %{_libdir}
1001 for FILE in libdali-adaptor-cxx11.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1002 for FILE in libdali-adaptor-uv-cxx11.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1003 popd
1004 /sbin/ldconfig
1005 exit 0
1006
1007 %postun profile_tv
1008 /sbin/ldconfig
1009 exit 0
1010 %endif
1011
1012 ##############################
1013
1014 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1015 # if wearable || "undefined"
1016 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1017 %post profile_wearable
1018 pushd %{_libdir}
1019 for FILE in libdali-adaptor-cxx11.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1020 for FILE in libdali-adaptor-uv-cxx11.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1021 popd
1022 /sbin/ldconfig
1023 exit 0
1024
1025 %postun profile_wearable
1026 /sbin/ldconfig
1027 exit 0
1028 %endif
1029
1030 ##############################
1031
1032 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1033 # if ivi ||"undefined"
1034 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1035 %post profile_ivi
1036 pushd %{_libdir}
1037 for FILE in libdali-adaptor-cxx11.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1038 for FILE in libdali-adaptor-uv-cxx11.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1039 popd
1040 /sbin/ldconfig
1041 exit 0
1042
1043 %postun profile_ivi
1044 /sbin/ldconfig
1045 exit 0
1046 %endif
1047
1048 ##############################
1049 #cxx03 ABI
1050 #############################
1051 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1052 # if mobile || "undefined"
1053 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1054 %post profile_mobile-cxx03
1055 pushd %{_libdir}
1056 for FILE in libdali-adaptor.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1057 for FILE in libdali-adaptor-uv.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1058 popd
1059 /sbin/ldconfig
1060 exit 0
1061
1062 %postun profile_mobile-cxx03
1063 /sbin/ldconfig
1064 exit 0
1065 %endif
1066
1067 ##############################
1068
1069 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1070 # if tv ||"undefined"
1071 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1072 %post profile_tv-cxx03
1073 pushd %{_libdir}
1074 for FILE in libdali-adaptor.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1075 for FILE in libdali-adaptor-uv.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1076 popd
1077 /sbin/ldconfig
1078 exit 0
1079
1080 %postun profile_tv-cxx03
1081 /sbin/ldconfig
1082 exit 0
1083 %endif
1084
1085 ##############################
1086
1087 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1088 # if wearable || "undefined"
1089 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1090 %post profile_wearable-cxx03
1091 pushd %{_libdir}
1092 for FILE in libdali-adaptor.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1093 for FILE in libdali-adaptor-uv.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1094 popd
1095 /sbin/ldconfig
1096 exit 0
1097
1098 %postun profile_wearable-cxx03
1099 /sbin/ldconfig
1100 exit 0
1101 %endif
1102
1103 ##############################
1104
1105 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1106 # if ivi ||"undefined"
1107 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1108 %post profile_ivi-cxx03
1109 pushd %{_libdir}
1110 for FILE in libdali-adaptor.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1111 for FILE in libdali-adaptor-uv.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1112 popd
1113 /sbin/ldconfig
1114 exit 0
1115
1116 %postun profile_ivi-cxx03
1117 /sbin/ldconfig
1118 exit 0
1119 %endif
1120
1121
1122 ##############################
1123 # Files in Binary Packages
1124 ##############################
1125
1126 %files
1127 %manifest dali-adaptor.manifest
1128 %defattr(-,root,root,-)
1129 %defattr(-,app,app,-)
1130 %dir %{user_shader_cache_dir}
1131 %{_bindir}/*
1132 %license LICENSE
1133 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1134 # if common ||"undefined"
1135 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1136 %defattr(-,root,root,-)
1137 %{_libdir}/libdali-adaptor-cxx11.so.0*
1138 %{_libdir}/libdali-adaptor-uv-cxx11.so.0*
1139 %{_libdir}/libdali-adaptor.so
1140 %{_libdir}/libdali-adaptor-uv.so
1141 %exclude %{_libdir}/libdali-adap*.so*.mobile
1142 %exclude %{_libdir}/libdali-adap*.so*.wearable
1143 %exclude %{_libdir}/libdali-adap*.so*.tv
1144 %exclude %{_libdir}/libdali-adap*.so*.ivi
1145 %endif
1146
1147 %files cxx03
1148 %manifest dali-adaptor.manifest
1149 %defattr(-,root,root,-)
1150 %defattr(-,app,app,-)
1151 %dir %{user_shader_cache_dir}
1152 %{_bindir}/*
1153 %license LICENSE
1154 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1155 # if common ||"undefined"
1156 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1157 %defattr(-,root,root,-)
1158 %{_libdir}/libdali-adaptor.so.0*
1159 %{_libdir}/libdali-adaptor-uv.so.0*
1160 %{_libdir}/libdali-adaptor-cxx03.so
1161 %{_libdir}/libdali-adaptor-uv-cxx03.so
1162 %exclude %{_libdir}/libdali-adap*.so*.mobile
1163 %exclude %{_libdir}/libdali-adap*.so*.wearable
1164 %exclude %{_libdir}/libdali-adap*.so*.tv
1165 %exclude %{_libdir}/libdali-adap*.so*.ivi
1166 %endif
1167
1168 %if %{with wayland}
1169 %files dali-video-player-plugin-cxx03
1170 %manifest dali-adaptor.manifest
1171 %defattr(-,root,root,-)
1172 %{_libdir}/libdali-video-player-plugin.so*
1173 %license LICENSE
1174 %endif
1175
1176 %files dali-feedback-plugin-cxx03
1177 %manifest dali-adaptor.manifest
1178 %defattr(-,root,root,-)
1179 %{_libdir}/libdali-feedback-plugin.so*
1180 %{dali_plugin_sound_files}/*
1181
1182 #################################################
1183 # cxx03 plugins
1184 #################################################
1185 %if %{with wayland}
1186 %files dali-video-player-plugin
1187 %manifest dali-adaptor.manifest
1188 %defattr(-,root,root,-)
1189 %{_libdir}/libdali-video-player-plugin-cxx11.so*
1190 %license LICENSE
1191 %endif
1192
1193 %files dali-feedback-plugin
1194 %manifest dali-adaptor.manifest
1195 %defattr(-,root,root,-)
1196 %{_libdir}/libdali-feedback-plugin-cxx11.so*
1197 %{dali_plugin_sound_files}/*
1198
1199 #################################################
1200
1201 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1202 # if common ||"undefined"
1203 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1204 %files profile_common
1205 # default .so files are housed in the main pkg.
1206 %endif
1207
1208 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1209 # if mobile || "undefined"
1210 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1211 %files profile_mobile
1212 %manifest dali-adaptor.manifest
1213 %defattr(-,root,root,-)
1214 %{_libdir}/libdali-adaptor.so.mobile
1215 %{_libdir}/libdali-adaptor-uv.so.mobile
1216 %{_libdir}/libdali-adaptor-cxx11.so.0*.mobile
1217 %{_libdir}/libdali-adaptor-uv-cxx11.so.0*.mobile
1218 %endif
1219
1220 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1221 # if tv ||"undefined"
1222 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1223 %files profile_tv
1224 %manifest dali-adaptor.manifest
1225 %defattr(-,root,root,-)
1226 %{_libdir}/libdali-adaptor.so.tv
1227 %{_libdir}/libdali-adaptor-uv.so.tv
1228 %{_libdir}/libdali-adaptor-cxx11.so.0*.tv
1229 %{_libdir}/libdali-adaptor-uv-cxx11.so.0*.tv
1230 %endif
1231
1232 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1233 # if wearable || "undefined"
1234 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1235 %files profile_wearable
1236 %manifest dali-adaptor.manifest
1237 %defattr(-,root,root,-)
1238 %{_libdir}/libdali-adaptor.so.wearable
1239 %{_libdir}/libdali-adaptor-uv.so.wearable
1240 %{_libdir}/libdali-adaptor-cxx11.so.0*.wearable
1241 %{_libdir}/libdali-adaptor-uv-cxx11.so.0*.wearable
1242 %endif
1243
1244 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1245 # if ivi ||"undefined"
1246 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1247 %files profile_ivi
1248 %manifest dali-adaptor.manifest
1249 %defattr(-,root,root,-)
1250 %{_libdir}/libdali-adaptor.so.ivi
1251 %{_libdir}/libdali-adaptor-uv.so.ivi
1252 %{_libdir}/libdali-adaptor-cxx11.so.0*.ivi
1253 %{_libdir}/libdali-adaptor-uv-cxx11.so.0*.ivi
1254 %endif
1255
1256
1257 %files devel
1258 %defattr(-,root,root,-)
1259 %{dev_include_path}/dali/dali.h
1260 %{dev_include_path}/dali/public-api/*
1261 %{dev_include_path}/dali/devel-api/*
1262 %{dev_include_path}/dali/doc/*
1263 %{_libdir}/pkgconfig/dali-adaptor.pc
1264 %{_libdir}/pkgconfig/dali-adaptor-uv.pc
1265
1266 %files integration-devel
1267 %defattr(-,root,root,-)
1268 %{dev_include_path}/dali/integration-api/adaptors/*
1269 %{_libdir}/pkgconfig/dali-adaptor-integration.pc
1270
1271
1272 ################################################
1273 # cxx03 ABI
1274 ################################################
1275
1276 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1277 # if common ||"undefined"
1278 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1279 %files profile_common-cxx03
1280 # default .so files are housed in the main pkg.
1281 %endif
1282
1283 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1284 # if mobile || "undefined"
1285 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1286 %files profile_mobile-cxx03
1287 %manifest dali-adaptor.manifest
1288 %defattr(-,root,root,-)
1289 %{_libdir}/libdali-adaptor-cxx03.so.mobile
1290 %{_libdir}/libdali-adaptor-uv-cxx03.so.mobile
1291 %{_libdir}/libdali-adaptor.so.0*mobile
1292 %{_libdir}/libdali-adaptor-uv.so.0*mobile
1293 %endif
1294
1295 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1296 # if tv ||"undefined"
1297 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1298 %files profile_tv-cxx03
1299 %manifest dali-adaptor.manifest
1300 %defattr(-,root,root,-)
1301 %{_libdir}/libdali-adaptor-cxx03.so.tv
1302 %{_libdir}/libdali-adaptor-uv-cxx03.so.tv
1303 %{_libdir}/libdali-adaptor.so.0*.tv
1304 %{_libdir}/libdali-adaptor-uv.so.0*.tv
1305 %endif
1306
1307 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1308 # if wearable || "undefined"
1309 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1310 %files profile_wearable-cxx03
1311 %manifest dali-adaptor.manifest
1312 %defattr(-,root,root,-)
1313 %{_libdir}/libdali-adaptor-cxx03.so.wearable
1314 %{_libdir}/libdali-adaptor-uv-cxx03.so.wearable
1315 %{_libdir}/libdali-adaptor.so.0*.wearable
1316 %{_libdir}/libdali-adaptor-uv.so.0*.wearable
1317 %endif
1318
1319 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1320 # if ivi ||"undefined"
1321 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1322 %files profile_ivi-cxx03
1323 %manifest dali-adaptor.manifest
1324 %defattr(-,root,root,-)
1325 %{_libdir}/libdali-adaptor-cxx03.so.ivi
1326 %{_libdir}/libdali-adaptor-uv-cxx03.so.ivi
1327 %{_libdir}/libdali-adaptor.so.0*.ivi
1328 %{_libdir}/libdali-adaptor-uv.so.0*.ivi
1329 %endif
1330
1331
1332 %files devel-cxx03
1333 %defattr(-,root,root,-)
1334 %{dev_include_path}/dali/dali.h
1335 %{dev_include_path}/dali/public-api/*
1336 %{dev_include_path}/dali/devel-api/*
1337 %{dev_include_path}/dali/doc/*
1338 %{_libdir}/pkgconfig/dali-adaptor-cxx03.pc
1339 %{_libdir}/pkgconfig/dali-adaptor-uv-cxx03.pc
1340
1341 %files integration-devel-cxx03
1342 %defattr(-,root,root,-)
1343 %{dev_include_path}/dali/integration-api/adaptors/*
1344 %{_libdir}/pkgconfig/dali-adaptor-integration-cxx03.pc