Name: dali2-adaptor
Summary: The DALi Tizen Adaptor
-Version: 2.0.30
+Version: 2.0.52
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(input-method-client)
BuildRequires: wayland-devel
BuildRequires: wayland-extension-client-devel
%description dali2-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
-##############################
-# Preparation
-##############################
-%prep
-%setup -q
-
#Use TZ_PATH when tizen version is 3.x or greater
-
%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 dali_plugin_sound_files /plugins/sounds/
##############################
+# Preparation
+##############################
+%prep
+%setup -q
+
+
+##############################
# Build
##############################
%build
cmake_flags+=" -DENABLE_TRACE=ON"
%endif
+%if 0%{?enable_logging}
+cmake_flags+=" -DENABLE_NETWORK_LOGGING=ON"
+%endif
+
libtoolize --force
cd %{_builddir}/%{name}-%{version}/build/tizen
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-mkdir mobile
+mkdir -p mobile
pushd mobile
cmake -DENABLE_PROFILE=MOBILE $cmake_flags ..
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
-mkdir tv
+mkdir -p tv
pushd tv
cmake -DENABLE_PROFILE=TV $cmake_flags ..
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-mkdir wearable
+mkdir -p wearable
pushd wearable
cmake -DENABLE_PROFILE=WEARABLE $cmake_flags ..
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
-mkdir ivi
+mkdir -p ivi
pushd ivi
cmake -DENABLE_PROFILE=IVI $cmake_flags ..
# if common ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
-mkdir common
+mkdir -p common
pushd common
cmake -DENABLE_PROFILE=COMMON $cmake_flags ..