X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fdali-adaptor.spec;h=199a33c99dc1997fb9cd27aa3334c7f231155193;hb=b30eeec37b27d73f0a7fddb4cfb0f7ab77bc0fe1;hp=62edabf5e17fd8a726feda5b09847255fd42b98b;hpb=1e4802b3a491fa7867f955824a3e05c7cbb6975b;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/packaging/dali-adaptor.spec b/packaging/dali-adaptor.spec index 62edabf..199a33c 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.36 +Version: 1.2.32 Release: 1 Group: System/Libraries License: Apache-2.0 and BSD-2-Clause and MIT @@ -25,6 +25,14 @@ 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" +%define tizen_platform_config_supported 1 +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 +42,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,7 +51,8 @@ BuildRequires: pkgconfig(gles20) %if "%{profile}" == "tv" %define dali_profile TV %define dali_feedback_plugin 0 -%define shaderbincache_flag ENABLE +%define dali_videoplayer_plugin 1 +%define shaderbincache_flag DISABLE BuildRequires: pkgconfig(glesv2) %define gles_requirement_setup 1 %endif @@ -50,15 +60,28 @@ 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) +%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 @@ -177,7 +200,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 @@ -185,19 +208,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 or greater + +%if "%{tizen_version_major}" >= "3" +%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 +%else %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/ +%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} ############################## @@ -233,6 +284,9 @@ FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE +%if 0%{?tizen_platform_config_supported} +TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TIZEN_PLATFORM_CONFIG_SUPPORTED +%endif # Default to GLES 2.0 if not specified. %{!?target_gles_version: %define target_gles_version 20} @@ -246,6 +300,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 @@ -272,9 +329,6 @@ rm -rf %{buildroot} cd build/tizen %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" -# LICENSE -mkdir -p %{buildroot}/usr/share/license -cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name} ############################## # Upgrade order: @@ -302,6 +356,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 ############################## @@ -321,6 +383,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 ############################## @@ -332,7 +402,7 @@ exit 0 %defattr(-,app,app,-) %dir %{user_shader_cache_dir} %{_bindir}/* -%{_datadir}/license/%{name} +%license LICENSE %files devel %defattr(-,root,root,-) @@ -355,3 +425,12 @@ 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* +%license LICENSE +%endif +%endif