cd $RPM_BUILD_DIR/lustre-%{version}
./configure --with-linux='%{linuxdir}' --with-portals='%{portalsdir}' --with-portalslib='%{portalslibdir}'
make
+
+%ifarch i386
cd $RPM_BUILD_DIR/lustre-%{version}-lib/lustre-%{version}
./configure --with-lib --with-portals='%{portalsdir}' --with-portalslib='%{portalslibdir}'
make
+%endif
%install
cd $RPM_BUILD_DIR/lustre-%{version}
make install prefix=$RPM_BUILD_ROOT
+%ifarch i386
cd $RPM_BUILD_DIR/lustre-%{version}-lib/lustre-%{version}
make install prefix=$RPM_BUILD_ROOT
+%endif
# Create the pristine source directory.
%files -n lustre-source
%attr(-, root, root) /usr/src/lustre-%{version}
+%ifarch i386
%files -n liblustre
%attr(-, root, root) /lib/lustre
%attr(-, root, root) /lib/lustre/liblov.a
%attr(-, root, root) /usr/sbin/lconf
%attr(-, root, root) /usr/sbin/lmc
%attr(-, root, root) /usr/sbin/llanalyze
+%endif
%files -n lustre-ldap