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 (under rpmbuild 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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -