.spec file Source0 magic for github release source tarballs?

Kaleb KEITHLEY kkeithle at redhat.com
Tue Jan 21 17:41:17 UTC 2014

On 01/21/2014 12:39 PM, Richard Shaw wrote:
> On Tue, Jan 21, 2014 at 11:25 AM, Alec Leamas <leamas.alec at gmail.com
> <mailto:leamas.alec at gmail.com>> wrote:
>     Actually, the GL are pretty clear here: the source should be
>     referenced using the full commit, nothing else. There is some
>     reasoning why. The tag should got to  Version: (as long its 'sane').
>     Besides that this is the existing GL, there is also a subtle
>     difference in git-archive (which supposedly runs this).  When
>     archiving  a tag, the sources gets today's date. OTOH, when
>     archiving a commit,  the sources modification dates are their commit
>     date. Last time I checked this was also true on github.
> Of course github could change it at any time but it looks to be working
> properly right now, in the case of OpenColorIO:
> Source0:
> https://github.com/%{upstream}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

Yes, that's the magick I needed. Works for me in nfs-ganesha.




More information about the devel mailing list