I applied the patch: [root at missioncontrol samba-3.2.6]# patch -p1 < 0001-s3-samba.spec-Do-not-build-mount.cifs-separately.patch (Stripping trailing CRs from patch.) patching file packaging/RHEL/samba.spec.tmpl Hunk #1 succeeded at 179 (offset 1 line). But I still get the exact same error when running makerpms.sh.