case $arg in
--with-release=* ) ;;
--with-kmp-moddir=* ) ;;
- --enable-tests | --disable-tests ) ;;
--with-linux=* | --with-linux-obj=* ) ;;
+ --enable-tests | --disable-tests ) ;;
+ --enable-modules | --disable-modules ) ;;
* ) CONFIGURE_ARGS="$CONFIGURE_ARGS '$arg'" ;;
esac
done
RPMBINARGS="$RPMBINARGS --define \"cross_requires intel-mic-gpl\""
fi
fi
+ if test x$enable_modules != xyes ; then
+ RPMBINARGS="$RPMBINARGS --without lustre_modules"
+ fi
if test x$enable_tests != xyes ; then
RPMBINARGS="$RPMBINARGS --without lustre_tests"
- RPMSRCARGS="$RPMSRCARGS --without lustre_tests";
+ RPMSRCARGS="$RPMSRCARGS --without lustre_tests"
fi
if test x$enable_server != xyes ; then
RPMBINARGS="$RPMBINARGS --without servers"
%endif # with lustre_modules
%if %{with lustre_tests}
-%post tests
%if %{defined rpm_post_base}
+%post tests
if [ -x %{rpm_post_base}-tests.sh ]; then
%{rpm_post_base}-tests.sh %{cross_path} create
fi
%{rpm_post_base}-tests.sh %{cross_path} remove
fi
%else
+%if %{with lustre_modules}
+%post tests
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
else
fi
%endif
%endif
+%endif
%clean
rm -rf $RPM_BUILD_ROOT