Whamcloud - gitweb
- better to make vfs_create() to set correct uid and gid for new inode, as dirtying...
[fs/lustre-release.git] / build / lustre.spec.in
index 520bf91..0f827d5 100644 (file)
@@ -8,7 +8,6 @@ Version: %{version}
 Release: @RELEASE@
 Copyright: GPL
 Group: Utilities/System
-Requires: lustre-modules
 Source: lustre-%{version}.tar.gz
 URL: http://clusterfs.com/
 BuildRoot: /var/tmp/lustre-%{version}-root
@@ -105,7 +104,7 @@ rm -f lustre-source
 ln -s $RPM_BUILD_ROOT/usr/src lustre-source
 make distdir distdir=lustre-source/lustre-%{version}
 
-%files
+cat >lustre.files <<EOF
 %attr(-, root, root) /sbin/mount.lustre
 %attr(-, root, root) /usr/sbin/*
 %attr(-, root, root) /usr/bin/*
@@ -126,6 +125,13 @@ make distdir distdir=lustre-source/lustre-%{version}
 %attr(-, root, root) /etc/openldap/schema/lustre.schema
 %attr(-, root, root) /usr/share/lustre/lustre2ldif.xsl
 %attr(-, root, root) /usr/share/lustre/top.ldif
+EOF
+if [ -f $RPM_BUILD_ROOT/usr/lib/liblustre.so ] ; then
+  echo '%attr(-, root, root) %{_libdir}/liblustre.a' >>lustre.files
+  echo '%attr(-, root, root) %{_libdir}/liblustre.so' >>lustre.files
+fi
+
+%files -f lustre.files
 
 %files modules
 %attr(-, root, root) %doc COPYING
@@ -150,6 +156,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