Whamcloud - gitweb
Fix minor typo in e2fsck.conf.5.in man page
[tools/e2fsprogs.git] / e2fsprogs.spec.in
1 %define _root_sbindir   /sbin
2 %define _root_libdir    /%{_lib}
3 %define _root_localedir /usr/share/locale
4 %define _root_etcdir    /etc
5
6 Summary: Utilities for managing the second extended (ext2) filesystem.
7 Name: e2fsprogs
8 Version: @E2FSPROGS_PKGVER@
9 Release: 0
10 License: GPLv2
11 Group: System Environment/Base
12 Source:  ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
13 Url: http://e2fsprogs.sourceforge.net/
14 Prereq: /sbin/ldconfig
15 BuildRoot: %{_tmppath}/%{name}-root
16
17 %description
18 The e2fsprogs package contains a number of utilities for creating,
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.
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
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.
34
35 %package devel
36 Summary: Ext2 filesystem-specific static libraries and headers.
37 Group: Development/Libraries
38 Requires: e2fsprogs = %{version}
39 Prereq: /sbin/install-info
40
41 %description devel
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
46 filesystem-specific programs.  If you install e2fsprogs-devel, you'll
47 also want to install e2fsprogs.
48
49 %prep
50 %setup
51
52 %build
53 %configure --enable-elf-shlibs --enable-nls
54 make
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 export PATH=/sbin:$PATH
59 make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
60         root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
61 /sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir}
62 %find_lang %{name}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post -p /sbin/ldconfig
68
69 %postun -p /sbin/ldconfig
70
71 %post devel
72 if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
73     /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
74 fi
75 exit 0
76
77 %postun devel
78 if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
79    /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
80 fi
81 exit 0
82
83 %files -f %{name}.lang
84 %defattr(-,root,root)
85 %doc README RELEASE-NOTES
86
87 %{_root_sbindir}/badblocks
88 %{_root_sbindir}/blkid
89 %{_root_sbindir}/debugfs
90 %{_root_sbindir}/dumpe2fs
91 %{_root_sbindir}/e2fsck
92 %{_root_sbindir}/e2image
93 %{_root_sbindir}/e2label
94 %{_root_sbindir}/findfs
95 %{_root_sbindir}/fsck
96 %{_root_sbindir}/fsck.ext2
97 %{_root_sbindir}/fsck.ext3
98 %{_root_sbindir}/logsave
99 %{_root_sbindir}/mke2fs
100 %{_root_etcdir}/mke2fs.conf
101 %{_root_sbindir}/mkfs.ext2
102 %{_root_sbindir}/mkfs.ext3
103 %{_root_sbindir}/resize2fs
104 %{_root_sbindir}/tune2fs
105 %{_sbindir}/filefrag
106 %{_sbindir}/mklost+found
107
108 %{_root_libdir}/libblkid.so.*
109 %{_root_libdir}/libcom_err.so.*
110 %{_root_libdir}/libe2p.so.*
111 %{_root_libdir}/libext2fs.so.*
112 %{_root_libdir}/libss.so.*
113 %{_root_libdir}/libuuid.so.*
114
115 %{_libdir}/e2initrd_helper
116
117 %{_bindir}/chattr
118 %{_bindir}/lsattr
119 %{_bindir}/uuidgen
120 %{_mandir}/man1/chattr.1*
121 %{_mandir}/man1/lsattr.1*
122 %{_mandir}/man1/uuidgen.1*
123
124 %{_mandir}/man5/e2fsck.conf.5*
125 %{_mandir}/man5/mke2fs.conf.5*
126
127 %{_mandir}/man8/badblocks.8*
128 %{_mandir}/man8/blkid.8*
129 %{_mandir}/man8/debugfs.8*
130 %{_mandir}/man8/dumpe2fs.8*
131 %{_mandir}/man8/e2fsck.8*
132 %{_mandir}/man8/findfs.8*
133 %{_mandir}/man8/fsck.ext2.8*
134 %{_mandir}/man8/fsck.ext3.8*
135 %{_mandir}/man8/e2image.8*
136 %{_mandir}/man8/e2label.8*
137 %{_mandir}/man8/fsck.8*
138 %{_mandir}/man8/logsave.8*
139 %{_mandir}/man8/mke2fs.8*
140 %{_mandir}/man8/mkfs.ext2.8*
141 %{_mandir}/man8/mkfs.ext3.8*
142 %{_mandir}/man8/mklost+found.8*
143 %{_mandir}/man8/resize2fs.8*
144 %{_mandir}/man8/tune2fs.8*
145 %{_mandir}/man8/filefrag.8*
146
147 %files devel
148 %defattr(-,root,root)
149 %{_infodir}/libext2fs.info*
150 %{_bindir}/compile_et
151 %{_bindir}/mk_cmds
152
153 %{_libdir}/libblkid.a
154 %{_libdir}/libblkid.so
155 %{_libdir}/libcom_err.a
156 %{_libdir}/libcom_err.so
157 %{_libdir}/libe2p.a
158 %{_libdir}/libe2p.so
159 %{_libdir}/libext2fs.a
160 %{_libdir}/libext2fs.so
161 %{_libdir}/libss.a
162 %{_libdir}/libss.so
163 %{_libdir}/libuuid.a
164 %{_libdir}/libuuid.so
165
166 %{_libdir}/pkgconfig/blkid.pc
167 %{_libdir}/pkgconfig/com_err.pc
168 %{_libdir}/pkgconfig/e2p.pc
169 %{_libdir}/pkgconfig/ext2fs.pc
170 %{_libdir}/pkgconfig/ss.pc
171 %{_libdir}/pkgconfig/uuid.pc
172
173 %{_datadir}/et
174 %{_datadir}/ss
175 %{_includedir}/blkid
176 %{_includedir}/e2p
177 %{_includedir}/et
178 %{_includedir}/ext2fs
179 %{_includedir}/ss
180 %{_includedir}/uuid
181 %{_mandir}/man1/compile_et.1*
182 %{_mandir}/man1/mk_cmds.1*
183 %{_mandir}/man3/com_err.3*
184 %{_mandir}/man3/libblkid.3*
185 %{_mandir}/man3/uuid.3*
186 %{_mandir}/man3/uuid_clear.3*
187 %{_mandir}/man3/uuid_compare.3*
188 %{_mandir}/man3/uuid_copy.3*
189 %{_mandir}/man3/uuid_generate.3*
190 %{_mandir}/man3/uuid_generate_random.3*
191 %{_mandir}/man3/uuid_generate_time.3*
192 %{_mandir}/man3/uuid_is_null.3*
193 %{_mandir}/man3/uuid_parse.3*
194 %{_mandir}/man3/uuid_time.3*
195 %{_mandir}/man3/uuid_unparse.3*
196