On Mon, 2005-11-28 at 11:38 -0500, James Olin Oden wrote: > On 11/28/05, Valery Reznic <valery_reznic@xxxxxxxxx> wrote: > > > > > > --- Toralf Lund <toralf@xxxxxxxxxxxxxx> wrote: > > > > > I've often found myself in the situation where I > > > need a "triggerpostun" > > > that does excatly the same as "post" > > I face the same problem and solve it as following: > > > > - put "shared" command in the separate file > > - instead .spec file write .spec.in file and > > write "include my_file" in appropiative places > > - use /script/awk/sed/whatsoever to process .spec.in > > into spec > > > > Also, you cqn get there without processing the spec. You can do something like: > > %{expand: %(cat $path_to_your_code)} Or just Source1: my-shared-script %include %{SOURCE1} Paul _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list