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