blob: 0d99ae42d4858cf95f2f4dd922d5edddb6a1e8a8 [file] [log] [blame]
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00001Summary: Utilities for managing the second extended (ext2) filesystem.
Theodore Ts'o24757fa1997-04-29 17:39:27 +00002Name: e2fsprogs
Theodore Ts'od08a4ce2001-09-20 09:47:42 -04003Version: 1.25
Theodore Ts'o24757fa1997-04-29 17:39:27 +00004Release: 0
5Copyright: GPL
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00006Group: System Environment/Base
Theodore Ts'of9e67062000-07-13 23:25:54 +00007Buildroot: /var/tmp/%{name}-root
Theodore Ts'of5955dd2000-10-25 02:38:39 +00008Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
Theodore Ts'of9e67062000-07-13 23:25:54 +00009Prereq: /sbin/ldconfig
Theodore Ts'o24757fa1997-04-29 17:39:27 +000010
11%description
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000012The e2fsprogs package contains a number of utilities for creating,
13checking, modifying and correcting any inconsistencies in second
14extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
15filesystem inconsistencies after an unclean shutdown), mke2fs (used to
16initialize a partition to contain an empty ext2 filesystem), debugfs
17(used to examine the internal structure of a filesystem, to manually
18repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
Theodore Ts'o7adb91d2000-08-14 14:47:51 +000019(used to modify filesystem parameters), resize2fs to grow and shrink
20unmounted ext2 filesystems, and most of the other core ext2fs filesystem
21utilities.
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000022
23You should install the e2fsprogs package if you are using any ext2
24filesystems (if you're not sure, you probably should install this
25package).
Theodore Ts'o24757fa1997-04-29 17:39:27 +000026
27%package devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000028Summary: Ext2 filesystem-specific static libraries and headers.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000029Group: Development/Libraries
Theodore Ts'oca483f01998-02-24 03:20:51 +000030Requires: e2fsprogs
Theodore Ts'o24757fa1997-04-29 17:39:27 +000031
Theodore Ts'of9e67062000-07-13 23:25:54 +000032%description devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000033E2fsprogs-devel contains the libraries and header files needed to
34develop second extended (ext2) filesystem-specific programs.
35
36You should install e2fsprogs-devel if you want to develop ext2
Theodore Ts'of9e67062000-07-13 23:25:54 +000037filesystem-specific programs. If you install e2fsprogs-devel, you'll
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000038also need to install e2fsprogs.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000039
40%prep
41%setup
42
43%build
Theodore Ts'of5955dd2000-10-25 02:38:39 +000044CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
45./configure --enable-elf-shlibs --mandir=%{_mandir} --infodir=%{_infodir}
Theodore Ts'o24757fa1997-04-29 17:39:27 +000046
47make libs progs docs
48
49%install
Theodore Ts'of9e67062000-07-13 23:25:54 +000050rm -rf $RPM_BUILD_ROOT
Theodore Ts'o24757fa1997-04-29 17:39:27 +000051export PATH=/sbin:$PATH
Theodore Ts'of9e67062000-07-13 23:25:54 +000052make install install-libs DESTDIR="$RPM_BUILD_ROOT"
Theodore Ts'o24757fa1997-04-29 17:39:27 +000053
Theodore Ts'o24757fa1997-04-29 17:39:27 +000054%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
58/sbin/ldconfig
Theodore Ts'oab146762000-07-07 04:37:35 +000059# Remove possibly old version
60/bin/rm -f /usr/sbin/resize2fs
Theodore Ts'o24757fa1997-04-29 17:39:27 +000061
Theodore Ts'of9e67062000-07-13 23:25:54 +000062%postun -p /sbin/ldconfig
63
64%post devel
65if [ -x /sbin/install-info ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000066 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000067fi
68
69%postun devel
70if [ $1 = 0 -a -x /sbin/install-info ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000071 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000072fi
Theodore Ts'o24757fa1997-04-29 17:39:27 +000073
74%files
Theodore Ts'of9e67062000-07-13 23:25:54 +000075%defattr(-,root,root)
76%doc README RELEASE-NOTES
Theodore Ts'o24757fa1997-04-29 17:39:27 +000077
Theodore Ts'of9e67062000-07-13 23:25:54 +000078/sbin/badblocks
79/sbin/debugfs
80/sbin/dumpe2fs
81/sbin/e2fsck
82/sbin/e2label
Theodore Ts'od5d92152001-05-11 06:19:33 +000083/sbin/e2image
Theodore Ts'of9e67062000-07-13 23:25:54 +000084/sbin/fsck
85/sbin/fsck.ext2
86/sbin/fsck.ext3
87/sbin/mke2fs
88/sbin/mkfs.ext2
89/sbin/tune2fs
90/sbin/resize2fs
91/usr/sbin/mklost+found
Theodore Ts'o24757fa1997-04-29 17:39:27 +000092
Theodore Ts'of9e67062000-07-13 23:25:54 +000093/lib/libcom_err.so.*
94/lib/libe2p.so.*
95/lib/libext2fs.so.*
96/lib/libss.so.*
97/lib/libuuid.so.*
98
99/usr/bin/chattr
100/usr/bin/lsattr
101/usr/bin/uuidgen
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000102%{_mandir}/man1/chattr.1*
103%{_mandir}/man1/lsattr.1*
104%{_mandir}/man1/uuidgen.1*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000105
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000106%{_mandir}/man8/badblocks.8*
107%{_mandir}/man8/debugfs.8*
108%{_mandir}/man8/dumpe2fs.8*
109%{_mandir}/man8/e2fsck.8*
110%{_mandir}/man8/e2label.8*
Theodore Ts'od5d92152001-05-11 06:19:33 +0000111%{_mandir}/man8/e2image.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000112%{_mandir}/man8/fsck.8*
113%{_mandir}/man8/mke2fs.8*
114%{_mandir}/man8/mklost+found.8*
115%{_mandir}/man8/resize2fs.8*
116%{_mandir}/man8/tune2fs.8*
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000117
118%files devel
Theodore Ts'of9e67062000-07-13 23:25:54 +0000119%defattr(-,root,root)
Theodore Ts'of5955dd2000-10-25 02:38:39 +0000120%{_infodir}/libext2fs.info*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000121/usr/bin/compile_et
122/usr/bin/mk_cmds
123
124/usr/lib/libcom_err.a
125/usr/lib/libcom_err.so
126/usr/lib/libe2p.a
127/usr/lib/libe2p.so
128/usr/lib/libext2fs.a
129/usr/lib/libext2fs.so
130/usr/lib/libss.a
131/usr/lib/libss.so
132/usr/lib/libuuid.a
133/usr/lib/libuuid.so
134
135/usr/share/et
136/usr/share/ss
137/usr/include/et
138/usr/include/ext2fs
139/usr/include/ss
140/usr/include/uuid
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000141%{_mandir}/man1/compile_et.1*
142%{_mandir}/man3/com_err.3*
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000143