Building src.rpm from git/svn
Sam Liddicott
sam at liddicott.com
Tue Jun 9 15:16:05 UTC 2009
I promised this a while ago but it was too hard to work the wiki, so I'm
using repo.or.cz which is perhaps better suited to the purpose.
Here (http://repo.or.cz/w/make-srpm.git) are some scripts which I use to
produce a src.rpm from a git tree. In accordance with rpm philosphy, a
/pristine source/ tar.gz is produced, with a series of patches up to the
current released.
The svn backend is less developed, as I am not so familiar with svn as I
am with git, but it works enough for my use with the openchange
<http://www.openchange.org/> project.
The general usage is:
make-srpm [options] project.spec [...]
The operation of make-srpm is generally controlled by shell variables
which may be set explicitly in the environment before calling make-srpm,
or specified as command arguments in makefile fashion; e.g.
make-srpm *ORIGIN_PATTERN="*alpha*"* project.spec
or from within the specfile from specially formed comments.
spec file macros can also be defined, even in terms of values computed
during execution.
I use make-srpm for packaging samba4 and openchange.
Full details here: http://repo.or.cz/w/make-srpm.git
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/vcs-pkg-discuss/attachments/20090609/c6383907/attachment.htm>
More information about the vcs-pkg-discuss
mailing list