PDA

View Full Version : How to build rpm from code repository


Magice
31st May 2010, 04:31 PM
Hello everyone!

I am playing out with a new Scheme implementation (ypsilon to be more precise). The thing is, the code is quite immature and changes a lot, so I would love to build rpm directly from git.

Do you know how to have rpmbuild doing something like this:
1. clone a git tree
2. build the code, package
3. clean the thing up
??

Thank you in advance!

Seve
31st May 2010, 08:52 PM
Hello:

Do you know how to properly build rpm packages for Fedora at this time ?
http://fedoraproject.org/wiki/Packaging/Guidelines

If so, then you can manually add the relative commands to your .spec file to accomplish what you want to do.

Seve

Magice
31st May 2010, 10:39 PM

Hello Steve,

What I do right now is to put the tarball into ~/rpmbuild/SOURCES, then invoke %setup macro in %prep, and everything else is magic.

Thaks!