On Wed, 2003-02-26 at 15:34, Steffen Barszus wrote: > On Wednesday 26 February 2003 23:18, Quel Qun wrote: > > On Wed, 2003-02-26 at 13:03, Steffen Barszus wrote: > > > 1.) > > > I want to have the kernel-version in the rpm, since it is a kernelmodul. > > > Is there any easy way to do so automagically ? > > > > KERNVER=`uname -r` > > > Thanks, I asked wrong, I wanted if possible the kernelname (uname -r) in the > rpm-filename and if possible due some magig in the spec :) > Maybe something like:
%define kernver `uname-r` %define name pkgename-%kernver Name: %name > > If you want to know how a macro evaluates, just run 'rpm --eval %macro' > > > > Hmmm that returns only what I give: > $]# rpm --eval %doc > %doc > > Something wrong with my environment ? Might only work for the macros defined in /var/lib/rpm/macros. rpm --eval %optflags or rpm --eval %configure should work. -- Quel Qun <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
