Distinguish tizen version via tizen_version_major 35/57935/6
authorminho.sun <minho.sun@samsung.com>
Tue, 26 Jan 2016 05:36:02 +0000 (14:36 +0900)
committerTom Robinson <tom.robinson@samsung.com>
Mon, 8 Feb 2016 11:17:21 +0000 (11:17 +0000)
Add

[ 0%{?tizen_profile_name:1} ]

to if statement

for check tizen_profile_name existence.

%if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}

-------------------------------------------------

We distinguish Tizen version depending on whether build.conf has "tizen_profile_name" now. (2.4 has "tizen_profile_name" but 3.0 doesn't)
When build for hawkP 3.0, it makes error because hawkP 3.0 build.conf use profile and tizen_profile_name both.
For this reason, we should distinguish other way.

I think, to distinguish version, using version variable is appropriate.

So, i change

%if 0%{?tizen_profile_name:1}

to

%if "%{tizen_version_major}" == "2"

Change-Id: If392982514a8137a9278fe48dcac7e44807a3dcc

packaging/dali-adaptor.spec

index 2556d01..5ee2695 100644 (file)
@@ -25,8 +25,9 @@ Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 Requires:       giflib
 
-# Get the profile from tizen_profile_name if it exists.
-%if 0%{?tizen_profile_name:1}
+# Get the profile from tizen_profile_name if tizen version is 2.x and tizen_profile_name exists.
+
+%if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
 %define profile %{tizen_profile_name}
 %endif