Source rpms (e.g. lustre-2.10.5-1.src.rpm) are tied to the kernel version they were originally built against by kmp-lustre.preamble.
This prevents the rpm from being rebuild via rpmbuild --rebuild lustre-2.10.5-1.src.rpm on other el releases (e.g. el7.4).
- Install source rpm
- Edit rpmbuild/SOURCE/kmp-lustre.preamble for correct kernel version
- build from spec: rpm -bb rpmbuild/SPEC/lustre.spec