https://bugzilla.redhat.com/show_bug.cgi?id=1991164
--- Comment #3 from Fabio Valentini decathorpe@gmail.com --- The changes that are required to make this work well as a distro package don't look too bad:
1) Patch the build.rs file according to these rules: - remove all blocks that are gated behind #[cfg(not(feature = "use-pkg-config"))] - remove #[cfg(feature = "use-pkg-config)] attributes to make those blocks compile unconditionally
2) Do "rm -r libsodium" between %prep and %cargo_prep.
This should ensure that the crate always dynamically links against the system copy of libsodium, whether during its own build or while it's being compiled as dependency for another crate.