title: Can I have a generic spec file for multiple kernel version while creating rpm
body: <p>I am trying to build an rpm which includes a kernel module.
  When i create it on centos i used %(uname -r) to copy the .ko in the module directory
  <code>uname -r</code> expands to "3.10.0-327.el7.x86_64"</p>
  
  <p>Now if i want to install the same ko on other system with same kernel version using rpm, it creates a separate folder for it i.e.</p>
  
  <p>aka /lib/modules/3.10.0-327.el7.x86_64 on the other system</p>
  
  <p>Can i write a generic spec file that will copy the module to the specific folder. Please guide.</p>