On 1/17/06, ELASRI Patrice SOFRECOM <patrice.elasri@xxxxxxxxxxxx> wrote: > Hi, > > Does someone knowns a way to pass and update a variable through the > different building scriptlets ? > In fact, I'm using a macro in the %prep scriptlet that I want to modify > and then use its updated value in the next scriptlets %build and > %install. Write the value to a tmp file, and then subsequently read it back in in %build and %install. So: %prep ... echo "${X}" > /tmp/%{name}-%{version}-%{release}-X.dat ... %build X=$(cat /tmp/%{name}-%{version}-%{release}-X.dat) ... %install X=$(cat /tmp/%{name}-%{version}-%{release}-X.dat) ... Cheers...james > > Regards, > > mailto: patrice.elasri@xxxxxxxxxxxx > phone: +33 1 43985883 > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list