>
> >
> > >
> > > >
> > > > >
> > > > > "MV" == Mattia Verga <mattia(a)fedoraproject.org>
writes:
MV> - I've upgraded the source to latest svn from Github. From
packaging
MV> guidelines, when using github for downloading a specific
commit,
MV> the source url should be:
MV> Source0:
MV>
https://github.com/OWNER/%{name}/archive/%{commit0}.tar.gz#/%{nam
e}-%{shortcommit0}.tar.gz
MV> but such a link will download a source named
MV> %{name}-%{commit0}.tar.gz (with full commit in the name instead
of
MV> shortcommit). Is there an error in guidelines, or am I missing
MV> something?
It's not an error; it's just that there's no way to get the tarball
name
we want out of github. The portion after '#/' just has to match
whatever you name the tarball after you download it, so that rpmbuild
can find it.
Still, nothing really cares what the tarball is named as long as it's
there. To be fair I don't know why there's such emphasis on having
%name in the tarball name. I'll try to remember to bring that up at
a
packaging committee meeting at some point.
Github does now provide an easier way for releases which were tagged,
though; that change will be going into the guidelines soon. (As soon
as
I can get around to it, that is.)
if you update guidelines with it, I would be grateful.
Thanks,
--
Sérgio M. B.