macros: remove support for target-dir
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
c9ce952e26
commit
80237720ae
1 changed files with 15 additions and 16 deletions
|
@ -35,29 +35,28 @@ EOF\
|
|||
%endif \
|
||||
)
|
||||
|
||||
%__cargo_parse_opts(t:naf:) %{shrink:\
|
||||
%__cargo_parse_opts(naf:) %{shrink:\
|
||||
%{-f:%{-a:%{error:Can't specify both -f(%{-f*}) and -a}}} \
|
||||
%{-t:--target-dir %{-t*}} \
|
||||
%{-n:--no-default-features} \
|
||||
%{-a:--all-features} \
|
||||
%{-f:--features %{-f*}} \
|
||||
%{nil}
|
||||
}
|
||||
|
||||
%cargo_build(t:naf:) %{shrink:\
|
||||
%cargo_build(naf:) %{shrink:\
|
||||
%{__cargo} build \
|
||||
%{__cargo_common_opts} \
|
||||
--release \
|
||||
%{__cargo_parse_opts %{-t:-t%{-t*}} %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||||
%{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||||
%* \
|
||||
}
|
||||
|
||||
%cargo_test(t:naf:) %{shrink:\
|
||||
%cargo_test(naf:) %{shrink:\
|
||||
%{__cargo} test \
|
||||
%{__cargo_common_opts} \
|
||||
--release \
|
||||
--no-fail-fast \
|
||||
%{__cargo_parse_opts %{-t:-t%{-t*}} %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||||
%{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
|
||||
%* \
|
||||
}
|
||||
|
||||
|
@ -75,7 +74,7 @@ if %__cargo_is_lib; then \
|
|||
echo '{"files":{},"package":""}' > $REG_DIR/.cargo-checksum.json \
|
||||
fi \
|
||||
if %__cargo_is_bin; then \
|
||||
%{shrink:%{-t:CARGO_TARGET_DIR=%{-t*}} %{__cargo} install \
|
||||
%{shrink:%{__cargo} install \
|
||||
%{__cargo_common_opts} \
|
||||
--path . \
|
||||
--root %{buildroot}%{_prefix} \
|
||||
|
|
Loading…
Reference in a new issue