Hi list.

I tried to find how to do this on my own, but failed - I wonder if it can be 
done at all :

I have a SPEC file that I use to build an RPM from a CVS source. at the top of 
the spec file I have a %define which says
%define use_cvs 1
now down the file,  in the %prep stage it checks that define and either checks 
out the CVS version and package it into the SOURCES directory, or %setup the 
source archives (which were created from the CVS in the last build from CVS). 
after the build finishes RPM packs the source archives and spec file into the 
source RPM. now I want to rebuild the software from the source RPM in another 
computer, one that does not have access to the CVS (or I simply want to build 
exactly the version that is in the source RPM), so I have to rpm -i the 
source RPM and then manually edit the spec file to change use_cvs to 0. 
is there a way to get RPM (or using some script) to automaticly change the 
%define to 0 for the copy of the SPEC file that goes into the source RPM 
package ?

TIA

-- 
Oded 

================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to