Tizen:Common: fix error to undefine tizenscim option 24/31724/2
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Mon, 8 Dec 2014 17:59:52 +0000 (18:59 +0100)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 9 Dec 2014 12:06:37 +0000 (04:06 -0800)
Also add some documentation on how to set/unset option flags.

Change-Id: Ie312f9537535a2ea5faf1d3a17111095ba34a8f4
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Tizen:Common/_config

index deb98ae..bed8646 100644 (file)
@@ -166,6 +166,44 @@ Macros:
 
 ############################# misc config flags ################################
 
+########## USAGE ##########
+# 
+# IMPORTANT: please follow the following rules when playing with flags
+# ********************************************************************
+# 
+# In spec file, call %bcond_with macro at the beginning and test with %with:
+# -------------------------
+# | %bcond_with myfeature
+# | [...]
+# | %if %{with myfeature}
+# | [...]
+# | %endif
+# | [...]
+# -------------------------
+#
+# To activate an option, use:
+# -------------------------
+# | %define _with_myfeature 1
+# | Macros:
+# | %_with_myfeature 1
+# | :Macros
+# -------------------------
+#
+# To disable an option, DON'T set the values to 0, as the option would still be defined
+# but simply comment the lines: this will undefine the option.
+# -------------------------
+# | #%define _with_myfeature 1
+# | #Macros:
+# | #%_with_myfeature 1
+# | #:Macros
+# -------------------------
+#
+# More information here: 
+# https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
+# 
+
+########## flags ##########
+
 # This build macro controls the libdlog output. If enabled,
 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
 # logger FIFO. Affects: dlog.
@@ -204,10 +242,10 @@ Macros:
 # Macro used for testing Input methods
 # Used: qt*
 # Owner: Philippe Coval <philippe.coval@open.eurogiciel.org>
-%define _with_tizenscim 0
-Macros:
-%_with_tizenscim 0
-:Macros
+#%define _with_tizenscim 1
+#Macros:
+#%_with_tizenscim 1
+#:Macros
 
 # This build macro controls whether the OS uses
 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,