You may need to create the following directories to make a build tree:
diff -uNr dirname.orig dirname > ../SOURCES/dirname-linux.patch |
rpm -ba foobar-1.0.spec |
There are other options useful with the -b switch as well:
There are several modifiers to the -b switch. They are as follows:
Once you've made your own RPM of something (assuming its something that hasn't already been RPM'ed), you can contribute your work to others (also assuming you RPM'ed something freely distributable). To do so, you'll want to upload it to ftp.redhat.com.