]>
Commit | Line | Data |
---|---|---|
d606c308 TT |
1 | %define _root_sbindir /sbin |
2 | %define _root_libdir /%{_lib} | |
3 | ||
8a31ffef | 4 | Summary: Utilities for managing the second extended (ext2) filesystem. |
24757fa0 | 5 | Name: e2fsprogs |
bff0cc95 | 6 | Version: @E2FSPROGS_VERSION@ |
24757fa0 TT |
7 | Release: 0 |
8 | Copyright: GPL | |
8a31ffef | 9 | Group: System Environment/Base |
d606c308 TT |
10 | Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz |
11 | Url: http://e2fsprogs.sourceforge.net/ | |
f9e67064 | 12 | Prereq: /sbin/ldconfig |
d606c308 | 13 | BuildRoot: %{_tmppath}/%{name}-root |
24757fa0 TT |
14 | |
15 | %description | |
8a31ffef TT |
16 | The e2fsprogs package contains a number of utilities for creating, |
17 | checking, modifying and correcting any inconsistencies in second | |
18 | extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair | |
19 | filesystem inconsistencies after an unclean shutdown), mke2fs (used to | |
20 | initialize a partition to contain an empty ext2 filesystem), debugfs | |
21 | (used to examine the internal structure of a filesystem, to manually | |
22 | repair a corrupted filesystem or to create test cases for e2fsck), tune2fs | |
7adb91d8 TT |
23 | (used to modify filesystem parameters), resize2fs to grow and shrink |
24 | unmounted ext2 filesystems, and most of the other core ext2fs filesystem | |
25 | utilities. | |
8a31ffef TT |
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 | |
d606c308 TT |
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. | |
24757fa0 TT |
32 | |
33 | %package devel | |
8a31ffef | 34 | Summary: Ext2 filesystem-specific static libraries and headers. |
24757fa0 | 35 | Group: Development/Libraries |
d606c308 TT |
36 | Requires: e2fsprogs = %{version} |
37 | Prereq: /sbin/install-info | |
24757fa0 | 38 | |
f9e67064 | 39 | %description devel |
8a31ffef TT |
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 | |
f9e67064 | 44 | filesystem-specific programs. If you install e2fsprogs-devel, you'll |
8a31ffef | 45 | also need to install e2fsprogs. |
24757fa0 TT |
46 | |
47 | %prep | |
48 | %setup | |
49 | ||
d606c308 TT |
50 | chmod 755 configure |
51 | autoconf | |
24757fa0 | 52 | |
d606c308 TT |
53 | %build |
54 | %configure --enable-elf-shlibs | |
24757fa0 TT |
55 | make libs progs docs |
56 | ||
57 | %install | |
f9e67064 | 58 | rm -rf $RPM_BUILD_ROOT |
24757fa0 | 59 | export PATH=/sbin:$PATH |
d606c308 TT |
60 | make install install-libs DESTDIR="$RPM_BUILD_ROOT" \ |
61 | root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir} | |
62 | ||
63 | cd ${RPM_BUILD_ROOT}%{_libdir} | |
64 | ln -sf %{_root_libdir}/libcom_err.so.2 libcom_err.so | |
65 | ln -sf %{_root_libdir}/libe2p.so.2 libe2p.so | |
66 | ln -sf %{_root_libdir}/libext2fs.so.2 libext2fs.so | |
67 | ln -sf %{_root_libdir}/libss.so.2 libss.so | |
68 | ln -sf %{_root_libdir}/libuuid.so.1 libuuid.so | |
24757fa0 | 69 | |
24757fa0 TT |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
d606c308 | 73 | %post -p /sbin/ldconfig |
24757fa0 | 74 | |
f9e67064 TT |
75 | %postun -p /sbin/ldconfig |
76 | ||
77 | %post devel | |
d606c308 | 78 | if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then |
f5955dda | 79 | /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir |
f9e67064 TT |
80 | fi |
81 | ||
82 | %postun devel | |
d606c308 | 83 | if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then |
f5955dda | 84 | /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir |
f9e67064 | 85 | fi |
24757fa0 TT |
86 | |
87 | %files | |
f9e67064 TT |
88 | %defattr(-,root,root) |
89 | %doc README RELEASE-NOTES | |
90 | ||
d606c308 TT |
91 | %{_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 | |
f9ddad59 | 102 | %{_root_sbindir}/logsave |
d606c308 TT |
103 | %{_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 | |
477b2353 | 109 | %{_sbindir}/filefrag |
d606c308 TT |
110 | |
111 | %{_root_libdir}/libcom_err.so.* | |
112 | %{_root_libdir}/libe2p.so.* | |
113 | %{_root_libdir}/libext2fs.so.* | |
114 | %{_root_libdir}/libss.so.* | |
115 | %{_root_libdir}/libblkid.so.* | |
116 | %{_root_libdir}/libuuid.so.* | |
117 | ||
118 | %{_bindir}/chattr | |
119 | %{_bindir}/lsattr | |
120 | %{_bindir}/uuidgen | |
16c1ce89 TT |
121 | %{_mandir}/man1/chattr.1* |
122 | %{_mandir}/man1/lsattr.1* | |
123 | %{_mandir}/man1/uuidgen.1* | |
124 | ||
125 | %{_mandir}/man8/badblocks.8* | |
d606c308 | 126 | %{_mandir}/man8/blkid.8* |
16c1ce89 TT |
127 | %{_mandir}/man8/debugfs.8* |
128 | %{_mandir}/man8/dumpe2fs.8* | |
129 | %{_mandir}/man8/e2fsck.8* | |
d606c308 TT |
130 | %{_mandir}/man8/findfs.8* |
131 | %{_mandir}/man8/fsck.ext2.8* | |
132 | %{_mandir}/man8/fsck.ext3.8* | |
d5d9215f | 133 | %{_mandir}/man8/e2image.8* |
d606c308 | 134 | %{_mandir}/man8/e2label.8* |
16c1ce89 | 135 | %{_mandir}/man8/fsck.8* |
f9ddad59 | 136 | %{_mandir}/man8/logsave.8* |
16c1ce89 | 137 | %{_mandir}/man8/mke2fs.8* |
d606c308 TT |
138 | %{_mandir}/man8/mkfs.ext2.8* |
139 | %{_mandir}/man8/mkfs.ext3.8* | |
16c1ce89 TT |
140 | %{_mandir}/man8/mklost+found.8* |
141 | %{_mandir}/man8/resize2fs.8* | |
142 | %{_mandir}/man8/tune2fs.8* | |
477b2353 | 143 | %{_mandir}/man8/filefrag.8* |
24757fa0 TT |
144 | |
145 | %files devel | |
f9e67064 | 146 | %defattr(-,root,root) |
f5955dda | 147 | %{_infodir}/libext2fs.info* |
d606c308 TT |
148 | %{_bindir}/compile_et |
149 | %{_bindir}/mk_cmds | |
150 | ||
151 | %{_libdir}/libcom_err.a | |
152 | %{_libdir}/libcom_err.so | |
153 | %{_libdir}/libe2p.a | |
154 | %{_libdir}/libe2p.so | |
155 | %{_libdir}/libext2fs.a | |
156 | %{_libdir}/libext2fs.so | |
157 | %{_libdir}/libss.a | |
158 | %{_libdir}/libss.so | |
159 | %{_libdir}/libblkid.a | |
160 | %{_libdir}/libblkid.so | |
161 | %{_libdir}/libuuid.a | |
162 | %{_libdir}/libuuid.so | |
163 | ||
164 | %{_datadir}/et | |
165 | %{_datadir}/ss | |
166 | %{_includedir}/blkid | |
167 | %{_includedir}/et | |
168 | %{_includedir}/ext2fs | |
169 | %{_includedir}/ss | |
170 | %{_includedir}/uuid | |
16c1ce89 TT |
171 | %{_mandir}/man1/compile_et.1* |
172 | %{_mandir}/man3/com_err.3* | |
4941fe80 AD |
173 | %{_mandir}/man3/libuuid.3* |
174 | %{_mandir}/man3/uuid*.3* | |
d606c308 | 175 | %{_mandir}/man3/libblkid.3* |