From e02dabbae8b378204fb9da30d91a209cf88e7bb4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 14 Jul 2020 21:06:19 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- python3.6.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python3.6.spec b/python3.6.spec index d9a3629..bca1ea8 100644 --- a/python3.6.spec +++ b/python3.6.spec @@ -738,7 +738,7 @@ BuildPython() { %{nil} # Invoke the build - make EXTRA_CFLAGS="$CFLAGS $MoreCFlags" %{?_smp_mflags} + %make_build EXTRA_CFLAGS="$CFLAGS $MoreCFlags" popd echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName @@ -814,11 +814,7 @@ InstallPython() { mkdir -p $ConfDir pushd $ConfDir - make \ - DESTDIR=%{buildroot} \ - INSTALL="install -p" \ - EXTRA_CFLAGS="$MoreCFlags" \ - install + %make_install EXTRA_CFLAGS="$MoreCFlags" popd