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}
+# GSS requires this: BuildRequires: pkgconfig, libgssapi-devel >= 0.10
%description
Userspace tools and files for the Lustre file system.
%attr(-, root, root) /usr/include/lustre
%attr(-, root, root) %{_mandir}/man?/*
+
+%attr(-, root, root) %{_libdir}/lustre/lc_common.sh
EOF
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
if grep 'lustre llite' $f >/dev/null 2>/dev/null ; then
[ ! -f $f.rpmsave ] && cp $f $f.rpmsave
TMPFILE=`mktemp $f.XXXXXX` && \
- grep -v 'lustre llite' $f > $TMPFILE && \
+ rm -f $TMPFILE && touch $TMPFILE && \
+ grep -v 'lustre llite' $f >> $TMPFILE && \
mv $TMPFILE $f
fi
if egrep "^[^#]*(add below|install) ptlrpc" $f ; then
[ ! -f $f.rpmsave ] && cp $f $f.rpmsave
TMPFILE=`mktemp $f.XXXXXX` && \
- sed -e "s/^[^#]*\(add below\|install\) ptlrpc.*/#&/" $f > $TMPFILE && \
+ rm -f $TMPFILE && touch $TMPFILE && \
+ sed -e "s/^[^#]*\(add below\|install\) ptlrpc.*/#&/" $f >> $TMPFILE && \
mv $TMPFILE $f
fi
fi