X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Flustre.spec.in;h=9803991ea8f96827743ff8806361a3dbe1e3978e;hb=7b030f49b5de82908adec84452d1dd26cb59bc75;hp=520bf918d01261800e65b5a4e0b0d0d20c325292;hpb=5db8cc0de19278d4b84c72895c0e4178572f48c5;p=fs%2Flustre-release.git diff --git a/build/lustre.spec.in b/build/lustre.spec.in index 520bf91..9803991 100644 --- a/build/lustre.spec.in +++ b/build/lustre.spec.in @@ -6,9 +6,8 @@ Summary: Lustre File System Name: lustre Version: %{version} Release: @RELEASE@ -Copyright: GPL +License: GPL Group: Utilities/System -Requires: lustre-modules Source: lustre-%{version}.tar.gz URL: http://clusterfs.com/ BuildRoot: /var/tmp/lustre-%{version}-root @@ -105,12 +104,12 @@ rm -f lustre-source ln -s $RPM_BUILD_ROOT/usr/src lustre-source make distdir distdir=lustre-source/lustre-%{version} -%files +cat >lustre.files <>lustre.files + echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>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 +fi + +%files -f lustre.files %files modules %attr(-, root, root) %doc COPYING @@ -150,6 +159,7 @@ 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 [ ! -e /dev/obd ]; then @@ -163,6 +173,27 @@ if [ -f /boot/System.map-%{kversion} ]; then else depmod -ae %{kversion} || exit 0 fi +for ext in .local "" ; do + f=/etc/modprobe.conf$ext + if [ -f $f ] && ! grep llite $f >/dev/null 2>/dev/null ; then + cat >> $f </dev/null 2>/dev/null ; then + cat >> $f <