In that case, I'd try dumping the bit in brackets altogether. It's presumably a build number, and I'd expect major and minor version to be enough, especially given that pclos controls what is provided anyway. Replace the line I gave with "$ver=~s/\[.+$//;" to cut the opening bracket and all that follows.
+1 Thanks, I was thinking something like that ...
In fact, no current packages in the repo provide "kmod(a" at all. Very few provide "kmod(", so it doesn't look as if this is much used anyway.
those kmod references as extracted from kmod.prov are used also to compare against conflicting/(broken?) modules preventing the building of a broken kernel, the conflicting modules are listed in the kernel specfile.
I think the current issue can be considered solved, eventually the issue will be evaluated again if needed.