Hi, Mr. Park.

You should write %if condition as follows:

%if "%{tizen_version}" == "3.0"
echo "Hello, world!"
%endif

I have checked it for repository http://download.tizen.org/releases/weekly/tizen/common/common-wayland-ia32/tizen_20140602.25/
It works and message "Hello, world!" is printed.

Best regards,
Ilya Palachev
Tizen Toolchain Team

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

*From:* Boram Park
*Sent:* Tuesday, July 01, 2014 6:53PM
*To:* [email protected]
*Subject:* [Tizen General] How can we check tizen's version in spec file?

Samsung Enterprise Portal mySingle

Hello

Is is possible to check whether tizen version is 3.0 in spec file?

I saw "%tizen_version 3.0" macro in project configuration of Tizen:Common.

Can anyone help me about this?

%if %{tizen_version} == "3.0"

If I write above line in spec file, gbs returns "parseExpressionBoolean returns -1" message.

Cheers



_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general



_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to