I am new to RPM package making, and wandering how to improve the work flow I use for creating the package. One I use I find quite laborious.(Luckily I did this only once ;-)
I copy the foo_app dir into foo_app-1.0.1
I tar it into foo_app-1.0.0.tar.gz and copy it into rpmbuild/SOURCES/
Would there be some tool that would automate or make easier repeating of those steps? Or is there a way to avoid doing steps 2 and 3?
My main suggestion, I think, would be to work on having the application able to run out of a development directory so you don't have to install it locally just to try it. Alternatively have a "make install" target so you can just install it (outside rpm) for testing.
But answering your question more specifically, here are two ideas:
A script that exports a .tar.gz from your source control might help (git help archive
) on step 2-3.
If you have the .spec file inside the .tar.gz you can use rpmbuild -ta some.tar.gz
to build the rpms from the tar.gz file.