Re: How to package a Git repository

2016-09-09 Thread William Moreno
2016-09-09 3:25 GMT-06:00, Florian Weimer : > I would like to build (S)RPMs directly from a Git repository (which > contains the .spec file in the top-level directory). This is for a > CI-style project, with a quick release cycle. > Tito can help you:

Re: How to package a Git repository

2016-09-09 Thread Ben Rosser
On Fri, Sep 9, 2016 at 5:25 AM, Florian Weimer wrote: > I would like to build (S)RPMs directly from a Git repository (which > contains the .spec file in the top-level directory). This is for a > CI-style project, with a quick release cycle. > > I have a Lua script fragment

Re: How to package a Git repository

2016-09-09 Thread John Florian
On Fri, 2016-09-09 at 16:54 +0200, Igor Gnatenko wrote: Problem with tito as it doesn't really do proper archive for build/release and doesn't work properly in many cases: 1. Version is specified in spec -> all builds will be unordered. Example: Version: 2.0.0 -> 2.0.0-1.git.tree-ish I don't have

Re: How to package a Git repository

2016-09-09 Thread Igor Gnatenko
Problem with tito as it doesn't really do proper archive for build/release and doesn't work properly in many cases: 1. Version is specified in spec -> all builds will be unordered. Example: Version: 2.0.0 -> 2.0.0-1.git.tree-ish 2. Replaces archive. Source: https://.../%{name}-%{version}.tar.gz is

Re: How to package a Git repository

2016-09-09 Thread John Florian
On Fri, 2016-09-09 at 11:25 +0200, Florian Weimer wrote: I would like to build (S)RPMs directly from a Git repository (which contains the .spec file in the top-level directory). This is for a CI-style project, with a quick release cycle. I have a Lua script fragment which generates a proper

Re: How to package a Git repository

2016-09-09 Thread Igor Gnatenko
In DNF CI we use rpm-gitoverlay[0], but due to RPM we have to prepare archive from git, replace path for %(auto)setup, and some other magic, so you can't use it as is in Fedora. But you can easily use it with COPR as you don't have to follow all guidelines. When I deal with one project I just do:

How to package a Git repository

2016-09-09 Thread Florian Weimer
I would like to build (S)RPMs directly from a Git repository (which contains the .spec file in the top-level directory). This is for a CI-style project, with a quick release cycle. I have a Lua script fragment which generates a proper SRPM with the mock-scm target in COPR, and which is also