r***@amnesia.accessgate.com.sg
2007-11-11 08:23:16 UTC
Hi all,
I have a question on passing a variable to a spec file.
Say, for example, I have a feature, and i want to pass information to the spec
file to either enable or disable that feature, so that the spec file can then
pass to configure appropriayte option to enable/disable the cooresponding
feature.
I've seen some references to "--with abc" or "--without abc"
what exactly happens here ? is there a variable that I can reference inside the
spec file to see if "abc" was mentioned with either "--with" or "--without" ?
and how might I reference that variable?
I also have seen the syntax:
%{?variable:1}
I think this is testing "variable" and if the "variable" in question doesn't
exist (hasn't been defined), then return a "1" for the test value. Is this true
? and what gets returned if the variable IS defined? the variables value ?
I've searched high and low all over the net as regards to the intracies of user
defined variables, and the answers to the above questions have been eluding me.
I'd be grateful for answers and/or pointers/urls to documentation.
thanks you, and best rgds,
-Greg Hosler
+---------------------------------------------------------------------+
Please also check the log file at "/dev/null" for additional information.
(from /var/log/Xorg.setup.log)
| Greg Hosler ***@hosler.per.sg |
+---------------------------------------------------------------------+
I have a question on passing a variable to a spec file.
Say, for example, I have a feature, and i want to pass information to the spec
file to either enable or disable that feature, so that the spec file can then
pass to configure appropriayte option to enable/disable the cooresponding
feature.
I've seen some references to "--with abc" or "--without abc"
what exactly happens here ? is there a variable that I can reference inside the
spec file to see if "abc" was mentioned with either "--with" or "--without" ?
and how might I reference that variable?
I also have seen the syntax:
%{?variable:1}
I think this is testing "variable" and if the "variable" in question doesn't
exist (hasn't been defined), then return a "1" for the test value. Is this true
? and what gets returned if the variable IS defined? the variables value ?
I've searched high and low all over the net as regards to the intracies of user
defined variables, and the answers to the above questions have been eluding me.
I'd be grateful for answers and/or pointers/urls to documentation.
thanks you, and best rgds,
-Greg Hosler
+---------------------------------------------------------------------+
Please also check the log file at "/dev/null" for additional information.
(from /var/log/Xorg.setup.log)
| Greg Hosler ***@hosler.per.sg |
+---------------------------------------------------------------------+