-CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
-if [ "$SMP" != "" ]; then
- (make "MAKE=make -k -j $SMP"; exit 0)
- make
-else
- make
+CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir}
+if [ -x /usr/bin/getconf ] ; then
+ NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
+ if [ $NCPU -eq 0 ] ; then
+ NCPU=1
+ fi
+else
+ NCPU=1