Remove unnecessary conditional build statements 15/89615/3
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 26 Sep 2016 06:49:38 +0000 (06:49 +0000)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 12 Oct 2016 06:10:03 +0000 (06:10 +0000)
commite0414c083faefe5204f552f46a3144f5c133e8e8
tree64a3a10de315eb084cc907545365ea844bc1974a
parent57f7cd50709941a53223eebe814914c89868b01c
Remove unnecessary conditional build statements

It is more desirable to have a common spec file for every profile
so that we can merge OBS per-profile build project configs.

TV: if this package is not required for TV, we can simple remove
 this pacakge from meta-TV.git. If we want not to build this package
 in Tizen:TV, we can simply remove this package from OBS Tizen;TV,
 which is already done. Thus, the TV related statement in .spec file
 is dead code. (and %profile is not recommenable macro)

Conditional BuildRequires of mobile/common/wearable: because the
superset of all three conditions exists in all of the three
build projects, this conditionals are useless. You may save
some build time with such optimizations, however by removing the
usage of %profile in spec file and supporting common preinstallimage
is more beneficial. Thus, in the course of removing the usage of
%profile RPM spec maro, we are going to remove these.

A next commit will remove the usage of other %profile macros
with multiprofile subpackages.
https://review.tizen.org/gerrit/#/c/87290/ seems to be a good
example of such.

Note that this commit is NOT required by Tizen 3.0.
This is going to be needed by Tizen > 3.0. Thus, you may
delay SR-ing this commit or put this in sandbox.

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