From 2e1ddce93686198acefad6e1c3e1d996bd7c0f67 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Wed, 18 Jul 2018 22:39:08 +0200 Subject: [PATCH] Build with python3 by default Since this [1] change, there's no /usr/bin/python anymore [1] https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package --- policycoreutils.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policycoreutils.spec b/policycoreutils.spec index 6cf1462..f95b5d3 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -98,6 +98,8 @@ tar -xvf %{SOURCE14} -C selinux-python-%{version}/sepolicy/ %build %set_build_flags +export PYTHON=%{__python3} + make -C policycoreutils-%{version} LSPP_PRIV=y SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" SEMODULE_PATH="/usr/sbin" LIBSEPOLA="%{_libdir}/libsepol.a" all make -C selinux-python-%{version} SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all make -C selinux-gui-%{version} SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all