You can set the name of the file via the GitHub API when you download it.

For jQuery (packaged as js-jquery), I use:
https://github.com/jquery/jquery/archive/%{version}/jquery-%{version}.tar.gz

This will work for any GitHub project which tags released versions:
https://github.com/<user-or-group>/<repo>/archive/<tag-commit-or-branch>/<preferred-file-name>.tar.gz
<https://github.com/<user-or-group>/<repo>/archive/<tagName>/<preferred-file-name>.tar.gz>

For yours:
https://github.com/maitra/thaali/archive/master/<preferred-file-name>.tar.gz

But, you shouldn't use "master". You should be more specific about which
commit you are using, for reproducibility:
https://github.com/maitra/thaali/archive/7452ae99fe01e7cea6b70881c486775cd1b32186/<preferred-file-name>.tar.gz

Some projects do something like:
%global commit 7452ae99fe01e7cea6b70881c486775cd1b32186
%global shortcommit %(c=%{commit}; echo ${c:0:7})
...
Source0:
https://github.com/maitra/thaali/archive/%{commit}/%{name}-%{commit}.tar.gz
...
%prep
%setup -qn %{name}-%{commit}
...

Hope that helps.

On Sun, Apr 23, 2017 at 11:38 AM Globe Trotter <itsme_...@yahoo.com> wrote:

> I am trying to package the following from github for fedora. (Actually, I
> have been using my own RPM for years so it is hopefully not a major task).
>
> https://github.com/maitra/thaali
>
>
> Anyway, I wanted to ask how I should put the Source code from there
>
> The source is at:
> https://github.com/maitra/thaali/archive/master.zip
>
> but that does not give me the version, etc number to build from the spec
> file.
>
>
> So, what should I do?
>
> Thanks again!
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to