GitHub Hosted upstream 'Source0'
sochotnicky at redhat.com
Wed Feb 16 09:55:29 UTC 2011
On 02/16/2011 12:22 AM, BJ Dierkes wrote:
> Hello all,
> I hope I am not the first to come across packaging issues for projects that use GitHub as their upstream source download. For those not familiar, GitHub dynamically generates downloads for all git 'tags'. So for example:
> $ git tag -a -m 'Tagging 1.0.0' 1.0.0
> This would create a tag of '1.0.0' in git. On GitHub, this tag would be 'downloadable' via a dynamic app such as:
> This is the upstream URL that a lot of GitHub users are providing rather than a direct download link. Unfortunately the above is not usable by RPM because rpmbuild expects the URL to end with the file. If I were to use the above in my spec, I would get an error saying something to the affect of 'unknown source file 1.0.0'. Additionally, the tarbal that is created looks like:
> Where XXXXXXX is the last bit of the git commit hash id... which cause yet another pain in that... you need to update this commit revision every time you update the spec... and it just makes things a bit less fluid. I'm wondering how other people have resolved these issues for projects using GitHub as the upstream Source0 download provider.
> Finally, debian has a web app to resolve these issues at:
> What would be the thoughts of using that to produce more sane/traditional tarbals of upstream GitHub source?
What I am using in my spec files is something like this:
# git clone git://github.com/sonatype/sisu
# git archive --prefix="sonatype-sisu-22.214.171.124/" --format=tar \
# sisu-126.96.36.199 > sisu-188.8.131.52.tar.gz
Which basically takes the tag name and creates a nice tarball from it.
Stanislav Ochotnicky <sochotnicky at redhat.com>
Associate Software Engineer - Base Operating Systems Brno
Red Hat Inc. http://cz.redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110216/8f4e9b7b/attachment.bin
More information about the devel