Re: how to handle source code from github

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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_410@xxxxxxxxx> 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).



Anyway, I wanted to ask how I should put the Source code from there

The source is at:

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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux