Fix error accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_riscv tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.235338 accepted/tizen/unified/20231220.165102 accepted/tizen/unified/dev/20240620.010937 accepted/tizen/unified/riscv/20231226.211828 tizen_9.0_m2_release
authorTizenOpenSource <tizenopensrc@samsung.com>
Fri, 8 Dec 2023 03:38:53 +0000 (12:38 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Fri, 8 Dec 2023 03:38:53 +0000 (12:38 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/multipath-tools.spec

index 894c667..7149cab 100644 (file)
@@ -50,15 +50,17 @@ Authors:
 %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