Re: help loading additional macros from file

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

 



On Tuesday, 03 July 2007, at 11:54:03 (-0500),
Tim Mooney wrote:

>  I need some macro-fu help.  I want to (in a spec file)
> 
>  - test to see if a particular macro is defined.
>  - if it's not, I would like to
>  	- source/load a file that has additional macro definitions, making
>  	  them available in my spec file.
>  	- for extra credit, if the file doesn't exist, exit with an error.
> 
> 
>  It looks like I can do the test part with something like
> 
>  %if %{undefined perl_sitelib}

%if %{?perl_sitelib:1}0

is probably more portable.

>  but I'm unsure how to accomplish the "load additional macros from
>  an external file" part.  I would be using this with rpm 4.0.4 (from
>  RHEL 2.1) all the way up to current rpm.

With RPM 4.0.4, I'm pretty sure the answer is "you can't."

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@xxxxxxxxx>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "Sometimes I give myself the creeps.  Sometimes my mind plays tricks
  on me.  It all keeps adding up; I think I'm cracking up.  Am I just
  paranoid?  Am I just stoned?"            -- Green Day, "Basket Case"

_______________________________________________
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