<div dir="ltr">My package freecad has a missing optional dependency on RHEL 6, ppc64 ONLY so for that build I need to drop a "Requires:"<div><br></div><div>The dependency doesn't build on ppc64 w/ older gcc and is not easily fixable so I decided just to drop the optional dependency for that build and arch, but how to accomplish this?</div>
<div><br></div><div>I started building the NOT conditional version but realized it won't work as intended even if it worked at all since both NOT conditions would have to be true:</div><div><br></div><div>%if ! 0%{?rhel} <= 6 && ! %{_arch} ppc64<br>
</div><div><div>Requires: python-pivy</div><div>%endif</div></div><div><br></div><div>I guess I could layer it but it get's ugly and repetitive:</div><div><br></div><div>%if ! 0%{?rhel} <= 6<br></div><div> Requires: python-pivy<br>
</div><div>%else</div><div> %ifnarch ppc64</div><div>Requires: python-pivy<br></div><div> %endif</div><div>%endif</div><div><br></div><div>Ideas?<br>Thanks,</div><div>Richard</div><div><br></div></div>