From eef392cb9d795a520a478b72d7915dcd3b83fba4 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jul 29 2018 22:24:32 +0000 Subject: Switch to %py2_build Signed-off-by: Igor Gnatenko --- diff --git a/python-uinput.spec b/python-uinput.spec index 551ec24..07ee8a8 100644 --- a/python-uinput.spec +++ b/python-uinput.spec @@ -68,7 +68,7 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +%py2_build %if 0%{?with_python3} pushd %{py3dir}