%bcond_without mpi
%bcond_with kabi
+# LUTF Turn off brp-python-precompile script as we don't want the python files
+# to be compiled on installation
+%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+
# By default both gss and gss keyring are disabled.
# gss keyring requires the gss core. If the builder
# request gss_keyring we must enable gss core even if
applications against the Lustre / LNet utilities libraries.
:> lustre-devel.files
-%if %{with lustre_modules}
-find . -type f -name '*.h' | grep uapi | sed 's/.*uapi\//usr\/include\//' >> lustre-devel.files
-%endif
%if %{with lustre_tests}
%package tests
%{_libdir}/liblustreapi.so
%endif
%{_includedir}/lustre
+%if %{with lustre_modules}
%{_includedir}/linux/lnet
%{_includedir}/linux/lustre
+%else
+%exclude %{_includedir}/linux/lnet
+%exclude %{_includedir}/linux/lustre
+%endif
%files -f lustre.files
%defattr(-,root,root)