Code Clean: GBS warning removed 79/102979/1
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 7 Dec 2016 02:40:02 +0000 (11:40 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 7 Dec 2016 02:40:02 +0000 (11:40 +0900)
The previous macro incurred a few hundreads (if not thousands) of:
...
[   18s] Warning: spec file parser  line 109: macro too deeply nested
[   18s] Warning: spec file parser  line 109: macro too deeply nested
[   18s] Warning: spec file parser  line 109: macro too deeply nested
[   18s] Warning: spec file parser  line 109: macro too deeply nested
[   18s] Warning: spec file parser  line 109: macro too deeply nested
[   18s] Warning: spec file parser  line 109: macro too deeply nested
...

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

index 2f135147684ec69620d75f2201b388c1908b3160..f0fd8d7d46529e6484fda67333a24c5e68be41db 100644 (file)
@@ -27,8 +27,8 @@ Requires(pre):  /usr/bin/rm
 BuildRequires:  xkb-tizen-data
 BuildRequires:  pkgconfig(xkbcommon)
 
-%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
-%global TZ_SYS_VAR  %{?TZ_SYS_VAR:%TZ_SYS_VAR}%{!?TZ_SYS_VAR:/opt/var}
+%{!?TZ_SYS_RO_SHARE: %global TZ_SYS_RO_SHARE /usr/share}
+%{!?TZ_SYS_VAR: %global TZ_SYS_VAR /opt/var}
 %global KEYMAP_FILE_PATH "%{TZ_SYS_RO_SHARE}/X11/xkb/tizen_key_layout.txt"
 
 %description