On Thu, Mar 21, 2024 at 9:25 AM Richard W.M. Jones <rjo...@redhat.com> wrote:
>
> On Thu, Mar 21, 2024 at 11:04:13AM +0800, Ming Lei wrote:
> > Hello Richard and Guys,
> >
> > I plan to package rublk to Fedora, and it is one Rust project.
>
> Hi, I'm on holiday at the moment, but please do look at how we
> packaged libblkio in Fedora:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=2124697
>
> > Can you provide a little guide about how to do that? such as,
> > where can I find the guide doc? And is it github or crates which
> > should be used as source for Fedora packaging?
>
> Everything has to start with a source tarball, so normally github
> would be the best source.
>
> > [1] https://github.com/ublk-org/rublk
> > [2] https://crates.io/crates/rublk

If the project is a single "crate" (i.e. one compilation unit) and
will continue to be published on crates.io, I would recommend using
the sources published there instead of GitHub sources. Using files
distributed via crates.io makes packaging a bit easier and avoids some
work that is necessary for non-crate Rust packages.

I would recommend reading the Rust packaging guidelines for this case:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Rust/#_rust_crates
You should get a working spec file by just running "rust2rpm -s rublk".

Fabio
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to