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

Richard Shaw hobbes1069 at gmail.com
Wed Jun 18 13:36:26 UTC 2014


On Wed, Jun 18, 2014 at 8:15 AM, Paul Howarth <paul at city-fan.org> wrote:

> Does this work?
>
> %if 0%{?fedora} || 0%{?rhel} > 6 || "%{_arch}" != "ppc64"
> Requires:       python-pivy
> %endif
>

Hmm... I think it would block the requires on epel7 as well though which
works fine (newer gcc)

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140618/7d58c135/attachment.html>


More information about the devel mailing list