aagh, broke old b1_4 stuff - wait until we branch lustre-build
[ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
{ for i in lustre/* lnet/* ; do \
MOD=$$i/`basename $$i`; \
[ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
{ for i in lustre/* lnet/* ; do \
MOD=$$i/`basename $$i`; \
- if [ $$i = "lustre/llite" ]; then MOD=$$i/lustre; fi; \
[ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o; \
[ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
done; \
[ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o; \
[ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
done; \
URL: http://clusterfs.com/
BuildRoot: /var/tmp/lustre-%{version}-root
Obsoletes: lustre-lite, lustre-lite-utils, lustre-ldap
URL: http://clusterfs.com/
BuildRoot: /var/tmp/lustre-%{version}-root
Obsoletes: lustre-lite, lustre-lite-utils, lustre-ldap
-Provides: lustre-lite = %{version}, lustre-lite-utils = %{version}
+Provides: lustre-lite = %{version}, lustre-lite-utils = %{version}, lustre-ldap = %{version}
%description
Userspace tools and files for the Lustre file system.
%description
Userspace tools and files for the Lustre file system.
Summary: Lustre dependencies meta-package for SLES
Group: Utilities/System
Provides: lustre-deps = %{version}
Summary: Lustre dependencies meta-package for SLES
Group: Utilities/System
Provides: lustre-deps = %{version}
-Requires: lustre = %{version}, sles-release
+Requires: lustre = %{version}, sles-release, python-xml
Conflicts: lustre-deps-rhel
%description deps-sles
Conflicts: lustre-deps-rhel
%description deps-sles
Summary: Lustre dependencies meta-package for RHEL
Group: Utilities/System
Provides: lustre-deps = %{version}
Summary: Lustre dependencies meta-package for RHEL
Group: Utilities/System
Provides: lustre-deps = %{version}
-Requires: lustre = %{version}, redhat-release
+Requires: lustre = %{version}, redhat-release, PyXML
Conflicts: lustre-deps-sles
%description deps-rhel
Conflicts: lustre-deps-sles
%description deps-rhel
%attr(-, root, root) /sbin/mount.lustre
%attr(-, root, root) /usr/sbin/*
%attr(-, root, root) /usr/bin/*
%attr(-, root, root) /sbin/mount.lustre
%attr(-, root, root) /usr/sbin/*
%attr(-, root, root) /usr/bin/*
+%attr(-, root, root) %{_libdir}/lustre/python
%attr(-, root, root) /usr/share/lustre/*
%attr(-, root, root) /usr/share/lustre/*
+%attr(-, root, root) /etc/init.d/lustre
+%attr(-, root, root) /etc/init.d/lustrefs
+
%attr(-, root, root) %{_libdir}/libptlctl.a
%attr(-, root, root) %{_libdir}/liblustreapi.a
%attr(-, root, root) /usr/include/lustre
%attr(-, root, root) %{_mandir}/man?/*
%attr(-, root, root) %{_libdir}/libptlctl.a
%attr(-, root, root) %{_libdir}/liblustreapi.a
%attr(-, root, root) /usr/include/lustre
%attr(-, root, root) %{_mandir}/man?/*
+%attr(-, root, root) /etc/openldap/slapd-lustre.conf
+%attr(-, root, root) /etc/openldap/schema/lustre.schema
+EOF
if [ -f $RPM_BUILD_ROOT%{_libdir}/liblustre.so ] ; then
echo '%attr(-, root, root) %{_libdir}/liblustre.a' >>lustre.files
echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>lustre.files
if [ -f $RPM_BUILD_ROOT%{_libdir}/liblustre.so ] ; then
echo '%attr(-, root, root) %{_libdir}/liblustre.a' >>lustre.files
echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>lustre.files
# %files deps-sles
# %files deps-rhel
# %files deps-sles
# %files deps-rhel
+%post
+if [ -f /etc/init.d/lustre ] ; then
+ /sbin/chkconfig --add lustre
+ /sbin/chkconfig --add lustrefs
+fi
+
+%preun
+if [ $1 = 0 -a -f /etc/init.d/lustre ] ; then
+ /sbin/chkconfig --del lustre
+ /sbin/chkconfig --del lustrefs
+fi
+rm -f %{_libdir}/lustre/python/Lustre/*.pyc
+
%post modules
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
%post modules
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
for f in /etc/modules.conf /etc/modprobe.conf /etc/modprobe.conf.local ;
do
if [ -f $f ]; then
for f in /etc/modules.conf /etc/modprobe.conf /etc/modprobe.conf.local ;
do
if [ -f $f ]; then
- 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 && \
- mv $TMPFILE $f
+ if ! grep 'lustre llite' $f >/dev/null 2>/dev/null ; then
+ cat >> $f <<-EOF
+alias lustre llite
+EOF
fi
if egrep "^[^#]*(add below|install) ptlrpc" $f ; then
[ ! -f $f.rpmsave ] && cp $f $f.rpmsave
fi
if egrep "^[^#]*(add below|install) ptlrpc" $f ; then
[ ! -f $f.rpmsave ] && cp $f $f.rpmsave