feat(ci): Create Fedora RPMs using Packit#2170
Conversation
Signed-off-by: Benson Muite <benson_muite@emailplus.org>
|
What is the purpose of these rpms? It's for testing whether rpm building works? |
|
A user had indicated wish to use very latest version. Since distro policies prefer stability in packaged versions in releases, thought it would be useful to make these available here. OBS seems to have something similar: |
|
OBS has a feature where you install a webhook, and upon each commit (to master or where you define it) OBS will build a new rpm. This rpm is stored/retrievable from OBS. Is it the same with this solution here? With OBS we wouldn't have to add a spec file to the upstream project. This would be stored in the OBS package. It then automatically pulls the sources from upstream when a webhook arrives and creates a tarball from them. This has the advantage that the same spec file like for distribution packaging can be used without upstream having to keep them in sync. |
Very similar.
The built RPMs would be on Fedora infrastructure. There would be a message on each pull request if tests ran successfully. If you wish to have them on OBS, that is fine. The Fedora and Suse spec files have some minor differences, can keep them separate, or add some #ifdef statements. |
Is there another project where I can see how it looks/works?
Personally I don't care, I would just like to omit to have to keep the spec file up to date. |
|
Some examples:
It does seem possible to automate spec file updates using https://github.com/packit/specfile Am willing to explore OBS as well. |
Add a pipeline to enable builds using https://packit.dev/ on generation of Fedora RPMs on each commit,
To get it to work, someone with commit access will need to agree to make a Fedora account at:
https://accounts.fedoraproject.org/
and agree to Fedora Code of Conduct, then follow the steps at:
http://packit.dev/docs/guide#1-set-up-packit-integration
How to test the functionality