2 BuildRequires: autoconf
3 BuildRequires: libblkid-devel
4 BuildRequires: libuuid-devel
5 BuildRequires: pkg-config
6 #BuildRequires: -libmount1, -libuuid1, -libblkid1
9 Summary: Utilities for the Second Extended File System
11 Group: System/Filesystems
12 Url: http://e2fsprogs.sourceforge.net
13 Requires: libcom_err >= %{version}
14 Requires: libext2fs >= %{version}
15 Source: http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v%{version}/e2fsprogs-%{version}.tar.xz
16 Source1: baselibs.conf
20 Utilities needed to create and maintain ext2 and ext3 file systems
21 under Linux. Included in this package are: chattr, lsattr, mke2fs,
22 mklost+found, tune2fs, e2fsck, resize2fs, and badblocks.
25 Summary: Dummy development package
27 Group: Development/Libraries/C and C++
28 Requires: libblkid-devel
29 Requires: libext2fs-devel = %version
30 Requires: libuuid-devel
33 Dummy development package for backwards compatibility.
36 Summary: Ext2fs library
38 Group: System/Filesystems
40 %description -n libext2fs
41 The basic Ext2fs shared library.
43 %package -n libext2fs-devel
44 Summary: Development files for libext2fs
46 Group: Development/Libraries/C and C++
47 Requires: libcom_err-devel
48 Requires: libext2fs = %version
50 %description -n libext2fs-devel
51 Development files for libext2fs.
53 %package -n libcom_err
54 Summary: E2fsprogs error reporting library
56 Group: System/Filesystems
58 %description -n libcom_err
59 com_err is an error message display library.
61 %package -n libcom_err-devel
62 Summary: Development files for libcom_err
64 Group: Development/Libraries/C and C++
66 Requires: libcom_err = %version
68 %description -n libcom_err-devel
69 Development files for the com_err error message display library.
75 #autoreconf --force --install
78 --with-root-prefix='' \
85 CFLAGS="$RPM_OPT_FLAGS"
86 make %{?_smp_mflags} V=1
89 make install install-libs DESTDIR=$RPM_BUILD_ROOT ELF_INSTALL_DIR=/%{_libdir}
91 # Let boot continue even if system clock is wrong
92 install -p -m 644 %{SOURCE2} %{buildroot}/etc/e2fsck.conf
95 rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
96 rm -f $RPM_BUILD_ROOT/%{_sbindir}/mkfs.ext4dev
97 rm -f $RPM_BUILD_ROOT/%{_sbindir}/fsck.ext4dev
98 rm -f $RPM_BUILD_ROOT/usr/share/man/man8/mkfs.ext4dev.8*
99 rm -f $RPM_BUILD_ROOT/usr/share/man/man8/fsck.ext4dev.8*
100 rm -v %{buildroot}%{_includedir}/quota/mkquota.h
101 rm -v %{buildroot}%{_libdir}/pkgconfig/quota.pc
103 # Need libext2fs.a for silo
104 find "%buildroot/%_libdir" -type f -name "*.a" \
112 %post -n libext2fs -p /sbin/ldconfig
114 %postun -n libext2fs -p /sbin/ldconfig
116 %post -n libcom_err -p /sbin/ldconfig
118 %postun -n libcom_err -p /sbin/ldconfig
126 %defattr(-, root, root)
127 %doc RELEASE-NOTES README
128 %config /etc/e2fsck.conf
129 %config /etc/mke2fs.conf
130 %{_sbindir}/badblocks
136 %{_sbindir}/fsck.ext2
137 %{_sbindir}/fsck.ext3
138 %{_sbindir}/fsck.ext4
140 %{_sbindir}/mkfs.ext2
141 %{_sbindir}/mkfs.ext3
142 %{_sbindir}/mkfs.ext4
143 %{_sbindir}/resize2fs
149 %{_sbindir}/mklost+found
151 %{_sbindir}/e2freefrag
155 %defattr(-, root, root)
156 %{_libdir}/libext2fs.so.*
157 %{_libdir}/libe2p.so.*
159 %files -n libext2fs-devel
160 %defattr(-, root, root)
161 %{_libdir}/libext2fs.so
165 %_libdir/pkgconfig/e2p.pc
166 %_libdir/pkgconfig/ext2fs.pc
169 %defattr(-, root, root)
170 %{_libdir}/libcom_err.so.*
171 %{_libdir}/libss.so.*
173 %files -n libcom_err-devel
174 %defattr(-, root, root)
177 %{_libdir}/libcom_err.so
179 %_libdir/pkgconfig/com_err.pc
180 %_libdir/pkgconfig/ss.pc
181 %_includedir/com_err.h
186 %{_mandir}/man1/compile_et.1.gz
187 %{_mandir}/man1/mk_cmds.1.gz
188 %{_mandir}/man3/com_err.3.gz