I tried building an rpm from a tarball, and it failed. The tarball was in a directory called "New GNOME Sources". It found the spec, I guess, but failed with this message: Macro % has illegal name (%define) Executing: %prep + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf Gtk---1.0.2 + /bin/gzip -dc /home/vincent/.gnome-desktop/New Gnome/Gtk---1.0.2.tar.gz /home/vincent/.gnome-desktop/New.gz: No such file or directory Gnome/Gtk---1.0.2.tar.gz: No such file or directory + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd Gtk---1.0.2 /var/tmp/rpm-tmp.16971: cd: Gtk---1.0.2: No such file or directory Bad exit status from /var/tmp/rpm-tmp.16971 (%prep) The reason I rate this high is becuase it seems like a real embarrasing mistake, that I would bet is easily fixable.
Can you supply the specfile (just reply to this message with spec file attached). Thanks.
Support for build configurations with pathnames with embedded spaces has never been supported. If you insist on embedded spaces, you might try escaping the spaces in you ~/.rpmmacros file. Meanwhile, the spec file that you've included has another problem. Macro expansion in rpm is *entirely* context free. That means that a %define will be recognized in comments, inside strings, within the false part of %ifarch, everywhere. You might want to try defining it from the command line during the build as --define 'STATIC ...'