X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fdali-adaptor.spec;h=27ce5ad32c5b5698e4b7a1cfac99f52733d90aea;hb=c9c17a4e0a911a58737c512d8f10beed1b8fa106;hp=1a0e14796e82a7bfe2738326c86bf7b2481cfa43;hpb=94882650bd298dd79cac8bf2b4d6bc48b6bf9f7b;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/packaging/dali-adaptor.spec b/packaging/dali-adaptor.spec index 1a0e147..27ce5ad 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.49 Release: 1 Group: System/Libraries License: Apache-2.0 and BSD-3-Clause and MIT @@ -48,6 +48,7 @@ BuildRequires: pkgconfig(libtzplatform-config) %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common" BuildRequires: pkgconfig(capi-appfw-watch-application) BuildRequires: pkgconfig(appcore-watch) +BuildRequires: pkgconfig(screen_connector_provider) %endif BuildRequires: pkgconfig(gles20) @@ -55,7 +56,6 @@ BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig BuildRequires: gawk -BuildRequires: pkgconfig(aul) BuildRequires: giflib-devel BuildRequires: pkgconfig(fontconfig) BuildRequires: libjpeg-turbo-devel @@ -75,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 ####### @@ -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) @@ -308,6 +300,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" @@ -328,18 +325,14 @@ 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} \ @@ -359,7 +352,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. @@ -373,12 +365,15 @@ 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} \ @@ -398,7 +393,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -412,12 +406,14 @@ 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} \ @@ -437,7 +433,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -451,12 +446,14 @@ 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} \ @@ -476,7 +473,6 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. @@ -490,6 +486,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 ####################################################################### @@ -497,6 +494,7 @@ 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} \ @@ -516,11 +514,11 @@ popd --enable-debug \ %endif --enable-appfw=yes \ - --with-libuv=/usr/include/node/ \ $configure_flags --libdir=%{_libdir} # Build. make %{?jobs:-j%jobs} + %endif @@ -752,7 +750,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,-)