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
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