macros: don't define %cargo_build/test as functions

There are only problems from this.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-02-18 02:25:21 +01:00
parent 69c7ba1d28
commit ee68fab15b

View file

@ -26,9 +26,9 @@ registry = "https://crates.io"\
replace-with = "local-registry"\ replace-with = "local-registry"\
EOF} EOF}
%cargo_build() %{expand:%__cargo build %{__cargo_common_opts} %{?1}} %cargo_build %__cargo build %{__cargo_common_opts}
%cargo_test() %{expand:%__cargo test %{__cargo_common_opts} %{?1}} %cargo_test %__cargo test %{__cargo_common_opts}
%cargo_install %{expand:(\ %cargo_install %{expand:(\
set -eu \ set -eu \