macros: switch to /usr/share/cargo/registry
We should not be using /usr/src because that one is supposed to be used for "Source code may be placed in this subdirectory, only for reference purposes". Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
b9ceb10ac2
commit
cce3d7bc92
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
%__cargo_common_opts --release %{?_smp_mflags}
|
%__cargo_common_opts --release %{?_smp_mflags}
|
||||||
%__cargo_inspector %{_bindir}/cargo-inspector
|
%__cargo_inspector %{_bindir}/cargo-inspector
|
||||||
|
|
||||||
%cargo_registry %{_usrsrc}/rust
|
%cargo_registry %{_datadir}/cargo/registry
|
||||||
|
|
||||||
%__cargo_is_lib() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F "$(printf 'lib\\\nproc-macro')"
|
%__cargo_is_lib() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F "$(printf 'lib\\\nproc-macro')"
|
||||||
%__cargo_is_bin() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F bin
|
%__cargo_is_bin() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F bin
|
||||||
|
|
Loading…
Reference in a new issue