tags:

views:

16

answers:

1

When I install my app, I would like to copy some files in /lib/modules/KERNEL_VERSION/extra.

The problem of course is that KERNEL_VERSION is not fixed.

I can find it by calling "uname -r", but how do I do this in a rpm spec file?

Also, if there's a better method, I'm opened to ideas.

+1  A: 

You could interpolate the result of uname -r into the directory (guessing here):

/lib/modules/`uname -r`/extra/
Delan Azabani