Packaging Guidelines - creating tarball from VCS with script

Alec Leamas leamas.alec at gmail.com
Tue May 15 08:44:47 UTC 2012


On 05/15/2012 10:19 AM, Tomas Radej wrote:
> On Mon, 14 May 2012 16:31:08 +0200
> Remi Collet<Fedora at FamilleCollet.com>  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?
>
Even though the timestamp problem remains unsolved e. g., for svn this 
is a great idea. Maybe expanding syntax to

   %create_tarball0, %create_tarball1...

which  also defines %SOURCE0,%SOURCE1... which makes %prep happy?


More information about the devel mailing list