[packages/fzf] do not rely on uname -m to determine target arch; add more arm variants
Elan Ruusamäe
glen at pld-linux.org
Tue Dec 22 09:02:23 CET 2020
On 22.12.2020 00:34, atler wrote:
> +%{__make} \
> +%ifarch armv5tl armv5tel arm5tejl
> + UNAME_M=armv5l \
> +%else
> +%ifarch armv6l armv6hl
> + UNAME_M=armv6l \
> +%else
> +%ifarch armv7l armv7hl armv7hnl
> + UNAME_M=armv6l \
> +%else
> +%ifarch armv8l armv8hl armv8hnl armv8hcnl
> + UNAME_M=armv8l \
> +%else
> + UNAME_M=%{_target_cpu} \
> +%endif
> +%endif
> +%endif
> +%endif
you can simplify these by removing the some of the "else"-s.
for example "ifarch armv5tl" is matched, it can't be matched with
"ifarch armv6l" so 'else' for 'ifarch armv5t' is redundant.
More information about the pld-devel-en
mailing list