At line 232 of /packaging/RHEL/samba.spec, the 'for' list is broken to two lines with an extraneous line feed. This leaves 'libnetapi' on a line by itself, which results in a syntax error and a build failure. Will attach patch to fix...
Created attachment 3680 [details] patch to /packaging/RHEL/samba.spec[.tmpl] to fix broken for loop in %install
This has already been fixed meanwhile. Thanks for reporting!