Re: Spec file using github repo - not tarball

2024-05-21 Thread Sandro
On 21-05-2024 18:04, Dominik Wombacher wrote: On 05/21/2024 5:54 PM CEST Tom Hughes via devel wrote: The automatic tar ball URLs on github just do a git archive and are separate to uploaded release artifacts. Just use a URL like: https://github.com/OWNER/PROJECT/archive/REVISION/NAME.tar.

Re: Spec file using github repo - not tarball

2024-05-21 Thread Dominik Wombacher
> On 05/21/2024 5:54 PM CEST Tom Hughes via devel > wrote: > > The automatic tar ball URLs on github just do a git archive and are > separate to uploaded release artifacts. Just use a URL like: > >https://github.com/OWNER/PROJECT/archive/REVISION/NAME.tar.gz > > where tag can be any tag or

Re: Spec file using github repo - not tarball

2024-05-21 Thread Tom Hughes via devel
On 21/05/2024 16:37, Dominik Wombacher wrote: I have a case were upstream excludes the test suite from the export [1]. But I want the tests to be part of the package build to validate that everything is fine. So this requires a bit of local git clone and create an own archive file. I can't just

Re: Spec file using github repo - not tarball

2024-05-21 Thread Dominik Wombacher
> On 05/08/2024 10:38 PM CEST Tom Hughes via devel > wrote: > > > On 08/05/2024 21:36, Kenneth Goldman wrote: > > > Is it possible for a .spec file to clone a github.com repo rather than > > download a tarball? Can someone link to a working example? > > No, but github can give you a tar bal

Re: Spec file using github repo - not tarball

2024-05-09 Thread Florian Weimer
* Kenneth Goldman: > Is it possible for a .spec file to clone a github.com repo rather than > download a tarball? Can someone link to a working example? There is Packit, which I think can be configured in such a way that you can work with sources directly. The service pushes auto-generated com

Re: Spec file using github repo - not tarball

2024-05-09 Thread Leon Fauster via devel
Am 09.05.24 um 17:21 schrieb Nico Kadel-Garcia: On Wed, May 8, 2024 at 4:36 PM Kenneth Goldman wrote: Is it possible for a .spec file to clone a github.com repo rather than download a tarball? Can someone link to a working example? Git clones are bulky, with the entire history of a project

Re: Spec file using github repo - not tarball

2024-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2024 at 11:21:11AM -0400, Nico Kadel-Garcia wrote: > On Wed, May 8, 2024 at 4:36 PM Kenneth Goldman wrote: > > > > Is it possible for a .spec file to clone a github.com repo rather than > > download a tarball? Can someone link to a working example? > > Git clones are bulky, with

Re: Spec file using github repo - not tarball

2024-05-09 Thread Nico Kadel-Garcia
On Wed, May 8, 2024 at 4:36 PM Kenneth Goldman wrote: > > Is it possible for a .spec file to clone a github.com repo rather than > download a tarball? Can someone link to a working example? Git clones are bulky, with the entire history of a project rather than merely the state of the repo at the

Re: Spec file using github repo - not tarball

2024-05-08 Thread Michal Ambroz
discussions related to Fedora Datum: 9. 5. 2024 1:14:32 Předmět: Re: Spec file using github repo - not tarball "Hello,  yes it is possible to refer to the git commit. For example https://src.fedoraproject.org/rpms/yara/blob/rawhide/f/yara.spec (I mostly use stable releases, but time to time I have to s

Re: Spec file using github repo - not tarball

2024-05-08 Thread Michal Ambroz
Hello,  yes it is possible to refer to the git commit. For example https://src.fedoraproject.org/rpms/yara/blob/rawhide/f/yara.spec (I mostly use stable releases, but time to time I have to switch to a git snapshot during major version stabilization or when there is some public vulnerability anno

Re: Spec file using github repo - not tarball

2024-05-08 Thread Jonathan Steffan
Kenneth, You might be looking for the forge macros: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_using_forges_hosted_revision_control -- Jonathan Steffan -- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe

Re: Spec file using github repo - not tarball

2024-05-08 Thread Tom Hughes via devel
On 08/05/2024 21:36, Kenneth Goldman wrote: Is it possible for a .spec file to clone a github.com repo rather than download a tarball? Can someone link to a working example? No, but github can give you a tar ball for any ref you want so why would you need/want to? Tom -- Tom Hughes (t...@co