%ifarch note
Tom Callaway
tcallawa at redhat.com
Thu Oct 10 02:12:08 UTC 2013
Since I hit this, I'd imagine other people might.
If your package has:
BuildArch: noarch
It will set %{_target_cpu} to "noarch".
If you also use %ifarch in that spec file, you might be expecting it to
match %{_arch} (the architecture of the build server). It does not. It
matches %{_target_cpu}.
If you need to conditionalize on the value of %{_arch} in such a spec
file, you need to do it explicitly:
%if %{_arch} == x86_64 || %{_arch} == i686
Hope that helps other folks,
~tom
==
Fedora Project
More information about the devel
mailing list