I have written an RPM spec that has a requirement for the kernel-devel package. However, that is satisfied by the installation of any kernel-devel package. How do I specify that the RPM requires the kernel-devel package of the currently running kernel version.
For example, our customer could be running 3.10.0-514, however the latest is 3.10.0-693. If you execute "yum install -y kernel-devel" you get the headers for the latest version, satisfying the "Requires" line in my RPM. I want to ensure that the headers installed are for 3.10.0-514.