%setup -q -n multipath-tools-%{version}
cp %{SOURCE1001} .
%build
+%{__make} -f create-config.mk
+
cd kpartx
export CFLAGS=$(echo ${CFLAGS} | sed -E "s/-Wp\,-D_FORTIFY_SOURCE=[0-9]//g")
export CXXFLAGS=$(echo ${CXXFLAGS} | sed -E "s/-Wp\,-D_FORTIFY_SOURCE=[0-9]//g")
export RPM_OPT_FLAGS=$(echo ${RPM_OPT_FLAGS} | sed -E "s/-Wp\,-D_FORTIFY_SOURCE=[0-9]//g")
-make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%_libdir
+%{__make} CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%_libdir
%install
pushd kpartx
-make DESTDIR=$RPM_BUILD_ROOT LIB=%_libdir install
+%{__make} DESTDIR=$RPM_BUILD_ROOT LIB=%_libdir install
popd