#2 RFE: use "system-deps" metadata for generating Requires and BuildRequires
Opened 2 years ago by decathorpe. Modified 2 years ago

Crates that use system-deps (and similar crates) have metadata for dependencies on system libraries, i.e. which feature of the crate requires which version of the system library.

For example, the gstreamer-sys crate: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/blob/0.20.0/gstreamer/sys/Cargo.toml#L53-73

It should be fairly straightforward to support this metadata format and automatically generate the appropriate Requires and BuildRequires. Doing so would make it unnecessary to manually keep these requirements up-to-date in rust2rpm.conf files.


Is that guaranteed to be pkgconfig names?

Yes. Only pkgconfig is supported as a backend at this point:
https://crates.io/crates/system-deps

The crate is almost exclusively used by GTK and GStreamer bindings, so that makes sense ...

Log in to comment on this ticket.

Metadata