Red Hat Bugzilla – Bug 2847
rpm -ba SPECS/specfile fails for non-UNIX format files.
Last modified: 2015-01-07 18:37:21 EST
When the specfile has CR-LF as the line separator,
rpm gets confused and does not execute commands properly.
For example, if the command is:
rpm attempts to execute: make\r
Converting the spec file to UNIX format alleviates the
problem. However, this is not always easily done, since
a user may desire to merely rebuild a SRC.RPM package.
At the current time, rpm runs only on machines where newline
is used as a line separator.