[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Getting a dynamic Release number for a spec file.



On Fri, Feb 10, 2006 at 09:14:07AM -0500, Jeff Parker wrote:
> The required fields in a SPEC file like Version and Release  may change 
> often enough that I don't want to edit the SPEC file every time I make 
> an RPM.  Is there anyway the SPEC file can get these numbers from an 
> environmental variable or command line option?

Yes -- use a macro and -D.

But often what people do is make a ".spec.in" file and then use something in
a makefile or other build system to generate the real .spec file with the
fields filled in.

-- 
Matthew Miller           mattdm mattdm org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]