-%if 0%{?tizen:1}
-%define TARGET_OS tizen
-%else
-%define TARGET_OS linux
-%endif
-
-%if "%{tizen}" == "2.3"
-%define TARGET_TRANSPORT IP
-%endif
-
-%if "%{profile}" == "ivi"
-%define TARGET_TRANSPORT IP
-%endif
-
-%if "%{TARGET_OS}" == "linux"
+# Use the official macros that are defined in Project Config (build.tizen.org).
+# https://build.tizen.org/project/prjconf?project=<project_name>
+# - tizen_version_major 4
+# - tizen_version_minor 0
+# For backward compatibility. Not needed (always true) in unified environment.
+# - unified (undefined)