%bcond_without lustre_iokit
%bcond_without lustre_modules
%bcond_with snmp
+%bcond_without gss_keyring
%bcond_without manpages
%bcond_without shared
%bcond_without static
%{!?with_servers:--disable-server} \
%{!?with_zfs:--without-zfs} \
%{!?with_snmp:--disable-snmp} \
+ %{!?with_gss_keyring:--disable-gss-keyring} \
%{!?with_manpages:--disable-manpages} \
%{!?with_systemd:--with-systemdsystemunitdir=no} \
%{?with_systemd:--with-systemdsystemunitdir=%{_unitdir}} \
%if %{_vendor}=="redhat"
# The following scripts are Red Hat specific
%if %{with servers}
+echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
+%if %{with gss_keyring}
+echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
echo '%{_sysconfdir}/sysconfig/lsvcgss' >>lustre.files
-echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
+%endif
%endif
%if %{without systemd}
echo '%{_sysconfdir}/init.d/lnet' >>lustre.files
%endif
-
-echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
%endif
%if %{with servers}
find $RPM_BUILD_ROOT/lib/modules -name \*.ko -type f -exec chmod u+x {} \;
%endif
+rm -f $RPM_BUILD_ROOT%{_libdir}/liblustreapi.la
+
%if %{with lustre_tests}
:> lustre-tests.files
echo '%{_libdir}/lustre/tests/*' >>lustre-tests.files
%{_bindir}/lfs
%{_bindir}/lfs_migrate
/sbin/mount.lustre
+%if %{with static}
%{_libdir}/liblustreapi.a
-%{_libdir}/liblustreapi.so
+%endif
+%if %{with shared}
+%{_libdir}/liblustreapi.so*
+%endif
%if %{with manpages}
%{_mandir}/man?/*
%endif
%{_includedir}/linux/lustre
%endif
%{_sysconfdir}/udev/rules.d/99-lustre.rules
+%if %{with zfs}
%config(noreplace) %{_sysconfdir}/ldev.conf
+%endif
%config(noreplace) %{_sysconfdir}/lnet.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/ko2iblnd.conf
%if %{with lustre_utils}
%files osd-zfs-mount
%defattr(-,root,root)
%{_libdir}/@PACKAGE@/mount_osd_zfs.so
+%{_sysconfdir}/zfs/zed.d/*
%endif
%endif
%endif