https://bugzilla.redhat.com/show_bug.cgi?id=1117906



--- Comment #2 from Erik Johnson <[email protected]> ---
On which branches do you intend this to be built?

The "with_python3" at the top will keep this from building for EPEL < 7. Also,
if you want to build on EPEL 6 and earlier, then you'd need to define some
additional python macros
(https://fedoraproject.org/wiki/Packaging:Python#Macros). For instance, I use
following to allow the package to build properly on all current Fedora and EPEL
branches:




%if 0%{?fedora} > 12 || 0%{?rhel} > 6
%global with_python3 1
%else             

%if 0%{?rhel} == 5
%global with_python26 1
%global pybasever 2.6
%endif

%{!?__python2: %global __python2 /usr/bin/python%{?pybasever}}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to