Whamcloud - gitweb
LU-1199 build: Refactor ldiskfs's build system
[fs/lustre-release.git] / ldiskfs / lustre-ldiskfs.spec.in
index 047f623..260d30d 100644 (file)
@@ -25,7 +25,8 @@ Group: Development/Kernel
 Source: lustre-ldiskfs-%{version}.tar.gz
 URL: http://www.sun.com/software/products/lustre/index.xml
 BuildRoot: %{_tmppath}/lustre-ldiskfs-%{version}-root
-Requires: modutils >= 2.4.10
+Requires: modutils >= 2.4.10, ldiskfsprogs >= 1.41.12.2.ora1
+Provides: lustre-backend-fs
 
 %description
 Provides the ldiskfs backend file system kernel module, used by
@@ -78,9 +79,15 @@ make -j $RPM_BUILD_NCPUS -s
 
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
+# Kernel module needs to be executable at the end of the install
+# section to allow the find-debuginfo.sh to produce a proper
+# debuginfo package.  Permissions will be corrected in the files
+# section.
+chmod 755 ${RPM_BUILD_ROOT}/lib/modules/%{kversion}/updates/kernel/fs/lustre-ldiskfs/ldiskfs.ko
 
 %files
-%attr(-, root, root) /lib/modules/%{kversion}/updates/kernel/fs/lustre-ldiskfs
+%defattr(644, root, root, 755)
+/lib/modules/%{kversion}/updates/kernel/fs/lustre-ldiskfs
 
 %post
 if [ -f /boot/System.map-%{kversion} ]; then