[opensuse-buildservice] Extracting spec file from a git repo on OBS
Hello, I would like to maintain my spec file in git repo like I do for the rest of the code with "obs_scm" in "_service". It would allow to enforce the same change control process on spec files than on the rest of the code. I know that Tizen in it's time, had done a hack on their own OBS, but I wonder if the same facility would be now available on the public OpenSUSE OBS. A pointer to a solution would be very appreciated. Regards -- Dominig ar Foll Senior Software Architect Intel Open Source Technology Centre -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Sep 3, 2019 at 1:48 PM Dominig ar Foll (Intel Open Source) <dominig.arfoll@fridu.net> wrote:
Hello,
I would like to maintain my spec file in git repo like I do for the rest of the code with "obs_scm" in "_service". It would allow to enforce the same change control process on spec files than on the rest of the code.
I know that Tizen in it's time, had done a hack on their own OBS, but I wonder if the same facility would be now available on the public OpenSUSE OBS. A pointer to a solution would be very appreciated.
The gbp-style hack that the Tizen and Mer OBS systems use do not exist on the openSUSE one, at this time. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 03.09.19 um 19:48 schrieb Dominig ar Foll (Intel Open Source):
Hello,
I would like to maintain my spec file in git repo like I do for the rest of the code with "obs_scm" in "_service". It would allow to enforce the same change control process on spec files than on the rest of the code.
I know that Tizen in it's time, had done a hack on their own OBS, but I wonder if the same facility would be now available on the public OpenSUSE OBS. A pointer to a solution would be very appreciated.
You can use the "extract_file" service in combination with "obs_scm". But you need the latest version of extract_file, which I coincidentally submitted last week as version "0.4". I'm using this in a private OBS instance for exactly your use case. Alternatively, you can use tar_scm instead of obs_scm and then extract_file on the generated tarball. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi,
On Tuesday, 03 September, 2019 at 11:18 PM, "Dominig ar Foll (Intel Open Source)" <dominig.arfoll@fridu.net> wrote: Hello,
I would like to maintain my spec file in git repo like I do for the rest of the code with "obs_scm" in "_service". It would allow to enforce the same change control process on spec files than on the rest of the code.
I know that Tizen in it's time, had done a hack on their own OBS, but I wonder if the same facility would be now available on the public OpenSUSE OBS. A pointer to a solution would be very appreciated.
You can extract files directly using "obs_scm". You can find an example on how "obs-server" package is built in OBS: https://build.opensuse.org/package/view_file/OBS:Server:2.10/obs-server/_ser... Hope this helps! Regards, Srinidhi. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Thanks, I will have a look at reusing the same strategy. Would be nic eto get it documented somewhere as I guess it's a quite common problem. Regards Dominig On 04/09/2019 07:17, Srinidhi B wrote:
Hi,
On Tuesday, 03 September, 2019 at 11:18 PM, "Dominig ar Foll (Intel Open Source)" <dominig.arfoll@fridu.net> wrote: Hello,
I would like to maintain my spec file in git repo like I do for the rest of the code with "obs_scm" in "_service". It would allow to enforce the same change control process on spec files than on the rest of the code.
I know that Tizen in it's time, had done a hack on their own OBS, but I wonder if the same facility would be now available on the public OpenSUSE OBS. A pointer to a solution would be very appreciated.
You can extract files directly using "obs_scm". You can find an example on how "obs-server" package is built in OBS:
https://build.opensuse.org/package/view_file/OBS:Server:2.10/obs-server/_ser...
Hope this helps!
Regards, Srinidhi.
-- Dominig ar Foll Senior Software Architect Intel Open Source Technology Centre -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 04.09.2019 11:34, schrieb Dominig ar Foll (Intel Open Source):
Thanks,
I will have a look at reusing the same strategy. Would be nic eto get it documented somewhere as I guess it's a quite common problem.
Regards
Dominig
Do you think of something like https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_serv... and https://github.com/openSUSE/obs-service-tar_scm ? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 04/09/2019 16:48, Markus Kolb wrote:
Am 04.09.2019 11:34, schrieb Dominig ar Foll (Intel Open Source):
Would be nice to get it documented somewhere as I guess it's a quite common problem.
Do you think of something like https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_serv...
and https://github.com/openSUSE/obs-service-tar_scm ? That page is very generic and it's not easy after reading it to create your own _service which : - points to a git repo - extract source - extract spec file.
One or two well documented working example would help a lot in that page. Certainly the location is the correct one, as this is where you land when you search internet to solve that issue. -- Dominig ar Foll Senior Software Architect Intel Open Source Technology Centre -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (5)
-
Dominig ar Foll (Intel Open Source)
-
Markus Kolb
-
Neal Gompa
-
Srinidhi B
-
Stefan Seyfried