X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fdali-adaptor.spec;h=54afd221b8faafebe612f13fc7d036f6e57450a4;hb=010f67652549e6502b52b0bcf39bf134e8ece10c;hp=bf9115f39c0613229bc58e7facdd0cd869a112a0;hpb=694aa6879854276ed5b2184fdd0827c16df25260;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/packaging/dali-adaptor.spec b/packaging/dali-adaptor.spec index bf9115f..54afd22 100644 --- a/packaging/dali-adaptor.spec +++ b/packaging/dali-adaptor.spec @@ -19,7 +19,7 @@ Name: dali-adaptor Summary: The DALi Tizen Adaptor -Version: 1.2.43 +Version: 1.2.54 Release: 1 Group: System/Libraries License: Apache-2.0 and BSD-3-Clause and MIT @@ -37,7 +37,6 @@ Requires: giflib 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} @@ -72,14 +71,10 @@ BuildRequires: pkgconfig(egl) BuildRequires: libcurl-devel BuildRequires: pkgconfig(harfbuzz) BuildRequires: fribidi-devel + BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(capi-system-sensor) -# Tizen currently does not have libuv as a separate libuv package -# So we have to look into the uv headers bundled inside node-js -BuildRequires: nodejs-devel - - %if %{with wayland} ####### BUILDING FOR WAYLAND ####### @@ -88,9 +83,6 @@ BuildRequires: pkgconfig(wayland-client) BuildRequires: wayland-devel BuildRequires: wayland-extension-client-devel -# dali-adaptor-uv uses libuv mainloop and has its own wayland client (it needs wayland-client headers). -BuildRequires: libxkbcommon-devel - # dali-adaptor uses ecore mainloop BuildRequires: pkgconfig(ecore-wayland) @@ -112,17 +104,35 @@ BuildRequires: pkgconfig(utilX) # for dali-adaptor BuildRequires: pkgconfig(evas) -BuildRequires: pkgconfig(elementary) + +%if 0%{?tizen_version_major} == 3 BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(elementary) +%else +BuildRequires: pkgconfig(bundle) +BuildRequires: pkgconfig(appcore-ui) +BuildRequires: pkgconfig(appcore-multiwindow) +BuildRequires: pkgconfig(capi-appfw-app-common) +BuildRequires: pkgconfig(capi-appfw-app-control) +BuildRequires: pkgconfig(screen_connector_provider) +BuildRequires: pkgconfig(ecore-imf) +%endif + BuildRequires: pkgconfig(capi-system-system-settings) # for feedback plugin BuildRequires: pkgconfig(mm-sound) +%if 0%{?tizen_version_major} >= 3 BuildRequires: pkgconfig(feedback) +%endif # for videoplayer Plugin BuildRequires: pkgconfig(capi-media-player) +# for Web Engine Lite Plugin +%if 0%{?enable_web_engine_lite} +BuildRequires: lightweight-web-engine +%endif # for multiprofile Requires: %{name}-compat = %{version}-%{release} @@ -140,12 +150,12 @@ platform abstraction and application shell # if mobile || "undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" %package profile_mobile -Summary: The DALi Tizen Adaptor for mobile -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_tv -Conflicts: %{name}-profile_wearable -Conflicts: %{name}-profile_ivi -Conflicts: %{name}-profile_common +Summary: The DALi Tizen Adaptor for mobile +Provides: %{name}-compat = %{version}-%{release} +Conflicts: %{name}-profile_tv +Conflicts: %{name}-profile_wearable +Conflicts: %{name}-profile_ivi +Conflicts: %{name}-profile_common %description profile_mobile The DALi Tizen Adaptor for mobile. %endif @@ -154,12 +164,12 @@ The DALi Tizen Adaptor for mobile. # if tv ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile" %package profile_tv -Summary: The DALi Tizen Adaptor for tv -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_mobile -Conflicts: %{name}-profile_wearable -Conflicts: %{name}-profile_ivi -Conflicts: %{name}-profile_common +Summary: The DALi Tizen Adaptor for tv +Provides: %{name}-compat = %{version}-%{release} +Conflicts: %{name}-profile_mobile +Conflicts: %{name}-profile_wearable +Conflicts: %{name}-profile_ivi +Conflicts: %{name}-profile_common %description profile_tv The DALi Tizen Adaptor for tv. %endif @@ -168,12 +178,12 @@ The DALi Tizen Adaptor for tv. # if wearable || "undefined" %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" %package profile_wearable -Summary: The DALi Tizen Adaptor for wearable -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_mobile -Conflicts: %{name}-profile_tv -Conflicts: %{name}-profile_ivi -Conflicts: %{name}-profile_common +Summary: The DALi Tizen Adaptor for wearable +Provides: %{name}-compat = %{version}-%{release} +Conflicts: %{name}-profile_mobile +Conflicts: %{name}-profile_tv +Conflicts: %{name}-profile_ivi +Conflicts: %{name}-profile_common %description profile_wearable The DALi Tizen Adaptor for wearable. %endif @@ -182,12 +192,12 @@ The DALi Tizen Adaptor for wearable. # if ivi ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile" %package profile_ivi -Summary: The DALi Tizen Adaptor for ivi -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_mobile -Conflicts: %{name}-profile_wearable -Conflicts: %{name}-profile_tv -Conflicts: %{name}-profile_common +Summary: The DALi Tizen Adaptor for ivi +Provides: %{name}-compat = %{version}-%{release} +Conflicts: %{name}-profile_mobile +Conflicts: %{name}-profile_wearable +Conflicts: %{name}-profile_tv +Conflicts: %{name}-profile_common %description profile_ivi The DALi Tizen Adaptor for ivi. %endif @@ -198,12 +208,12 @@ The DALi Tizen Adaptor for ivi. # Currently Tizen Common we use does not have wayland extensions like xdg-shell %package profile_common %define tizen_2_2_compatibility 0 -Summary: The DALi Tizen Adaptor for common -Provides: %{name}-compat = %{version}-%{release} -Conflicts: %{name}-profile_mobile -Conflicts: %{name}-profile_wearable -Conflicts: %{name}-profile_tv -Conflicts: %{name}-profile_ivi +Summary: The DALi Tizen Adaptor for common +Provides: %{name}-compat = %{version}-%{release} +Conflicts: %{name}-profile_mobile +Conflicts: %{name}-profile_wearable +Conflicts: %{name}-profile_tv +Conflicts: %{name}-profile_ivi %description profile_common The DALi Tizen Adaptor for common. %endif @@ -234,13 +244,12 @@ Integration development package for the Adaptor - headers for integrating with a ############################## # Dali Feedback Plugin ############################## - %package dali-feedback-plugin Summary: Plugin to play haptic and audio feedback for Dali Group: System/Libraries Requires: %{name} = %{version}-%{release} %description dali-feedback-plugin -eedback plugin to play haptic and audio feedback for Dali +Feedback plugin to play haptic and audio feedback for Dali ############################## # Dali VideoPlayer Plugin @@ -255,6 +264,16 @@ VideoPlayer plugin to play a video file for Dali %endif ############################## +# Dali WebEngineLite Plugin +############################## + +%package dali-web-engine-lite-plugin +Summary: Plugin WebEngineLite for Dali +Group: System/Libraries +%description dali-web-engine-lite-plugin +WebEngineLite plugin for Dali + +############################## # Preparation ############################## %prep @@ -300,6 +319,11 @@ CXXFLAGS+=" -DWAYLAND" configure_flags="--enable-wayland" %endif +# Use this conditional when Tizen version is 4.x or greater +%if 0%{?tizen_version_major} >= 4 +CXXFLAGS+=" -DOVER_TIZEN_VERSION_4" +%endif + %if 0%{?tizen_2_2_compatibility} CFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY" CXXFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY" @@ -320,20 +344,20 @@ TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TI %endif # Default to GLES 2.0 if not specified. -%{!?target_gles_version: %define target_gles_version 20} - -#--enable-efl=no \ # only affects dali-adaptor-uv -#--enable-appfw=yes \ # affects both dali-adaptor & dali-adaptor-uv -#--with-libuv=/usr/include/node/ \ # only affects dali-adaptor-uv +%define target_gles_version 20 # Set up the build via configure. ####################################################################### # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if mobile || "undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" + %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \ --enable-shaderbincache=DISABLE --enable-profile=MOBILE \ + --enable-tizen-major-version=%{tizen_version_major} \ +%if 0%{?tizen_version_major} >= 3 --enable-feedback \ +%endif --enable-videoplayer \ %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ @@ -343,11 +367,13 @@ TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TI %else --enable-efl=yes \ %endif +%if 0%{?enable_web_engine_lite} + --enable-web-engine-lite \ +%endif %if 0%{?enable_debug} --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -361,15 +387,21 @@ pushd %{buildroot}%{_libdir} for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done popd +make clean + %endif ####################################################################### # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if tv ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile" + %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \ --enable-shaderbincache=DISABLE --enable-profile=TV \ + --enable-tizen-major-version=%{tizen_version_major} \ +%if 0%{?tizen_version_major} >= 3 --enable-feedback \ +%endif --enable-videoplayer \ %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ @@ -379,11 +411,13 @@ popd %else --enable-efl=yes \ %endif +%if 0%{?enable_web_engine_lite} + --enable-web-engine-lite \ +%endif %if 0%{?enable_debug} --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -397,15 +431,20 @@ pushd %{buildroot}%{_libdir} for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done popd +make clean %endif ####################################################################### # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if wearable || "undefined" %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" + %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \ --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \ + --enable-tizen-major-version=%{tizen_version_major} \ +%if 0%{?tizen_version_major} >= 3 --enable-feedback \ +%endif --enable-videoplayer \ %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ @@ -415,11 +454,13 @@ popd %else --enable-efl=yes \ %endif +%if 0%{?enable_web_engine_lite} + --enable-web-engine-lite \ +%endif %if 0%{?enable_debug} --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -433,15 +474,20 @@ pushd %{buildroot}%{_libdir} for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done popd +make clean %endif ####################################################################### # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if ivi ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile" + %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \ --enable-shaderbincache=DISABLE --enable-profile=IVI \ + --enable-tizen-major-version=%{tizen_version_major} \ +%if 0%{?tizen_version_major} >= 3 --enable-feedback \ +%endif --enable-videoplayer \ %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ @@ -451,11 +497,13 @@ popd %else --enable-efl=yes \ %endif +%if 0%{?enable_web_engine_lite} + --enable-web-engine-lite \ +%endif %if 0%{?enable_debug} --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -469,6 +517,7 @@ pushd %{buildroot}%{_libdir} for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done popd +make clean %endif ####################################################################### @@ -476,9 +525,13 @@ popd # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if common ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile" + %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \ --enable-shaderbincache=DISABLE --enable-profile=COMMON \ + --enable-tizen-major-version=%{tizen_version_major} \ +%if 0%{?tizen_version_major} >= 3 --enable-feedback \ +%endif --enable-videoplayer \ %if 0%{?tizen_2_2_compatibility} --with-tizen-2-2-compatibility \ @@ -488,15 +541,18 @@ popd %else --enable-efl=yes \ %endif +%if 0%{?enable_web_engine_lite} + --enable-web-engine-lite \ +%endif %if 0%{?enable_debug} --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. make %{?jobs:-j%jobs} + %endif @@ -509,6 +565,7 @@ rm -rf %{buildroot} pushd %{_builddir}/%{name}-%{version}/build/tizen %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" + # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # !unified && (wearable || tv || ivi || mobile) %if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile" @@ -522,9 +579,6 @@ for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done %endif popd -mkdir -p %{buildroot}/usr/share/license -cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name} - ############################## # Upgrade order: # 1 - Pre Install new package @@ -539,15 +593,21 @@ cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{ exit 0 ############################## -# Post, Preun, Postun Install new package +# Post Install new package ############################## %post /sbin/ldconfig exit 0 +############################## +# Pre Uninstall old package +############################## %preun exit 0 +############################## +# Post Uninstall old package +############################## %postun /sbin/ldconfig exit 0 @@ -564,6 +624,12 @@ exit 0 exit 0 %endif +#%if %{with wayland} +%post dali-web-engine-lite-plugin +/sbin/ldconfig +exit 0 +#%endif + ############################## # This is for backward-compatibility. This does not deteriorate 4.0 Configurability @@ -643,7 +709,8 @@ exit 0 %defattr(-,app,app,-) %dir %{user_shader_cache_dir} %{_bindir}/* -%{_datadir}/license/%{name} +%license LICENSE + # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if common ||"undefined" %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile" @@ -660,6 +727,16 @@ exit 0 %manifest dali-adaptor.manifest %defattr(-,root,root,-) %{_libdir}/libdali-video-player-plugin.so* +%license LICENSE +%endif + +%if 0%{?tizen_version_major} >= 3 +%if 0%{?enable_web_engine_lite} +%files dali-web-engine-lite-plugin +%manifest dali-adaptor.manifest +%defattr(-,root,root,-) +%{_libdir}/libdali-web-engine-lite-plugin.so* +%license LICENSE %endif %files dali-feedback-plugin @@ -667,6 +744,7 @@ exit 0 %defattr(-,root,root,-) %{_libdir}/libdali-feedback-plugin.so* %{dali_plugin_sound_files}/* +%endif # This is for backward-compatibility. This does not deteriorate 4.0 Configurability # if common ||"undefined" @@ -719,7 +797,6 @@ exit 0 %{dev_include_path}/dali/devel-api/* %{dev_include_path}/dali/doc/* %{_libdir}/pkgconfig/dali-adaptor.pc -%{_libdir}/pkgconfig/dali-adaptor-uv.pc %files integration-devel %defattr(-,root,root,-)