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