>in which file is the %prep script defined? Defined in the spec file. >www.rpm.org says its a build-in script. Does that mean its defined in >some binary? I wonder how %prep handles the setup of locale. I would recommend you pull down a few srpms and unpack them then look at their spec files, helped me significantly...