On 11/16/2009 01:47 PM, Dominique Leuenberger wrote:
On 11/16/2009 at 12:05, Dave Plater
wrote: Hi, if I want to build a package that requires kernel-source to be present in order to compile a module how do I specify the dependency of either kernel-desktop-devel ,kernel-default-devel, kernel-pae-devel, kernel-vanilla-devel or any of the other kernel devel packages in the spec file in order to ensure trouble free installation? Thanks in advance, Dave P
Are you trying to build kernel module packages (KMP) in OBS? Then there are some macros for you. I'd suggest you have a look at existing packages that do KMPs at the moment (example openSUSE:11.2 / open-vm-tools).
Look for lines containing KMP... you'll figure them.
also [0] can give you some good information on what all this means.
Dominique
[0] http://www.suse.de/~agruen/KMPM/KernelModulePackagesManual-CODE10.pdf
I looked at open-vm-tools-spec and it doesn't really answer my question, it seems to solve the problem with "Requires: vmware-guest-kmp", I was looking for a non kmp module way. Is there possibly a way of finding out which flavor of kernel is installed perhaps, then I could use conditionals. Thanks for the link to the manual. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org