2 BuildRequires: autoconf
3 BuildRequires: libblkid-devel
4 BuildRequires: libuuid-devel
5 BuildRequires: pkg-config
8 Summary: Utilities for the Second Extended File System
10 Group: System/Filesystems
11 Url: http://e2fsprogs.sourceforge.net
12 Requires: libcom_err >= %{version}
13 Requires: libext2fs >= %{version}
14 Source: http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v%{version}/e2fsprogs-%{version}.tar.xz
15 Source1: baselibs.conf
19 Utilities needed to create and maintain ext2 and ext3 file systems
20 under Linux. Included in this package are: chattr, lsattr, mke2fs,
21 mklost+found, tune2fs, e2fsck, resize2fs, and badblocks.
24 Summary: Dummy development package
26 Group: Development/Libraries/C and C++
27 Requires: libblkid-devel
28 Requires: libext2fs-devel = %version
29 Requires: libuuid-devel
32 Dummy development package for backwards compatibility.
35 Summary: Ext2fs library
37 Group: System/Filesystems
39 %description -n libext2fs
40 The basic Ext2fs shared library.
42 %package -n libext2fs-devel
43 Summary: Development files for libext2fs
45 Group: Development/Libraries/C and C++
46 Requires: libcom_err-devel
47 Requires: libext2fs = %version
49 %description -n libext2fs-devel
50 Development files for libext2fs.
52 %package -n libcom_err
53 Summary: E2fsprogs error reporting library
55 Group: System/Filesystems
57 %description -n libcom_err
58 com_err is an error message display library.
60 %package -n libcom_err-devel
61 Summary: Development files for libcom_err
63 Group: Development/Libraries/C and C++
65 Requires: libcom_err = %version
67 %description -n libcom_err-devel
68 Development files for the com_err error message display library.
76 --with-root-prefix='' \
83 CFLAGS="$RPM_OPT_FLAGS"
84 make %{?_smp_mflags} V=1
87 make install install-libs DESTDIR=$RPM_BUILD_ROOT ELF_INSTALL_DIR=/%{_libdir}
89 # Let boot continue even if system clock is wrong
90 install -p -m 644 %{SOURCE2} %{buildroot}/etc/e2fsck.conf
93 rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
94 rm -f $RPM_BUILD_ROOT/%{_sbindir}/mkfs.ext4dev
95 rm -f $RPM_BUILD_ROOT/%{_sbindir}/fsck.ext4dev
96 rm -f $RPM_BUILD_ROOT/usr/share/man/man8/mkfs.ext4dev.8*
97 rm -f $RPM_BUILD_ROOT/usr/share/man/man8/fsck.ext4dev.8*
98 rm -v %{buildroot}%{_includedir}/quota/mkquota.h
99 rm -v %{buildroot}%{_libdir}/pkgconfig/quota.pc
101 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
105 %post -n libext2fs -p /sbin/ldconfig
107 %postun -n libext2fs -p /sbin/ldconfig
109 %post -n libcom_err -p /sbin/ldconfig
111 %postun -n libcom_err -p /sbin/ldconfig
119 %defattr(-, root, root)
120 %doc RELEASE-NOTES README
121 %config /etc/e2fsck.conf
122 %config /etc/mke2fs.conf
123 %{_sbindir}/badblocks
129 %{_sbindir}/fsck.ext2
130 %{_sbindir}/fsck.ext3
131 %{_sbindir}/fsck.ext4
133 %{_sbindir}/mkfs.ext2
134 %{_sbindir}/mkfs.ext3
135 %{_sbindir}/mkfs.ext4
136 %{_sbindir}/resize2fs
142 %{_sbindir}/mklost+found
144 %{_sbindir}/e2freefrag
148 %defattr(-, root, root)
149 %{_libdir}/libext2fs.so.*
150 %{_libdir}/libe2p.so.*
152 %files -n libext2fs-devel
153 %defattr(-, root, root)
154 %{_libdir}/libext2fs.so
158 %_libdir/pkgconfig/e2p.pc
159 %_libdir/pkgconfig/ext2fs.pc
162 %defattr(-, root, root)
163 %{_libdir}/libcom_err.so.*
164 %{_libdir}/libss.so.*
166 %files -n libcom_err-devel
167 %defattr(-, root, root)
170 %{_libdir}/libcom_err.so
172 %_libdir/pkgconfig/com_err.pc
173 %_libdir/pkgconfig/ss.pc
174 %_includedir/com_err.h