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-com...
<
https://github.com/<user-or-group>/<repo>/archive/<tagName...
For yours:
https://github.com/maitra/thaali/archive/master/<preferred-file-name&g...
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/7452ae99fe01e7cea6b70881c486775c...
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_410(a)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(a)lists.fedoraproject.org
To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org