Whamcloud - gitweb
e2fsck: add Lustre lfsck tool
[tools/e2fsprogs.git] / e2fsprogs.spec.in
index 3f6e578..3bf0410 100644 (file)
@@ -15,10 +15,14 @@ Prereq: /sbin/ldconfig
 BuildRoot: %{_tmppath}/%{name}-root
 %if %{_vendor} == "suse"
 Group: System/Filesystems
+@LFSCK_CMT@Requires: db >= @DB4VERSION@
+@LFSCK_CMT@BuildRequires: db-devel >= 4.1 texinfo
 Provides: e2fsbn ext2fs libcom_err = %{version} ldiskfsprogs = %{version}
 Obsoletes: ext2fs libcom_err < %{version}
 %else
 Group: System Environment/Base
+@LFSCK_CMT@Requires: db4 >= @DB4VERSION@
+@LFSCK_CMT@BuildRequires: db4-devel >= 4.1 texinfo
 Provides: e2fsprogs-libs = %{version} ldiskfsprogs = %{version}
 Obsoletes: e4fsprogs e2fsprogs-libs < %{version}
 %endif
@@ -72,6 +76,7 @@ SMP systems.
 
 %build
 %configure --enable-elf-shlibs --enable-nls --disable-defrag \
+       @WITH_LUSTRE@ @ENABLE_LFSCK@ \
        %{?extra_config_flags:%extra_config_flags}
 make
 make check
@@ -132,6 +137,7 @@ exit 0
 %{_root_sbindir}/fsck.ext3
 %{_root_sbindir}/fsck.ext4
 %{_root_sbindir}/fsck.ext4dev
+@LFSCK_CMT@%{_sbindir}/lfsck
 %{_root_sbindir}/logsave
 %{_root_sbindir}/mke2fs
 %{_root_etcdir}/mke2fs.conf
@@ -169,6 +175,7 @@ exit 0
 %{_mandir}/man8/debugfs.8*
 %{_mandir}/man8/dumpe2fs.8*
 %{_mandir}/man8/e2fsck.8*
+@LFSCK_CMT@%{_mandir}/man8/lfsck.8*
 %{_mandir}/man8/findfs.8*
 %{_mandir}/man8/fsck.ext2.8*
 %{_mandir}/man8/fsck.ext3.8*