This is mostly regular package except recent addition of rust to used languages.
To build the rust-tools (
make rust-tools) one needs:
cargo vendorin the disrectory with sources
tar czf device-mapper-persistent-data-vendor-$VERSION.tar.gz ./vendor
fedpkg new-sources v$VERSION.tar.gz device-mapper-persistent-data-vendor-$VERSION.tar.gz
Some of the dependencies may be already packaged by Fedora. Can we instruct cargo vendor to include only those which are not provided by Fedora?
%cargo_install installs by defualt in /usr/bin but the package expects /usr/sbin. For now I run make install-rust-tools.