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

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

 



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@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux