Re: Look for help: how to package Rust project

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

 



On Thu, Mar 21, 2024 at 9:25 AM Richard W.M. Jones <rjones@xxxxxxxxxx> 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@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