Whamcloud - gitweb
Need to replace the nfs-utils-lustre that was installed with CMD2.
[fs/lustre-release.git] / build / lustre.spec.in
index 3345eac..6161778 100644 (file)
@@ -10,8 +10,8 @@ License: GPL
 Group: Utilities/System
 Source: lustre-%{version}.tar.gz
 URL: http://clusterfs.com/
-BuildRoot: /var/tmp/lustre-%{version}-root
-Obsoletes: lustre-lite, lustre-lite-utils, lustre-ldap
+BuildRoot: %{_tmppath}/lustre-%{version}-root
+Obsoletes: lustre-lite, lustre-lite-utils, lustre-ldap nfs-utils-lustre
 Provides: lustre-lite = %{version}, lustre-lite-utils = %{version}
 
 %description
@@ -125,6 +125,10 @@ if [ -f $RPM_BUILD_ROOT%{_libdir}/liblustre.so ] ; then
   echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>lustre.files
 fi
 
+if [ -f $RPM_BUILD_DIR/lustre-%{version}/lustre/utils/libiam.c ] ; then
+  echo '%attr(-, root, root) %{_libdir}/libiam.a' >>lustre.files
+fi
+
 if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/snmp ] ; then
   echo '%attr(-, root, root) %{_libdir}/lustre/snmp' >>lustre.files
   echo '%attr(-, root, root) %{_datadir}/lustre/snmp/mibs' >>lustre.files