X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fdali-adaptor.spec;h=33dfacf54dc72bcfa5d3b13be59a3260f1ebc8a9;hb=07e25608e216bc51c12a20d4a9199b9b221264e7;hp=9d5eb614814c189e8b5a07aef53679b1240e7af8;hpb=3217968430d0a5d73b5a45a87931f014ccb4e685;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/packaging/dali-adaptor.spec b/packaging/dali-adaptor.spec index 9d5eb61..33dfacf 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.46 +Version: 1.2.52 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} @@ -76,11 +75,6 @@ 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 ####### @@ -89,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) @@ -114,7 +105,16 @@ BuildRequires: pkgconfig(utilX) # for dali-adaptor BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(elementary) + +%if 0%{?tizen_version_major} == 3 BuildRequires: pkgconfig(capi-appfw-application) +%else +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) +%endif BuildRequires: pkgconfig(capi-system-system-settings) # for feedback plugin @@ -302,6 +302,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" @@ -322,20 +327,17 @@ 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 @@ -352,7 +354,6 @@ TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TI --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -366,14 +367,18 @@ 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 @@ -390,7 +395,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -404,14 +408,17 @@ 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 @@ -428,7 +435,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -442,14 +448,17 @@ 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 @@ -466,7 +475,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -480,6 +488,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 ####################################################################### @@ -487,8 +496,10 @@ 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 @@ -505,11 +516,11 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. make %{?jobs:-j%jobs} + %endif @@ -741,7 +752,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,-)