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
%build
%configure --enable-elf-shlibs --enable-nls --disable-defrag \
+ @WITH_LUSTRE@ @ENABLE_LFSCK@ \
%{?extra_config_flags:%extra_config_flags}
make
make check
%{_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
%{_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*