Re: [opensuse-packaging] Conditional BuildRequire
Ferdinand Thiessen
I tried %_lib == "lib64" (does not work), but with:
`%if "%{_lib}" == "lib64"` works fine in general situations, I don't sure about BuildRequires section. However your way seems to be more actual for your purpose.
%if 0%{?suse_version} >= 1315 %ifarch arm x86_64 BuildRequires: lldb-devel %endif %endif
It works!
Regards, Ferdinand
-- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
"Dmitriy Perlow"
Ferdinand Thiessen
Tue, 06 Oct 2015 02:11:37 +0300: I tried %_lib == "lib64" (does not work), but with:
`%if "%{_lib}" == "lib64"` works fine in general situations,
No, it doesn't fit here. The value of _lib is independent of the isa. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tuesday 2015-10-06 05:47, Dmitriy Perlow wrote:
Ferdinand Thiessen
Tue, 06 Oct 2015 02:11:37 +0300: I tried %_lib == "lib64" (does not work), but with:
`%if "%{_lib}" == "lib64"` works fine in general situations, I don't sure about BuildRequires section. However your way seems to be more actual for your purpose.
%_lib is not defined at the BS level either. Again, that is something only rpm knows about (by way of ~/.rpmrc / ~/.rpmmacros fed into the build root). -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Dmitriy Perlow
-
Jan Engelhardt