blob: 51b553864ed84e63a026d3ac8b6e44007b6a7a64 [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
Andreas Dilger927566a2006-11-12 19:41:25 -05004%define _root_etcdir /etc
Theodore Ts'od606c302003-03-16 20:40:36 -05005
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00006Summary: Utilities for managing the second extended (ext2) filesystem.
Theodore Ts'o24757fa1997-04-29 17:39:27 +00007Name: e2fsprogs
Andreas Dilger927566a2006-11-12 19:41:25 -05008Version: @E2FSPROGS_PKGVER@
Theodore Ts'o24757fa1997-04-29 17:39:27 +00009Release: 0
Theodore Ts'of6c9b0e2006-09-12 01:43:42 -040010License: GPLv2
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000011Group: System Environment/Base
Theodore Ts'od606c302003-03-16 20:40:36 -050012Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
13Url: http://e2fsprogs.sourceforge.net/
Theodore Ts'of9e67062000-07-13 23:25:54 +000014Prereq: /sbin/ldconfig
Theodore Ts'od606c302003-03-16 20:40:36 -050015BuildRoot: %{_tmppath}/%{name}-root
Theodore Ts'o24757fa1997-04-29 17:39:27 +000016
17%description
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000018The e2fsprogs package contains a number of utilities for creating,
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050019checking, modifying, and correcting any inconsistencies in second
20extended (ext2) filesystems. E2fsprogs contains e2fsck (used to
21repair filesystem inconsistencies after an unclean shutdown), mke2fs
22(used to initialize a partition to contain an empty ext2 filesystem),
23debugfs (used to examine the internal structure of a filesystem, to
24manually repair a corrupted filesystem or to create test cases for
25e2fsck), tune2fs (used to modify filesystem parameters), resize2fs to
26grow and shrink unmounted ext2 filesystems, and most of the other core
27ext2fs filesystem utilities.
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000028
29You should install the e2fsprogs package if you are using any ext2
30filesystems (if you're not sure, you probably should install this
Theodore Ts'od606c302003-03-16 20:40:36 -050031package). You may also need to install it (even if you don't use
32ext2) for the libuuid and libblkid libraries and fsck tool that are
33included here.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000034
35%package devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000036Summary: Ext2 filesystem-specific static libraries and headers.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000037Group: Development/Libraries
Theodore Ts'od606c302003-03-16 20:40:36 -050038Requires: e2fsprogs = %{version}
39Prereq: /sbin/install-info
Theodore Ts'o24757fa1997-04-29 17:39:27 +000040
Theodore Ts'of9e67062000-07-13 23:25:54 +000041%description devel
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +000042E2fsprogs-devel contains the libraries and header files needed to
43develop second extended (ext2) filesystem-specific programs.
44
45You should install e2fsprogs-devel if you want to develop ext2
Theodore Ts'of9e67062000-07-13 23:25:54 +000046filesystem-specific programs. If you install e2fsprogs-devel, you'll
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050047also want to install e2fsprogs.
Theodore Ts'o24757fa1997-04-29 17:39:27 +000048
49%prep
50%setup
51
Theodore Ts'od606c302003-03-16 20:40:36 -050052%build
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050053%configure --enable-elf-shlibs --enable-nls
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050054make
Theodore Ts'o24757fa1997-04-29 17:39:27 +000055
56%install
Theodore Ts'of9e67062000-07-13 23:25:54 +000057rm -rf $RPM_BUILD_ROOT
Theodore Ts'o24757fa1997-04-29 17:39:27 +000058export PATH=/sbin:$PATH
Theodore Ts'od606c302003-03-16 20:40:36 -050059make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
60 root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050061/sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir}
62%find_lang %{name}
Theodore Ts'o24757fa1997-04-29 17:39:27 +000063
Theodore Ts'o24757fa1997-04-29 17:39:27 +000064%clean
65rm -rf $RPM_BUILD_ROOT
66
Theodore Ts'od606c302003-03-16 20:40:36 -050067%post -p /sbin/ldconfig
Theodore Ts'o24757fa1997-04-29 17:39:27 +000068
Theodore Ts'of9e67062000-07-13 23:25:54 +000069%postun -p /sbin/ldconfig
70
71%post devel
Theodore Ts'od606c302003-03-16 20:40:36 -050072if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050073 /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000074fi
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050075exit 0
Theodore Ts'of9e67062000-07-13 23:25:54 +000076
77%postun devel
Theodore Ts'od606c302003-03-16 20:40:36 -050078if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
Theodore Ts'of5955dd2000-10-25 02:38:39 +000079 /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
Theodore Ts'of9e67062000-07-13 23:25:54 +000080fi
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050081exit 0
Theodore Ts'o24757fa1997-04-29 17:39:27 +000082
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050083%files -f %{name}.lang
Theodore Ts'of9e67062000-07-13 23:25:54 +000084%defattr(-,root,root)
85%doc README RELEASE-NOTES
Theodore Ts'o24757fa1997-04-29 17:39:27 +000086
Theodore Ts'od606c302003-03-16 20:40:36 -050087%{_root_sbindir}/badblocks
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -050088%{_root_sbindir}/blkid
Theodore Ts'od606c302003-03-16 20:40:36 -050089%{_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
Theodore Ts'of9ddad52003-04-14 18:05:12 -040098%{_root_sbindir}/logsave
Theodore Ts'od606c302003-03-16 20:40:36 -050099%{_root_sbindir}/mke2fs
Andreas Dilger927566a2006-11-12 19:41:25 -0500100%{_root_etcdir}/mke2fs.conf
Theodore Ts'od606c302003-03-16 20:40:36 -0500101%{_root_sbindir}/mkfs.ext2
102%{_root_sbindir}/mkfs.ext3
103%{_root_sbindir}/resize2fs
104%{_root_sbindir}/tune2fs
Theodore Ts'o477b2352003-12-25 14:31:08 -0500105%{_sbindir}/filefrag
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500106%{_sbindir}/mklost+found
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000107
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500108%{_root_libdir}/libblkid.so.*
Theodore Ts'od606c302003-03-16 20:40:36 -0500109%{_root_libdir}/libcom_err.so.*
110%{_root_libdir}/libe2p.so.*
111%{_root_libdir}/libext2fs.so.*
112%{_root_libdir}/libss.so.*
Theodore Ts'od606c302003-03-16 20:40:36 -0500113%{_root_libdir}/libuuid.so.*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000114
Theodore Ts'o6ea8d0f2004-09-24 12:15:14 -0400115%{_libdir}/e2initrd_helper
116
Theodore Ts'od606c302003-03-16 20:40:36 -0500117%{_bindir}/chattr
118%{_bindir}/lsattr
119%{_bindir}/uuidgen
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000120%{_mandir}/man1/chattr.1*
121%{_mandir}/man1/lsattr.1*
122%{_mandir}/man1/uuidgen.1*
Theodore Ts'of9e67062000-07-13 23:25:54 +0000123
Andreas Dilger927566a2006-11-12 19:41:25 -0500124%{_mandir}/man5/e2fsck.conf.5*
125%{_mandir}/man5/mke2fs.conf.5*
126
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000127%{_mandir}/man8/badblocks.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500128%{_mandir}/man8/blkid.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000129%{_mandir}/man8/debugfs.8*
130%{_mandir}/man8/dumpe2fs.8*
131%{_mandir}/man8/e2fsck.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500132%{_mandir}/man8/findfs.8*
133%{_mandir}/man8/fsck.ext2.8*
134%{_mandir}/man8/fsck.ext3.8*
Theodore Ts'od5d92152001-05-11 06:19:33 +0000135%{_mandir}/man8/e2image.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500136%{_mandir}/man8/e2label.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000137%{_mandir}/man8/fsck.8*
Theodore Ts'of9ddad52003-04-14 18:05:12 -0400138%{_mandir}/man8/logsave.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000139%{_mandir}/man8/mke2fs.8*
Theodore Ts'od606c302003-03-16 20:40:36 -0500140%{_mandir}/man8/mkfs.ext2.8*
141%{_mandir}/man8/mkfs.ext3.8*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000142%{_mandir}/man8/mklost+found.8*
143%{_mandir}/man8/resize2fs.8*
144%{_mandir}/man8/tune2fs.8*
Theodore Ts'o477b2352003-12-25 14:31:08 -0500145%{_mandir}/man8/filefrag.8*
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000146
147%files devel
Theodore Ts'of9e67062000-07-13 23:25:54 +0000148%defattr(-,root,root)
Theodore Ts'of5955dd2000-10-25 02:38:39 +0000149%{_infodir}/libext2fs.info*
Theodore Ts'od606c302003-03-16 20:40:36 -0500150%{_bindir}/compile_et
151%{_bindir}/mk_cmds
Theodore Ts'of9e67062000-07-13 23:25:54 +0000152
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500153%{_libdir}/libblkid.a
154%{_libdir}/libblkid.so
Theodore Ts'od606c302003-03-16 20:40:36 -0500155%{_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
Theodore Ts'od606c302003-03-16 20:40:36 -0500163%{_libdir}/libuuid.a
164%{_libdir}/libuuid.so
Theodore Ts'of9e67062000-07-13 23:25:54 +0000165
Theodore Ts'oe6441862005-01-26 12:59:25 -0500166%{_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
Theodore Ts'od606c302003-03-16 20:40:36 -0500173%{_datadir}/et
174%{_datadir}/ss
175%{_includedir}/blkid
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500176%{_includedir}/e2p
Theodore Ts'od606c302003-03-16 20:40:36 -0500177%{_includedir}/et
178%{_includedir}/ext2fs
179%{_includedir}/ss
180%{_includedir}/uuid
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000181%{_mandir}/man1/compile_et.1*
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500182%{_mandir}/man1/mk_cmds.1*
Theodore Ts'o16c1ce82000-10-25 14:59:13 +0000183%{_mandir}/man3/com_err.3*
Theodore Ts'od606c302003-03-16 20:40:36 -0500184%{_mandir}/man3/libblkid.3*
Theodore Ts'o6d493492004-05-04 22:05:05 -0400185%{_mandir}/man3/uuid.3*
Theodore Ts'ocf1b23e2004-03-04 21:05:14 -0500186%{_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