Tim Mooney
2007-07-03 16:54:03 UTC
All-
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}
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.
Thanks,
Tim
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}
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.
Thanks,
Tim
--
Tim Mooney ***@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
Tim Mooney ***@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164