On 27.11.2017 11:38, Richard W.M. Jones wrote:
https://bugzilla.redhat.com/show_bug.cgi?id=1404631#c4
In this commit:
https://src.fedoraproject.org/rpms/nbdkit/c/f38f61c339f925928e8cd6e520581968105ada96
I accidentally disabled Python 3 support on Fedora.
Is there a better way to write this? What I really need is a pair of
macros "Python 2 is supported" & "Python 3 is supported" which I can
use to conditionalize the spec file. Maybe checking if %{__python2}
and %{__python3} are non-empty?
In case you are still interested:
%{__python3} is defined on Fedora, but not EPEL. However, python3 is
available in EPEL. If you only consider Fedora vs. RHEL (without EPEL),
than relying on %{__python3} would work.
If you need Python 3 on EPEL, check the definition of
%python3_pkgversion (defined in Fedora and EPEL, but not in RHEL).
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx