[4.0] Unification: Remove Profile Build Dependency & Prepare 4.0 Build 53/112653/3
authorGeunsik Lim <geunsik.lim@samsung.com>
Thu, 2 Feb 2017 06:15:37 +0000 (15:15 +0900)
committerGeunsik Lim <geunsik.lim@samsung.com>
Thu, 2 Feb 2017 07:26:09 +0000 (16:26 +0900)
This is for Tizen 4.0.
 - Removed profile build dependency.
 - Prepare for Tizen 4.0 build.

a. Remove profile build dependency
 - This commit completely removes the build dependencies on Tizen profile.

b. Prepare for Tizen 4.0 build
 - We have assumed that Tizen 4.0 code is going to be more similar with 3.0
   than 2.0. Please do not rely on string '==' compare for version check.
   And, refer to the official macros that are defined in Project Config.
   https://build.tizen.org/project/prjconf?project=<project_name>

@To maintainer:
Please, keep a spec file syntax that was written at an official webpage.
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/\
RPM_Guide/ch-specfile-syntax.html
First, if you want to use a comparison operator in %if, don't use
a double-quotes. Second, RPM macro does not support a floating-point
number for the comparison operator.

Change-Id: I8904a25e5e24f6e1bdbd460e434ad563695a3001
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
packaging/iotivity.spec

index 15ebd03..1007a00 100644 (file)
@@ -9,27 +9,13 @@ Source0: http://mirrors.kernel.org/%{name}/%{version}/%{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 Source1002: %{name}-test.manifest
 
-%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"
+# 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)
 %define TARGET_TRANSPORT IP
-%endif
-
-%if "%{TARGET_OS}" == "linux"
-%define TARGET_TRANSPORT IP
-%endif
-
-%if "%{TARGET_OS}" == "tizen"
-%define TARGET_TRANSPORT IP
-%endif
 
 # default is RELEASE mode.
 # If DEBUG mode is needed, please use tizen_build_devel_mode