AC_ARG_ENABLE(extN, [ --enable-extN use extN instead of ext3 for lustre backend])
AM_CONDITIONAL(EXTN, test x$enable_extN = xyes)
+# specify wether to build doc or not
+AC_ARG_ENABLE(doc, [ --disable-doc skip creation of pdf documentation],
+ [
+ if test x$enable_doc = xyes ; then
+ ENABLE_DOC=1
+ else
+ ENABLE_DOC=0
+ fi
+ ],
+ [ ENABLE_DOC=1 ])
+AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
+AC_SUBST(ENABLE_DOC)
+
# the pinger is temporary, until we have the recovery node in place
AC_ARG_ENABLE(pinger, [ --enable-pinger recovery pinger support])
if test x$enable_pinger = xyes ; then
%define version HEAD
%define kversion @LINUXRELEASE@
%define linuxdir @LINUX@
+%define enable_doc @ENABLE_DOC@
Summary: Lustre Lite File System
Name: lustre-lite
%prep
%setup -qn lustre-%{version}
#%setup -c -n lustre-%{version}-lib
+%if %{enable_doc}
+ %define disable_doc
+%else
+ %define disable_doc --disable-doc
+%endif
%build
rm -rf $RPM_BUILD_ROOT
# Set an explicit path to our Linux tree, if we can.
cd $RPM_BUILD_DIR/lustre-%{version}
-./configure --with-linux='%{linuxdir}'
+./configure --with-linux='%{linuxdir}' %{disable_doc}
make
%install
linuxdir=%{linuxdir}
test -d $linuxdir && conf_flag=--with-linux=$linuxdir
make clean
- ./configure --enable-rtscts-myrinet $conf_flag
+ ./configure --enable-rtscts-myrinet $conf_flag %{disable_doc}
make
cp linux/rtscts/rtscts.o $RPM_BUILD_ROOT/lib/modules/%{kversion}/kernel/net/lustre/rtscts_myrinet.o
cp user/myrinet_utils/mcpload $RPM_BUILD_ROOT/usr/sbin/mcpload
%attr(-, root, root) /usr/sbin/lmc
%attr(-, root, root) /usr/sbin/lctl
%attr(-, root, root) /usr/sbin/lconf
+%attr(-, root, root) /usr/sbin/lrun
+%attr(-, root, root) /usr/sbin/llmount
%attr(-, root, root) /usr/sbin/lwizard
%attr(-, root, root) /usr/sbin/wiretest
%attr(-, root, root) /usr/sbin/lactive
%attr(-, root, root) /usr/bin/mcreate
%attr(-, root, root) /usr/bin/munlink
%attr(-, root, root) /usr/bin/mkdirmany
+%attr(-, root, root) /usr/bin/iopentest1
+%attr(-, root, root) /usr/bin/iopentest2
%attr(-, root, root) /usr/sbin/llstat.pl
%attr(-, root, root) /usr/sbin/llobdstat.pl
%attr(-, root, root) /usr/sbin/load_ldap.sh
%files -n lustre-doc
%attr(-, root, root) %doc COPYING FDL
+%if %{enable_doc}
%attr(-, root, root) %doc doc/lustre.pdf doc/lustre-HOWTO.txt
+%endif
#%attr(-, root, root) %doc tests/client-echo.cfg tests/client-mount.cfg
#%attr(-, root, root) %doc tests/client-mount2.cfg
#%attr(-, root, root) %doc tests/elan-client.cfg tests/elan-server.cfg