Best (cleanest?) conditional formation in a spec file for distro version and arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My package freecad has a missing optional dependency on RHEL 6, ppc64 ONLY so for that build I need to drop a "Requires:"

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?

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:

%if ! 0%{?rhel} <= 6 && ! %{_arch} ppc64
Requires:       python-pivy
%endif

I guess I could layer it but it get's ugly and repetitive:

%if ! 0%{?rhel} <= 6
    Requires:       python-pivy
%else
    %ifnarch ppc64
Requires:       python-pivy
    %endif
%endif

Ideas?
Thanks,
Richard

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux