The problem

You want to create your own RPM package. You have written a spec file test.spec. But when you call rpmbuild you get the following error message:

root@linux# rpmbuild -ba test.spec
error: File /root/test.spec does not appear to be a spec file.

The cause

Your spec file contains German umlauts or other non-ASCII characters.

The solution

Remove all umlauts and other characters that are not in the ASCII character set from your spec file.

Note: The problem does not occur with all distributions, nor can it be determined by the version of RPM. Both SuSE 9.1 and SuSE 10.0 use RPM version 4.1.1. The problem occurs with SuSE 9.1 but not with SuSE 10.0.

Linux knowledge

These articles were written by the founder of Checkmk many years ago.
They are still valid though and thus we keep them on our website.
Mathias has since then developed a monitoring software called Checkmk

Find out more