Switch Source URL to HTTP, not HTTPS, to avoid unnecessary redirects.
Stop building i386.
Add libdns_server_common.so to common libs.
Update to samba-4.1.13, with library dependencies to match.
Add .gitignore entries for samba-srpm.
Change logic for krb5 libraries and domain compilation.