Hi, the error message seems to come somewhere from handling conditional builds [1]. My wild guess would be that you have a %bcond somewhere that is missing it's second argument.
[1]: https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html
Hope this helps!