I know it's almost four years, but for anyone who might stumble upon this page, as if I was looking for a solution:
I had the same problem when a carriage return character was inserted into an rpmbuild automatically generated tempo script. The reason this happens is because I initially edited the specification file in a Windows text editor (which inserted the carriage return) and then the SCPed files in the CentOS field, so the carriage returns errors. If you remake the file in Linux, it should work fine.
Good luck
EDIT: I am very new to Linux, so I didnβt know that there was a command called dos2unix that would convert the text file accordingly for Unix based environments. :) Hope this helps someone else who is facing this problem .
source share