Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 1 | %define _root_sbindir /sbin |
| 2 | %define _root_libdir /%{_lib} |
| 3 | |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 4 | Summary: Utilities for managing the second extended (ext2) filesystem. |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 5 | Name: e2fsprogs |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6 | Version: @E2FSPROGS_VERSION@ |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 7 | Release: 0 |
| 8 | Copyright: GPL |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 9 | Group: System Environment/Base |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 10 | Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz |
| 11 | Url: http://e2fsprogs.sourceforge.net/ |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 12 | Prereq: /sbin/ldconfig |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 13 | BuildRoot: %{_tmppath}/%{name}-root |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 14 | |
| 15 | %description |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 16 | The e2fsprogs package contains a number of utilities for creating, |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 17 | checking, modifying, and correcting any inconsistencies in second |
| 18 | extended (ext2) filesystems. E2fsprogs contains e2fsck (used to |
| 19 | repair filesystem inconsistencies after an unclean shutdown), mke2fs |
| 20 | (used to initialize a partition to contain an empty ext2 filesystem), |
| 21 | debugfs (used to examine the internal structure of a filesystem, to |
| 22 | manually repair a corrupted filesystem or to create test cases for |
| 23 | e2fsck), tune2fs (used to modify filesystem parameters), resize2fs to |
| 24 | grow and shrink unmounted ext2 filesystems, and most of the other core |
| 25 | ext2fs filesystem utilities. |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 26 | |
| 27 | You should install the e2fsprogs package if you are using any ext2 |
| 28 | filesystems (if you're not sure, you probably should install this |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 29 | package). You may also need to install it (even if you don't use |
| 30 | ext2) for the libuuid and libblkid libraries and fsck tool that are |
| 31 | included here. |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 32 | |
| 33 | %package devel |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 34 | Summary: Ext2 filesystem-specific static libraries and headers. |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 35 | Group: Development/Libraries |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 36 | Requires: e2fsprogs = %{version} |
| 37 | Prereq: /sbin/install-info |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 38 | |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 39 | %description devel |
Theodore Ts'o | 8a31ffe | 1999-10-23 03:33:15 +0000 | [diff] [blame] | 40 | E2fsprogs-devel contains the libraries and header files needed to |
| 41 | develop second extended (ext2) filesystem-specific programs. |
| 42 | |
| 43 | You should install e2fsprogs-devel if you want to develop ext2 |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 44 | filesystem-specific programs. If you install e2fsprogs-devel, you'll |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 45 | also want to install e2fsprogs. |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 46 | |
| 47 | %prep |
| 48 | %setup |
| 49 | |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 50 | %build |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 51 | %configure --enable-elf-shlibs --enable-nls |
| 52 | make |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 53 | |
| 54 | %install |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 55 | rm -rf $RPM_BUILD_ROOT |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 56 | export PATH=/sbin:$PATH |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 57 | make install install-libs DESTDIR="$RPM_BUILD_ROOT" \ |
| 58 | root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir} |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 59 | /sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir} |
| 60 | %find_lang %{name} |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 61 | |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 62 | %clean |
| 63 | rm -rf $RPM_BUILD_ROOT |
| 64 | |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 65 | %post -p /sbin/ldconfig |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 66 | |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 67 | %postun -p /sbin/ldconfig |
| 68 | |
| 69 | %post devel |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 70 | if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 71 | /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 72 | fi |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 73 | exit 0 |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 74 | |
| 75 | %postun devel |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 76 | if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 77 | /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 78 | fi |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 79 | exit 0 |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 80 | |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 81 | %files -f %{name}.lang |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 82 | %defattr(-,root,root) |
| 83 | %doc README RELEASE-NOTES |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 84 | |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 85 | %{_root_sbindir}/badblocks |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 86 | %{_root_sbindir}/blkid |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 87 | %{_root_sbindir}/debugfs |
| 88 | %{_root_sbindir}/dumpe2fs |
| 89 | %{_root_sbindir}/e2fsck |
| 90 | %{_root_sbindir}/e2image |
| 91 | %{_root_sbindir}/e2label |
| 92 | %{_root_sbindir}/findfs |
| 93 | %{_root_sbindir}/fsck |
| 94 | %{_root_sbindir}/fsck.ext2 |
| 95 | %{_root_sbindir}/fsck.ext3 |
Theodore Ts'o | f9ddad5 | 2003-04-14 18:05:12 -0400 | [diff] [blame] | 96 | %{_root_sbindir}/logsave |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 97 | %{_root_sbindir}/mke2fs |
| 98 | %{_root_sbindir}/mkfs.ext2 |
| 99 | %{_root_sbindir}/mkfs.ext3 |
| 100 | %{_root_sbindir}/resize2fs |
| 101 | %{_root_sbindir}/tune2fs |
Theodore Ts'o | 477b235 | 2003-12-25 14:31:08 -0500 | [diff] [blame] | 102 | %{_sbindir}/filefrag |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 103 | %{_sbindir}/mklost+found |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 104 | |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 105 | %{_root_libdir}/libblkid.so.* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 106 | %{_root_libdir}/libcom_err.so.* |
| 107 | %{_root_libdir}/libe2p.so.* |
| 108 | %{_root_libdir}/libext2fs.so.* |
| 109 | %{_root_libdir}/libss.so.* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 110 | %{_root_libdir}/libuuid.so.* |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 111 | |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 112 | %{_bindir}/chattr |
| 113 | %{_bindir}/lsattr |
| 114 | %{_bindir}/uuidgen |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 115 | %{_mandir}/man1/chattr.1* |
| 116 | %{_mandir}/man1/lsattr.1* |
| 117 | %{_mandir}/man1/uuidgen.1* |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 118 | |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 119 | %{_mandir}/man8/badblocks.8* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 120 | %{_mandir}/man8/blkid.8* |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 121 | %{_mandir}/man8/debugfs.8* |
| 122 | %{_mandir}/man8/dumpe2fs.8* |
| 123 | %{_mandir}/man8/e2fsck.8* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 124 | %{_mandir}/man8/findfs.8* |
| 125 | %{_mandir}/man8/fsck.ext2.8* |
| 126 | %{_mandir}/man8/fsck.ext3.8* |
Theodore Ts'o | d5d9215 | 2001-05-11 06:19:33 +0000 | [diff] [blame] | 127 | %{_mandir}/man8/e2image.8* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 128 | %{_mandir}/man8/e2label.8* |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 129 | %{_mandir}/man8/fsck.8* |
Theodore Ts'o | f9ddad5 | 2003-04-14 18:05:12 -0400 | [diff] [blame] | 130 | %{_mandir}/man8/logsave.8* |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 131 | %{_mandir}/man8/mke2fs.8* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 132 | %{_mandir}/man8/mkfs.ext2.8* |
| 133 | %{_mandir}/man8/mkfs.ext3.8* |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 134 | %{_mandir}/man8/mklost+found.8* |
| 135 | %{_mandir}/man8/resize2fs.8* |
| 136 | %{_mandir}/man8/tune2fs.8* |
Theodore Ts'o | 477b235 | 2003-12-25 14:31:08 -0500 | [diff] [blame] | 137 | %{_mandir}/man8/filefrag.8* |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 138 | |
| 139 | %files devel |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 140 | %defattr(-,root,root) |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 141 | %{_infodir}/libext2fs.info* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 142 | %{_bindir}/compile_et |
| 143 | %{_bindir}/mk_cmds |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 144 | |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 145 | %{_libdir}/libblkid.a |
| 146 | %{_libdir}/libblkid.so |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 147 | %{_libdir}/libcom_err.a |
| 148 | %{_libdir}/libcom_err.so |
| 149 | %{_libdir}/libe2p.a |
| 150 | %{_libdir}/libe2p.so |
| 151 | %{_libdir}/libext2fs.a |
| 152 | %{_libdir}/libext2fs.so |
| 153 | %{_libdir}/libss.a |
| 154 | %{_libdir}/libss.so |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 155 | %{_libdir}/libuuid.a |
| 156 | %{_libdir}/libuuid.so |
Theodore Ts'o | f9e6706 | 2000-07-13 23:25:54 +0000 | [diff] [blame] | 157 | |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 158 | %{_datadir}/et |
| 159 | %{_datadir}/ss |
| 160 | %{_includedir}/blkid |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 161 | %{_includedir}/e2p |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 162 | %{_includedir}/et |
| 163 | %{_includedir}/ext2fs |
| 164 | %{_includedir}/ss |
| 165 | %{_includedir}/uuid |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 166 | %{_mandir}/man1/compile_et.1* |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 167 | %{_mandir}/man1/mk_cmds.1* |
Theodore Ts'o | 16c1ce8 | 2000-10-25 14:59:13 +0000 | [diff] [blame] | 168 | %{_mandir}/man3/com_err.3* |
Theodore Ts'o | d606c30 | 2003-03-16 20:40:36 -0500 | [diff] [blame] | 169 | %{_mandir}/man3/libblkid.3* |
Theodore Ts'o | cf1b23e | 2004-03-04 21:05:14 -0500 | [diff] [blame] | 170 | %{_mandir}/man3/libuuid.3* |
| 171 | %{_mandir}/man3/uuid_clear.3* |
| 172 | %{_mandir}/man3/uuid_compare.3* |
| 173 | %{_mandir}/man3/uuid_copy.3* |
| 174 | %{_mandir}/man3/uuid_generate.3* |
| 175 | %{_mandir}/man3/uuid_generate_random.3* |
| 176 | %{_mandir}/man3/uuid_generate_time.3* |
| 177 | %{_mandir}/man3/uuid_is_null.3* |
| 178 | %{_mandir}/man3/uuid_parse.3* |
| 179 | %{_mandir}/man3/uuid_time.3* |
| 180 | %{_mandir}/man3/uuid_unparse.3* |
| 181 | |