Title: Samsung Enterprise Portal mySingle

Thanks for your advice.

When I tried to build with http://download.tizen.org/releases/weekly/tizen/common/common-wayland-ia32/tizen_20140602.25/, it's still not working.

 

I wrote this to the beginning of the spec file. But I can see only "world" message.

%if "%{tizen_version}" == "3.0"
%{echo:Hello}
%else
%{echo:world}
%endif

 

Could you give me more information how you test it? about git repository path, branch name, or any options and defines if you used.

Then, it will be very helpful.

 

 

------- Original Message -------

Sender : Ilya Palachev<[email protected]> Engineer/SRR-IM Compiler Group/삼성전자

Date : 2014-07-02 02:01 (GMT+09:00)

Title : Re: [Tizen General] How can we check tizen's version in spec file?

 

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?

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

 

 

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

Boram Park

Senior engineer

SAMSUNG ELECTRONICS CO.,LTD

E-Mail : [email protected]

 

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

Reply via email to