%bcond_with wayland
+#please update nui_internal_version below, if you changed version-check.cpp
+%define nui_internal_version nui550
+
Name: dali-csharp-binder
Summary: The DALI Csharp Binder
-Version: 1.3.33
+Version: 1.4.22
Release: 1
Group: uifw/graphic
License: Apache-2.0 and BSD-3-Clause and MIT
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
-#need libtzplatform-config for directory if tizen version is 3.x
-
-%if 0%{?tizen_version_major} >= 3
%define tizen_platform_config_supported 1
BuildRequires: pkgconfig(libtzplatform-config)
-%endif
-
-%if 0%{?tizen_version_major} < 4
-%define disable_cxx03_build 1
-%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}
-%define profile %{tizen_profile_name}
-%endif
-
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
BuildRequires: pkgconfig(capi-appfw-watch-application)
# Dali csharp binder for profiles
###########################################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%package profile_mobile
The DALi Tizen csharp binder for mobile.
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%package profile_tv
The DALi Tizen csharp binder for tv.
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%package profile_wearable
The DALi Tizen csharp binder for wearable.
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
%package profile_ivi
The DALi Tizen csharp binder for ivi.
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if common ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
# Currently Tizen Common we use does not have wayland extensions like xdg-shell
%prep
%setup -q
-#Use TZ_PATH when tizen version is 3.x or greater
-
-%if 0%{?tizen_version_major} >= 3
%define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
%define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
-%else
-%define dali_data_rw_dir /usr/share/dali/
-%define dali_data_ro_dir /usr/share/dali/
-%endif
-
##############################
# Build
# Set up the build via configure.
#######################################################################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%configure --prefix=$PREFIX --enable-profile=MOBILE \
%endif
#######################################################################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%configure --prefix=$PREFIX --enable-profile=TV \
%endif
#######################################################################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%configure --prefix=$PREFIX --enable-profile=WEARABLE \
%endif
#######################################################################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
%configure --prefix=$PREFIX --enable-profile=IVI \
#######################################################################
# common
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if common ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%configure --prefix=$PREFIX --enable-profile=COMMON \
%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
+# If the profile is selected, the line below is repquired.
# !unified && (wearable || tv || ivi || mobile)
%if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile"
rm -rf %{buildroot}%{_libdir}/libdali-csharp-binder*.so*
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# wearable || tv || ivi || mobile || unified
%if "%{?profile}" != "common"
for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
###############################################
pushd %{buildroot}%{_libdir}
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if common ||"undefined"
#%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
rm -rf libdali-csharp-binder*.so
ln -s libdali-csharp-binder.so.0.0.0 libdali-csharp-binder.so
#%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
rm -rf libdali-csharp-binder*.so.wearable
ln -s libdali-csharp-binder.so.0.0.*.wearable libdali-csharp-binder.so.wearable
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
rm -rf libdali-csharp-binder*.so.tv
ln -s libdali-csharp-binder.so.0.0.*.tv libdali-csharp-binder.so.tv
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
rm -rf libdali-csharp-binder*.so.ivi
ln -s libdali-csharp-binder.so.0.0.*.ivi libdali-csharp-binder.so.ivi
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
rm -rf libdali-csharp-binder*.so.mobile
##############################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_mobile
##############################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%post profile_tv
##############################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_wearable
##############################
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
%post profile_ivi
%files
%manifest dali-csharp-binder.manifest
%defattr(-,root,root,-)
-%defattr(-,app,app,-)
%license LICENSE
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if common ||"undefined"
#%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%defattr(-,root,root,-)
%exclude %{_libdir}/libdali-csharp-binder*.so*.ivi
#%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if common ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%files profile_common
# default .so files are housed in the main pkg.
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%files profile_mobile
%{_libdir}/libdali-csharp-binder.so.*mobile
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
%files profile_tv
%{_libdir}/libdali-csharp-binder.so.*tv
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%files profile_wearable
%{_libdir}/libdali-csharp-binder.so.*wearable
%endif
-# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# If the profile is selected, the line below is repquired.
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
%files profile_ivi