passing a variable to a spec file from rpmbuild command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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                                   greg@xxxxxxxxxxxxx    |
+---------------------------------------------------------------------+

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux