blob: d37620d6af8368de894c41069b0d63248f61afbd [file] [log] [blame]
Theodore Ts'od606c302003-03-16 20:40:36 -05001%define _root_sbindir /sbin
2%define _root_libdir /%{_lib}
3
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00004Summary: Utilities for managing the second extended (ext2) filesystem.
Theodore Ts'o24757fa1997-04-29 17:39:27 +00005Name: e2fsprogs
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006Version: @E2FSPROGS_VERSION@
Theodore Ts'o24757fa1997-04-29 17:39:27 +00007Release: 0
8Copyright: GPL
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00009Group: System Environment/Base
Theodore Ts'od606c302003-03-16 20:40:36 -050010Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
11Url: http://e2fsprogs.sourceforge.net/
Theodore Ts'of9e67062000-07-13 23:25:54 +000012Prereq: /sbin/ldconfig
Theodore Ts'od606c302003-03-16 20:40:36 -050013BuildRoot: %{_tmppath}/%{name}-root
Theodore Ts'o24757fa1997-04-29 17:39:27 +000014
15%description
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000016The e2fsprogs package contains a number of utilities for creating,
17checking, modifying and correcting any inconsistencies in second
18extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
19filesystem inconsistencies after an unclean shutdown), mke2fs (used to
20initialize a partition to contain an empty ext2 filesystem), debugfs
21(used to examine the internal structure of a filesystem, to manually
22repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
Theodore Ts'o7adb91d2000-08-14 14:47:51 +000023(used to modify filesystem parameters), resize2fs to grow and shrink
24unmounted ext2 filesystems, and most of the other core ext2fs filesystem
25utilities.
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000026
27You should install the e2fsprogs package if you are using any ext2
28filesystems (if you're not sure, you probably should install this
Theodore Ts'od606c302003-03-16 20:40:36 -050029package). You may also need to install it (even if you don't use
30ext2) for the libuuid and libblkid libraries and fsck tool that are
31included here.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000032
33%package devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000034Summary: Ext2 filesystem-specific static libraries and headers.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000035Group: Development/Libraries
Theodore Ts'od606c302003-03-16 20:40:36 -050036Requires: e2fsprogs = %{version}
37Prereq: /sbin/install-info
Theodore Ts'o24757fa1997-04-29 17:39:27 +000038
Theodore Ts'of9e67062000-07-13 23:25:54 +000039%description devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000040E2fsprogs-devel contains the libraries and header files needed to
41develop second extended (ext2) filesystem-specific programs.
42
43You should install e2fsprogs-devel if you want to develop ext2
Theodore Ts'of9e67062000-07-13 23:25:54 +000044filesystem-specific programs. If you install e2fsprogs-devel, you'll
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000045also need to install e2fsprogs.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000046
47%prep
48%setup
49
Theodore Ts'od606c302003-03-16 20:40:36 -050050chmod 755 configure
51autoconf
Theodore Ts'o24757fa1997-04-29 17:39:27 +000052
Theodore Ts'od606c302003-03-16 20:40:36 -050053%build
54%configure --enable-elf-shlibs
Theodore Ts'o24757fa1997-04-29 17:39:27 +000055make libs progs docs
56
57%install
Theodore Ts'of9e67062000-07-13 23:25:54 +000058rm -rf $RPM_BUILD_ROOT
Theodore Ts'o24757fa1997-04-29 17:39:27 +000059export PATH=/sbin:$PATH
Theodore Ts'od606c302003-03-16 20:40:36 -050060make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
61 root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
62
63cd ${RPM_BUILD_ROOT}%{_libdir}
64ln -sf %{_root_libdir}/libcom_err.so.2 libcom_err.so
65ln -sf %{_root_libdir}/libe2p.so.2 libe2p.so
66ln -sf %{_root_libdir}/libext2fs.so.2 libext2fs.so
67ln -sf %{_root_libdir}/libss.so.2 libss.so
68ln -sf %{_root_libdir}/libuuid.so.1 libuuid.so
Theodore Ts'o24757fa1997-04-29 17:39:27 +000069
Theodore Ts'o24757fa1997-04-29 17:39:27 +000070%clean
71rm -rf $RPM_BUILD_ROOT
72
Theodore Ts'od606c302003-03-16 20:40:36 -050073%post -p /sbin/ldconfig
Theodore Ts'o24757fa1997-04-29 17:39:27 +000074
Theodore Ts'of9e67062000-07-13 23:25:54 +000075%postun -p /sbin/ldconfig
76
77%post devel
Theodore Ts'od606c302003-03-16 20:40:36 -050078if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000079 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000080fi
81
82%postun devel
Theodore Ts'od606c302003-03-16 20:40:36 -050083if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000084 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000085fi
Theodore Ts'o24757fa1997-04-29 17:39:27 +000086
87%files
Theodore Ts'of9e67062000-07-13 23:25:54 +000088%defattr(-,root,root)
89%doc README RELEASE-NOTES
Theodore Ts'o24757fa1997-04-29 17:39:27 +000090
Theodore Ts'od606c302003-03-16 20:40:36 -050091%{_root_sbindir}/blkid
92%{_root_sbindir}/badblocks
93%{_root_sbindir}/debugfs
94%{_root_sbindir}/dumpe2fs
95%{_root_sbindir}/e2fsck
96%{_root_sbindir}/e2image
97%{_root_sbindir}/e2label
98%{_root_sbindir}/findfs
99%{_root_sbindir}/fsck
100%{_root_sbindir}/fsck.ext2
101%{_root_sbindir}/fsck.ext3
Theodore Ts'of9ddad52003-04-14 18:05:12 -0400102%{_root_sbindir}/logsave
Theodore Ts'od606c302003-03-16 20:40:36 -0500103%{_root_sbindir}/mke2fs
104%{_root_sbindir}/mkfs.ext2
105%{_root_sbindir}/mkfs.ext3
106%{_root_sbindir}/resize2fs
107%{_root_sbindir}/tune2fs
108%{_sbindir}/mklost+found
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000109
Theodore Ts'od606c302003-03-16 20:40:36 -0500110%{_root_libdir}/libcom_err.so.*
111%{_root_libdir}/libe2p.so.*
112%{_root_libdir}/libext2fs.so.*
113%{_root_libdir}/libss.so.*
114%{_root_libdir}/libblkid.so.*
115%{_root_libdir}/libuuid.so.*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000116
Theodore Ts'od606c302003-03-16 20:40:36 -0500117%{_bindir}/chattr
118%{_bindir}/lsattr
119%{_bindir}/uuidgen
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000120%{_mandir}/man1/chattr.1*
121%{_mandir}/man1/lsattr.1*
122%{_mandir}/man1/uuidgen.1*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000123
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000124%{_mandir}/man8/badblocks.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500125%{_mandir}/man8/blkid.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000126%{_mandir}/man8/debugfs.8*
127%{_mandir}/man8/dumpe2fs.8*
128%{_mandir}/man8/e2fsck.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500129%{_mandir}/man8/findfs.8*
130%{_mandir}/man8/fsck.ext2.8*
131%{_mandir}/man8/fsck.ext3.8*
Theodore Ts'od5d92152001-05-11 06:19:33 +0000132%{_mandir}/man8/e2image.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500133%{_mandir}/man8/e2label.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000134%{_mandir}/man8/fsck.8*
Theodore Ts'of9ddad52003-04-14 18:05:12 -0400135%{_mandir}/man8/logsave.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000136%{_mandir}/man8/mke2fs.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500137%{_mandir}/man8/mkfs.ext2.8*
138%{_mandir}/man8/mkfs.ext3.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000139%{_mandir}/man8/mklost+found.8*
140%{_mandir}/man8/resize2fs.8*
141%{_mandir}/man8/tune2fs.8*
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000142
143%files devel
Theodore Ts'of9e67062000-07-13 23:25:54 +0000144%defattr(-,root,root)
Theodore Ts'of5955dd2000-10-25 02:38:39 +0000145%{_infodir}/libext2fs.info*
Theodore Ts'od606c302003-03-16 20:40:36 -0500146%{_bindir}/compile_et
147%{_bindir}/mk_cmds
Theodore Ts'of9e67062000-07-13 23:25:54 +0000148
Theodore Ts'od606c302003-03-16 20:40:36 -0500149%{_libdir}/libcom_err.a
150%{_libdir}/libcom_err.so
151%{_libdir}/libe2p.a
152%{_libdir}/libe2p.so
153%{_libdir}/libext2fs.a
154%{_libdir}/libext2fs.so
155%{_libdir}/libss.a
156%{_libdir}/libss.so
157%{_libdir}/libblkid.a
158%{_libdir}/libblkid.so
159%{_libdir}/libuuid.a
160%{_libdir}/libuuid.so
Theodore Ts'of9e67062000-07-13 23:25:54 +0000161
Theodore Ts'od606c302003-03-16 20:40:36 -0500162%{_datadir}/et
163%{_datadir}/ss
164%{_includedir}/blkid
165%{_includedir}/et
166%{_includedir}/ext2fs
167%{_includedir}/ss
168%{_includedir}/uuid
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000169%{_mandir}/man1/compile_et.1*
170%{_mandir}/man3/com_err.3*
Andreas Dilger4941fe82001-10-01 16:02:20 -0600171%{_mandir}/man3/libuuid.3*
172%{_mandir}/man3/uuid*.3*
Theodore Ts'od606c302003-03-16 20:40:36 -0500173%{_mandir}/man3/libblkid.3*