%bcond_without lustre_iokit
%bcond_without lustre_modules
%bcond_with lnet_dlc
+%bcond_without manpages
%if %{without servers}
# --without servers overrides --with {ldiskfs|zfs}
Obsoletes: lustre-lite, lustre-lite-utils, lustre-ldap nfs-utils-lustre
Provides: lustre-lite = %{version}, lustre-lite-utils = %{version}
Requires: %{name}-modules = %{version}
-BuildRequires: libtool python-docutils
+BuildRequires: libtool
+%if %{with manpages}
+BuildRequires: python-docutils
+%endif
%if %{with servers}
Requires: lustre-osd
Requires: lustre-osd-mount
%{!?with_servers:--disable-server} \
%{!?with_zfs:--without-zfs} \
%{!?with_lnet_dlc:--disable-dlc} \
+ %{!?with_manpages:--disable-manpages} \
--with-release=%{release} \
--with-linux=%{kdir} \
--with-linux-obj=%{kobjdir} \
%{_libdir}/libcfsutil.a
%{_libdir}/liblustreapi.a
%{_libdir}/liblustreapi.so
+%if %{with manpages}
%{_mandir}/man?/*
+%endif
%{_includedir}/lustre
%{_includedir}/libcfs
%endif