Set the install root in .cargo/config
This commit is contained in:
parent
b4e2503829
commit
a04e95bc4f
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,9 @@ rustc = "%{__rustc}"\
|
||||||
rustdoc = "%{__rustdoc}"\
|
rustdoc = "%{__rustdoc}"\
|
||||||
rustflags = %{__global_rustflags_toml}\
|
rustflags = %{__global_rustflags_toml}\
|
||||||
\
|
\
|
||||||
|
[install]\
|
||||||
|
root = "%{buildroot}%{_prefix}"\
|
||||||
|
\
|
||||||
[term]\
|
[term]\
|
||||||
verbose = true\
|
verbose = true\
|
||||||
\
|
\
|
||||||
|
@ -81,7 +84,6 @@ if %__cargo_is_bin; then \
|
||||||
%{shrink:%{__cargo} install \
|
%{shrink:%{__cargo} install \
|
||||||
%{__cargo_common_opts} \
|
%{__cargo_common_opts} \
|
||||||
--path . \
|
--path . \
|
||||||
--root %{buildroot}%{_prefix} \
|
|
||||||
%{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
|
%{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||||||
%* \
|
%* \
|
||||||
}\
|
}\
|
||||||
|
|
Loading…
Reference in a new issue