In rpm-3.0.2-6.0.i386.rpm The buildroot doesn't work. If you specify a "BuildRoot: dir" in the specs file the package is unable to be build because the files are not found. This is verry strange because the files ARE there. I currently am building a package for firewall setup and it seems like it is using the REAL files on my system and not the ones I want to distribute. So it seems to me that it is incorrectly or even NOT parsing the buildroot. I use the following: BuildRoot: %{builddir}/%{name}-%{version} Wich was a legitimate use till now. If I output the env.variables while building it shows that it hasn't parsed the %{builddir}, if I use an absolute path it gives an error while checking for the entries in %files and says that the files are not found. But they are there!
Dunno where you defined builddir, rpm doesn't. Macro expansion passes undefined %{foo} constructs exactly as is. I suspect you want %{_builddir} but you should use something like BuildDir: /var/tmp/%{name}-%{version} so that %{_builddir} will be defined correctly. FWIW, almost every package in the RH distribution uses BuildRoot: successfully.