diff --git a/python-mysql.spec b/python-mysql.spec index 946db20..b57a873 100644 --- a/python-mysql.spec +++ b/python-mysql.spec @@ -80,14 +80,16 @@ Python3 interface to MySQL, built for the CPython debug runtime %autosetup -n mysqlclient-%{version} -p1 %build +%{set_build_flags} + %py2_build %if %{with python2_debug} -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{__python2}-debug setup.py build +%{__python2}-debug setup.py build %endif %py3_build %if %{with python3_debug} -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{__python3}-debug setup.py build +%{__python3}-debug setup.py build %endif