Remove trivial unnecessary profile dependencies 48/88648/2 accepted/tizen/common/20160921.161917 accepted/tizen/ivi/20160922.041812 accepted/tizen/mobile/20160922.041726 accepted/tizen/wearable/20160922.041658 submit/tizen/20160921.022751
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 20 Sep 2016 06:03:22 +0000 (06:03 +0000)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 20 Sep 2016 09:02:04 +0000 (02:02 -0700)
If TV profile does not need this package, excluding this package
from meta-tv.git or Tizen:TV OBS project should be enough.
(And both are done currently)

Because %profile macro is going to be "obsolete" soon,
we recommend not to use %profile or other profile-dependent
statements in build scripts (.spec file).

For other .spec statements with %profile, I'll send a follow-up
patches to remove completely while keeping compatibility with
mobile/wearable/others.

Examples:
(More Complex)
https://review.tizen.org/gerrit/#/c/86842/
https://review.tizen.org/gerrit/#/c/85863/

(Less Complex)
https://review.tizen.org/gerrit/#/c/88635/

Change-Id: I6a2275104ea5ce84b760326314075c37c875370c
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/msg-service.spec

index 3037f1a..704590e 100755 (executable)
@@ -8,10 +8,6 @@ Source0:        %{name}-%{version}.tar.gz
 Source1:        msg-server.service
 Source2:        msg-server.socket
 
-%if "%{?profile}" == "tv"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
 Requires(post): /usr/bin/sqlite3
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig