This has been done in CentOS Stream already: https://gitlab.com/redhat/centos-stream/rpms/kernel-srpm-macros/-/merge_requests/1