bash - RPM: include a set of constants -
so i know how define macros , include these in main spec file. however, want able include set of constants; this:
hostnames.spec
%define host1 host1 %define host2 host2 ...
main.spec
%include hostnames.spec ... checkhost %{host1}
is there way rpm?
perhaps can:
- according more "rpm argh" or how use %includes ,
rpm
(no version mentioned) allows%include
, provided list (and package) included files sources in rpm. blog entry goes on mention complicates include path, making refer../sources
(underrpmbuild
directory) rather within build-directory. - another (can rpm spec file “include” other files?) asserts "sufficiently recent versions of rpmbuild support %include", , reiterates problem include-directories.
- "sufficiently recent" might not problem, since feature mentioned in 2002 report rpm 3.0.6 (two issues related %if , %include).
Comments
Post a Comment