packaging - Is there any syntax or trick to be able to create a multiline rpm spec file macro -
background.
$ rpmbuild --version rpm version 4.3.3
i working on spec file needs process list of files in multiple scriptlets. dry (don't repeat youself) has me defining list once macro expanded various helper scripts. maintaining list pain since haven't seen way avoid putting files on same line.
%define list \ \ b
gives error
%define list a\ b\
gives error
%define list %define list %list b
fails due recursion error
since explained goal bit more, let's try different approach. try in spec file:
source1: flist %{expand:%global list %(cat %{source1})} and in source1 file (in case flist):
a \ b \ c i have tested rpm 4.4.6 since that's oldest version available me @ time.
Comments
Post a Comment