X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fdali-adaptor.spec;h=b86bc2c383043f95ca957701e1e369f808f5d2b7;hb=0db96577889fb05af9084b01ef137c5ba8850158;hp=c95020cbdf3e3fc97d2f6238d928146a68a3b636;hpb=70099788b76927e92896394fb5c8966f190cbc27;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/packaging/dali-adaptor.spec b/packaging/dali-adaptor.spec index c95020c..b86bc2c 100644 --- a/packaging/dali-adaptor.spec +++ b/packaging/dali-adaptor.spec @@ -14,7 +14,7 @@ Name: dali-adaptor Summary: The DALi Tizen Adaptor -Version: 1.1.37 +Version: 1.1.46 Release: 1 Group: System/Libraries License: Apache-2.0 and BSD-2-Clause and MIT @@ -25,6 +25,13 @@ Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: giflib +#need libtzplatform-config for directory if tizen version is 3.x + +%if "%{tizen_version_major}" == "3" +BuildRequires: pkgconfig(libtzplatform-config) +%endif + + # Get the profile from tizen_profile_name if tizen version is 2.x and tizen_profile_name exists. %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1} @@ -34,6 +41,7 @@ Requires: giflib %if "%{profile}" == "mobile" %define dali_profile MOBILE %define dali_feedback_plugin 0 +%define dali_videoplayer_plugin 1 %define shaderbincache_flag DISABLE BuildRequires: pkgconfig(gles20) %define gles_requirement_setup 1 @@ -42,6 +50,7 @@ BuildRequires: pkgconfig(gles20) %if "%{profile}" == "tv" %define dali_profile TV %define dali_feedback_plugin 0 +%define dali_videoplayer_plugin 1 %define shaderbincache_flag ENABLE BuildRequires: pkgconfig(glesv2) %define gles_requirement_setup 1 @@ -50,17 +59,29 @@ BuildRequires: pkgconfig(glesv2) %if "%{profile}" == "wearable" %define dali_profile WEARABLE %define dali_feedback_plugin 0 +%define dali_videoplayer_plugin 1 %define shaderbincache_flag DISABLE BuildRequires: pkgconfig(gles20) BuildRequires: pkgconfig(capi-appfw-watch-application) BuildRequires: pkgconfig(appcore-watch) +BuildRequires: pkgconfig(screen_connector_provider) +%define gles_requirement_setup 1 +%endif + +%if "%{profile}" == "ivi" +%define dali_profile IVI +%define dali_feedback_plugin 0 +%define dali_videoplayer_plugin 1 +%define shaderbincache_flag DISABLE +BuildRequires: pkgconfig(glesv2) %define gles_requirement_setup 1 %endif %if "%{profile}" == "common" %define dali_profile COMMON %define dali_feedback_plugin 0 -%define tizen_2_2_compatibility 1 +%define dali_videoplayer_plugin 1 +%define tizen_2_2_compatibility 0 %define shaderbincache_flag DISABLE BuildRequires: pkgconfig(glesv2) %define gles_requirement_setup 1 @@ -71,7 +92,6 @@ BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig BuildRequires: gawk -BuildRequires: pkgconfig(aul) BuildRequires: giflib-devel BuildRequires: pkgconfig(fontconfig) BuildRequires: libjpeg-turbo-devel @@ -114,6 +134,8 @@ BuildRequires: libxkbcommon-devel # dali-adaptor uses ecore mainloop BuildRequires: pkgconfig(ecore-wayland) +BuildRequires: pkgconfig(wayland-tbm-client) +BuildRequires: pkgconfig(tizen-extension-client) # dali-adaptor needs tbm_surface in tizen 3.0 wayland BuildRequires: pkgconfig(libtbm) @@ -179,7 +201,7 @@ Group: System/Libraries %if 0%{?dali_feedback_plugin} #Requires: libdeviced BuildRequires: pkgconfig(mm-sound) -BuildRequires: pkgconfig(haptic) +#BuildRequires: pkgconfig(haptic) BuildRequires: libfeedback-devel %endif @@ -187,19 +209,47 @@ BuildRequires: libfeedback-devel Feedback plugin to play haptic and audio feedback for Dali ############################## +# Dali VideoPlayer Plugin +############################## +%if %{with wayland} + +%package dali-video-player-plugin +Summary: Plugin to play a video file for Dali +Group: System/Libraries +%if 0%{?dali_videoplayer_plugin} +BuildRequires: pkgconfig(capi-media-player) +%endif + +%description dali-video-player-plugin +VideoPlayer plugin to play a video file for Dali +%endif + +############################## # Preparation ############################## %prep %setup -q + +#Use TZ_PATH when tizen version is 3.x + +%if "%{tizen_version_major}" == "2" %define dali_data_rw_dir /usr/share/dali/ %define dali_data_ro_dir /usr/share/dali/ -%define user_shader_cache_dir %{dali_data_ro_dir}/core/shaderbin/ %define font_preloaded_path /usr/share/fonts/ %define font_downloaded_path /opt/share/fonts/ %define font_application_path /usr/share/app_fonts/ %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf -%define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/ +%else +%define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/ +%define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/ +%define font_preloaded_path %TZ_SYS_RO_SHARE/fonts/ +%define font_downloaded_path %TZ_SYS_SHARE/fonts/ +%define font_application_path %TZ_SYS_RO_SHARE/app_fonts/ +%define font_configuration_file %TZ_SYS_ETC/fonts/conf.avail/99-slp.conf +%endif +%define user_shader_cache_dir %{dali_data_ro_dir}/core/shaderbin/ +%define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/ %define dev_include_path %{_includedir} ############################## @@ -248,6 +298,9 @@ FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION %if 0%{?dali_feedback_plugin} --enable-feedback \ %endif +%if 0%{?dali_videoplayer_plugin} + --enable-videoplayer \ +%endif %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ %endif @@ -304,6 +357,14 @@ exit 0 exit 0 %endif +%if %{with wayland} +%if 0%{?dali_videoplayer_plugin} +%post dali-video-player-plugin +/sbin/ldconfig +exit 0 +%endif +%endif + ############################## # Pre Uninstall old package ############################## @@ -323,6 +384,14 @@ exit 0 exit 0 %endif +%if %{with wayland} +%if 0%{?dali_videoplayer_plugin} +%postun dali-video-player-plugin +/sbin/ldconfig +exit 0 +%endif +%endif + ############################## # Files in Binary Packages ############################## @@ -357,3 +426,11 @@ exit 0 %{dali_plugin_sound_files}/* %endif +%if %{with wayland} +%if 0%{?dali_videoplayer_plugin} +%files dali-video-player-plugin +%manifest dali-adaptor.manifest +%defattr(-,root,root,-) +%{_libdir}/libdali-video-player-plugin.so* +%endif +%endif