Re: RPM packaging help

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

 



On Thu, 2023-08-10 at 09:43 -0400, Andrew Heath wrote:
> All,
> My name is Andrew, and I have been working with the Fedora Infra team and
> we are trying to create some RPMs for some projects that we are working on,
> one of the RPMs we need to create is for the Ansible receptor[1
> <https://github.com/ansible/receptor>]. I have a copy of the spec file from
> downstream Red Hat that gives some guidance but where its a mix of python
> and go-lang I was wondering if I could have some guidance from more
> experienced packers on how to package up the application correctly so that
> we can get the package in use for the Fedora Infra.

Well, it seems like it's mostly a Go library (or some Go libraries),
with a Python CLI and associated Python library.

I would think you can package it mostly following the Go guidelines,
but also at appropriate points in the spec drop into the receptorctl
subdirectory and use the modern Python macros - see the Python sample
spec,
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file
- to install the Python bits (I think the %pyproject stuff should work
for this as it has what looks like a valid pyproject.toml ).

I'd then put the receptorctl bits - the Python lib and the CLI command
- into a subpackage that requires the main package(s), since it seems
to be essentially an optional bit...
-- 
Adam Williamson (he/him/his)
Fedora QA
Fedora Chat: @adamwill:fedora.im | Mastodon: @adamw@xxxxxxxxxxxxx
https://www.happyassassin.net



_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [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