Packaging Guidelines - creating tarball from VCS with script

Tomas Radej tradej at
Tue May 15 08:19:43 UTC 2012

On Mon, 14 May 2012 16:31:08 +0200
Remi Collet <Fedora at> wrote:

> Le 14/05/2012 16:22, Toshio Kuratomi a écrit :
> >> What do you think?
> >
> > I personally prefer to have the checkout instructions in comments.
> +1
> Except for some very complex scripts for which it make sense to have a 
> shell script.

Discussion with pingou and sochotni on #fedora-java brought us this: What about using an RPM macro with this grammar:

	%create_tarball git|svn|cvs URL revision [additional commands]

This covers vast majority of the cases, and by using e. g. git archive, we can ensure the timestamps will be the same. In case you need to make some non-standard changes, like removing a file, you can still use a stand-alone script in SOURCE1.

What do you think about this?

Tomas Radej <tradej at>

More information about the devel mailing list