Fix %cargo_install failure

cargo_install has problem on detecting library when running in workspace
due to bug https://pagure.io/fedora-rust/cargo2rpm/issue/5
Removing the workspace Cargo.toml will workaround this problem.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2023-03-12 14:02:26 +08:00
parent ff1f97d80d
commit 8def2e1e1b

View File

@ -89,6 +89,10 @@ pushd src/python
popd
%install
# cargo_install has problem on detecting library when running in workspace
# due to bug https://pagure.io/fedora-rust/cargo2rpm/issue/5
# Removing the workspace Cargo.toml will workaround this problem.
rm Cargo.toml
pushd src/lib
%cargo_install
popd