On Sep 17, 2014 11:07 AM, "Simo Sorce" <ssorce@redhat.com> wrote:
>
>
> I was looking at this:
> https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL#Github
>
> But it doesn't look like the URL constructed with these instructions
> lead to a download-able tarball.
> I guess Github has changed things again, is there any new guideline for
> Github Sources ?
>
> What I can see is that while this:
> https://github.com/$OWNER/$PROJECT/archive/%{commit}/$PROJECT-%{commit}.tar.gz
> does not work, this:
> https://github.com/$OWNER/$PROJECT/archive/%{commit}.tar.gz
> works, and the content headers tell the browser that the file name
> should be $PROJECT-%{commit}.tar.gz
>
> Any direction would be appreciated.
>
Github has changed this several times :-(  if the old url scheme is not working any longer the guidelines should be updated.  Fpc ticket is probably best for that.  From your description of what urls work, I'm not sure if there's a good recommendation for a github url in source0 (have to test the permutations to see). Might have to go back to putting the url in a comment.

-Toshio