[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Getting a dynamic Release number for a spec file.
- From: Matthew Miller <mattdm mattdm org>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Getting a dynamic Release number for a spec file.
- Date: Fri, 10 Feb 2006 09:21:43 -0500
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]