Remove Profile Build Dependency (trivial) 44/99144/3
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Nov 2016 04:53:59 +0000 (13:53 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Nov 2016 05:10:48 +0000 (14:10 +0900)
- This is for Tizen 4.0.
  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros)

  : However, this %if/%endif is not removed because this breaks
  build compatibility with old conventional project-based OBS projects (common only)

  : The form of %if/%endif and its comments are added/modified to
  support 4.0 unified build environment.

- If you do not want to include this in a specific profile's build project,
 you can do so by removing this from OBS profile-project.
  : However, it is already done so for mobile/tv/ivi.
   Therefore these %if/%endif are useless.

Change-Id: I38b75ed2bebd40f1731e5a3e83368e3ef88ce7a5
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/org.tizen.inputdelegator.spec

index f8cbf92..1f93e38 100755 (executable)
@@ -1,3 +1,12 @@
+# For the backward compatibility, this is to be built for
+# wearable profile or 4.0 unified building environment.
+# This cannot be built for non-wearable in conventional 3.0 build environment.
+# Note that it is not a good idea to limit building with ExcludeArch because there are new architectures being tested.
+# Use ExclusiveArch istead.
+%if "%{?profile}" == "mobile" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "common"
+ExclusiveArch:  none
+%endif
+
 Name: org.tizen.inputdelegator
 Summary: Input Delegator Application
 Version: 0.1.161102
@@ -37,22 +46,6 @@ BuildRequires: pkgconfig(capi-media-audio-io)
 BuildRequires:  pkgconfig(bundle)
 %endif
 
-%if "%{?profile}" == "mobile"
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
-%if "%{?profile}" == "tv"
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
-%if "%{?profile}" == "common"
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
-%if "%{?profile}" == "ivi"
-ExcludeArch: %{arm} aarch64 %ix86 x86_64
-%endif
-
 %define _appdir                /usr/apps
 %define _app_destdir   %{_appdir}/%{name}