-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quel Qun wrote:
> 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
>

The way this is usually done (IIRC) is by:

%package -n %kernver

Then, the souce rpm will not have the kernel version in it, only the
binaries.

Guiseppe has an example here:

http://people.mandrakesoft.com/~ghibo/ltmodem-8.22a5-3mdk.src.rpm

You will notice there is some script in there (by Chmouel, originally
used in the NVidia RPMs I think) which gets the kernel version from the
installed headers (my method was to rpm -q --qf {%VERSION}
kernel-source, but it does not handle kernel flavours).

The other issue is that AFAIK, kernel modules are not desired outside
the kernel, even in contrib, otherwise I would put my thinkpad drivers in:
http://ranger.dnsalias.com/mandrake/cooker/thinkpad-4.1-1mdk.src.rpm

(but they do not compile at the moment :-()

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+XdldrJK6UGDSBKcRAr9vAKCxoRYwT+Fv709NR2ktkIlxPkMcLgCePrAs
XuumEEJCt2XN0z6R5HSnsAo=
=j2BP
-----END PGP SIGNATURE-----


Reply via email to