macros: search for whole string
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
c9e7cf51e4
commit
4b31b3e594
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
%cargo_registry %{_datadir}/cargo/registry
|
||||
|
||||
%__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_lib() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F -x "$(printf 'lib\\\nproc-macro')"
|
||||
%__cargo_is_bin() %__cargo_inspector --target-kinds Cargo.toml | grep -q -F -x bin
|
||||
|
||||
%cargo_prep (\
|
||||
set -eu \
|
||||
|
|
Loading…
Reference in a new issue