On Mon, 2005-11-28 at 11:52 -0500, James Olin Oden wrote: > > > %{expand: %(cat $path_to_your_code)} > > > > Or just > > > > Source1: my-shared-script > > %include %{SOURCE1} > > > Much simpler solution. Does the %include expand the macros in SOURCE1? Yup foo.script: cat ../SOURCES/foo.script echo %{_lib} Source1: foo.script %post %include %{SOURCE1} rpm -qp --scripts ../RPMS/dummy-1.0-2.i386.rpm preinstall scriptlet (using /bin/sh): echo lib Paul _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list