blob: bf78ebb21e9144eedef0855f0148ac51c788fa00 [file] [log] [blame]
Theodore Ts'od606c302003-03-16 20:40:36 -05001%define _root_sbindir /sbin
2%define _root_libdir /%{_lib}
Theodore Ts'o36569f82004-05-04 22:17:27 -04003%define _root_localedir /usr/share/locale
Theodore Ts'od606c302003-03-16 20:40:36 -05004
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00005Summary: Utilities for managing the second extended (ext2) filesystem.
Theodore Ts'o24757fa1997-04-29 17:39:27 +00006Name: e2fsprogs
Theodore Ts'obff0cc92003-03-23 01:37:53 -05007Version: @E2FSPROGS_VERSION@
Theodore Ts'o24757fa1997-04-29 17:39:27 +00008Release: 0
Theodore Ts'of6c9b0e2006-09-12 01:43:42 -04009License: GPLv2
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000010Group: System Environment/Base
Theodore Ts'od606c302003-03-16 20:40:36 -050011Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
12Url: http://e2fsprogs.sourceforge.net/
Theodore Ts'of9e67062000-07-13 23:25:54 +000013Prereq: /sbin/ldconfig
Theodore Ts'od606c302003-03-16 20:40:36 -050014BuildRoot: %{_tmppath}/%{name}-root
Theodore Ts'o24757fa1997-04-29 17:39:27 +000015
16%description
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000017The e2fsprogs package contains a number of utilities for creating,
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050018checking, modifying, and correcting any inconsistencies in second
19extended (ext2) filesystems. E2fsprogs contains e2fsck (used to
20repair filesystem inconsistencies after an unclean shutdown), mke2fs
21(used to initialize a partition to contain an empty ext2 filesystem),
22debugfs (used to examine the internal structure of a filesystem, to
23manually repair a corrupted filesystem or to create test cases for
24e2fsck), tune2fs (used to modify filesystem parameters), resize2fs to
25grow and shrink unmounted ext2 filesystems, and most of the other core
26ext2fs filesystem utilities.
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000027
28You should install the e2fsprogs package if you are using any ext2
29filesystems (if you're not sure, you probably should install this
Theodore Ts'od606c302003-03-16 20:40:36 -050030package). You may also need to install it (even if you don't use
31ext2) for the libuuid and libblkid libraries and fsck tool that are
32included here.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000033
34%package devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000035Summary: Ext2 filesystem-specific static libraries and headers.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000036Group: Development/Libraries
Theodore Ts'od606c302003-03-16 20:40:36 -050037Requires: e2fsprogs = %{version}
38Prereq: /sbin/install-info
Theodore Ts'o24757fa1997-04-29 17:39:27 +000039
Theodore Ts'of9e67062000-07-13 23:25:54 +000040%description devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000041E2fsprogs-devel contains the libraries and header files needed to
42develop second extended (ext2) filesystem-specific programs.
43
44You should install e2fsprogs-devel if you want to develop ext2
Theodore Ts'of9e67062000-07-13 23:25:54 +000045filesystem-specific programs. If you install e2fsprogs-devel, you'll
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050046also want to install e2fsprogs.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000047
48%prep
49%setup
50
Theodore Ts'od606c302003-03-16 20:40:36 -050051%build
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050052%configure --enable-elf-shlibs --enable-nls
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050053make
Theodore Ts'o24757fa1997-04-29 17:39:27 +000054
55%install
Theodore Ts'of9e67062000-07-13 23:25:54 +000056rm -rf $RPM_BUILD_ROOT
Theodore Ts'o24757fa1997-04-29 17:39:27 +000057export PATH=/sbin:$PATH
Theodore Ts'od606c302003-03-16 20:40:36 -050058make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
59 root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050060/sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir}
61%find_lang %{name}
Theodore Ts'o24757fa1997-04-29 17:39:27 +000062
Theodore Ts'o24757fa1997-04-29 17:39:27 +000063%clean
64rm -rf $RPM_BUILD_ROOT
65
Theodore Ts'od606c302003-03-16 20:40:36 -050066%post -p /sbin/ldconfig
Theodore Ts'o24757fa1997-04-29 17:39:27 +000067
Theodore Ts'of9e67062000-07-13 23:25:54 +000068%postun -p /sbin/ldconfig
69
70%post devel
Theodore Ts'od606c302003-03-16 20:40:36 -050071if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050072 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000073fi
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050074exit 0
Theodore Ts'of9e67062000-07-13 23:25:54 +000075
76%postun devel
Theodore Ts'od606c302003-03-16 20:40:36 -050077if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000078 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000079fi
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050080exit 0
Theodore Ts'o24757fa1997-04-29 17:39:27 +000081
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050082%files -f %{name}.lang
Theodore Ts'of9e67062000-07-13 23:25:54 +000083%defattr(-,root,root)
84%doc README RELEASE-NOTES
Theodore Ts'o24757fa1997-04-29 17:39:27 +000085
Theodore Ts'od606c302003-03-16 20:40:36 -050086%{_root_sbindir}/badblocks
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050087%{_root_sbindir}/blkid
Theodore Ts'od606c302003-03-16 20:40:36 -050088%{_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'of9ddad52003-04-14 18:05:12 -040097%{_root_sbindir}/logsave
Theodore Ts'od606c302003-03-16 20:40:36 -050098%{_root_sbindir}/mke2fs
99%{_root_sbindir}/mkfs.ext2
100%{_root_sbindir}/mkfs.ext3
101%{_root_sbindir}/resize2fs
102%{_root_sbindir}/tune2fs
Theodore Ts'o477b2352003-12-25 14:31:08 -0500103%{_sbindir}/filefrag
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500104%{_sbindir}/mklost+found
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000105
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500106%{_root_libdir}/libblkid.so.*
Theodore Ts'od606c302003-03-16 20:40:36 -0500107%{_root_libdir}/libcom_err.so.*
108%{_root_libdir}/libe2p.so.*
109%{_root_libdir}/libext2fs.so.*
110%{_root_libdir}/libss.so.*
Theodore Ts'od606c302003-03-16 20:40:36 -0500111%{_root_libdir}/libuuid.so.*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000112
Theodore Ts'o6ea8d0f2004-09-24 12:15:14 -0400113%{_libdir}/e2initrd_helper
114
Theodore Ts'od606c302003-03-16 20:40:36 -0500115%{_bindir}/chattr
116%{_bindir}/lsattr
117%{_bindir}/uuidgen
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000118%{_mandir}/man1/chattr.1*
119%{_mandir}/man1/lsattr.1*
120%{_mandir}/man1/uuidgen.1*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000121
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000122%{_mandir}/man8/badblocks.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500123%{_mandir}/man8/blkid.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000124%{_mandir}/man8/debugfs.8*
125%{_mandir}/man8/dumpe2fs.8*
126%{_mandir}/man8/e2fsck.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500127%{_mandir}/man8/findfs.8*
128%{_mandir}/man8/fsck.ext2.8*
129%{_mandir}/man8/fsck.ext3.8*
Theodore Ts'od5d92152001-05-11 06:19:33 +0000130%{_mandir}/man8/e2image.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500131%{_mandir}/man8/e2label.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000132%{_mandir}/man8/fsck.8*
Theodore Ts'of9ddad52003-04-14 18:05:12 -0400133%{_mandir}/man8/logsave.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000134%{_mandir}/man8/mke2fs.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500135%{_mandir}/man8/mkfs.ext2.8*
136%{_mandir}/man8/mkfs.ext3.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000137%{_mandir}/man8/mklost+found.8*
138%{_mandir}/man8/resize2fs.8*
139%{_mandir}/man8/tune2fs.8*
Theodore Ts'o477b2352003-12-25 14:31:08 -0500140%{_mandir}/man8/filefrag.8*
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000141
Theodore Ts'o36569f82004-05-04 22:17:27 -0400142%{_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'o24757fa1997-04-29 17:39:27 +0000150%files devel
Theodore Ts'of9e67062000-07-13 23:25:54 +0000151%defattr(-,root,root)
Theodore Ts'of5955dd2000-10-25 02:38:39 +0000152%{_infodir}/libext2fs.info*
Theodore Ts'od606c302003-03-16 20:40:36 -0500153%{_bindir}/compile_et
154%{_bindir}/mk_cmds
Theodore Ts'of9e67062000-07-13 23:25:54 +0000155
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500156%{_libdir}/libblkid.a
157%{_libdir}/libblkid.so
Theodore Ts'od606c302003-03-16 20:40:36 -0500158%{_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'od606c302003-03-16 20:40:36 -0500166%{_libdir}/libuuid.a
167%{_libdir}/libuuid.so
Theodore Ts'of9e67062000-07-13 23:25:54 +0000168
Theodore Ts'oe6441862005-01-26 12:59:25 -0500169%{_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'od606c302003-03-16 20:40:36 -0500176%{_datadir}/et
177%{_datadir}/ss
178%{_includedir}/blkid
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500179%{_includedir}/e2p
Theodore Ts'od606c302003-03-16 20:40:36 -0500180%{_includedir}/et
181%{_includedir}/ext2fs
182%{_includedir}/ss
183%{_includedir}/uuid
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000184%{_mandir}/man1/compile_et.1*
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500185%{_mandir}/man1/mk_cmds.1*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000186%{_mandir}/man3/com_err.3*
Theodore Ts'od606c302003-03-16 20:40:36 -0500187%{_mandir}/man3/libblkid.3*
Theodore Ts'o6d493492004-05-04 22:05:05 -0400188%{_mandir}/man3/uuid.3*
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500189%{_mandir}/man3/uuid_clear.3*
190%{_mandir}/man3/uuid_compare.3*
191%{_mandir}/man3/uuid_copy.3*
192%{_mandir}/man3/uuid_generate.3*
193%{_mandir}/man3/uuid_generate_random.3*
194%{_mandir}/man3/uuid_generate_time.3*
195%{_mandir}/man3/uuid_is_null.3*
196%{_mandir}/man3/uuid_parse.3*
197%{_mandir}/man3/uuid_time.3*
198%{_mandir}/man3/uuid_unparse.3*
199