2003-03-17 04:40:36 +03:00
|
|
|
%define _root_sbindir /sbin
|
|
|
|
%define _root_libdir /%{_lib}
|
2004-05-05 06:17:27 +04:00
|
|
|
%define _root_localedir /usr/share/locale
|
2006-11-13 03:41:25 +03:00
|
|
|
%define _root_etcdir /etc
|
2003-03-17 04:40:36 +03:00
|
|
|
|
2009-07-12 00:22:51 +04:00
|
|
|
Summary: Utilities for managing ext2/ext3/ext4 filesystems
|
1997-04-29 21:39:27 +04:00
|
|
|
Name: e2fsprogs
|
2006-11-13 03:41:25 +03:00
|
|
|
Version: @E2FSPROGS_PKGVER@
|
1997-04-29 21:39:27 +04:00
|
|
|
Release: 0
|
2006-09-12 09:43:42 +04:00
|
|
|
License: GPLv2
|
1999-10-23 07:33:15 +04:00
|
|
|
Group: System Environment/Base
|
2003-03-17 04:40:36 +03:00
|
|
|
Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
|
|
|
|
Url: http://e2fsprogs.sourceforge.net/
|
2000-07-14 03:25:54 +04:00
|
|
|
Prereq: /sbin/ldconfig
|
2003-03-17 04:40:36 +03:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
1997-04-29 21:39:27 +04:00
|
|
|
|
|
|
|
%description
|
1999-10-23 07:33:15 +04:00
|
|
|
The e2fsprogs package contains a number of utilities for creating,
|
2009-07-12 00:22:51 +04:00
|
|
|
checking, modifying, and correcting any inconsistencies in ext2, ext3,
|
|
|
|
and ext4 filesystems. E2fsprogs contains e2fsck (used to repair
|
|
|
|
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
|
|
|
|
initialize a partition to contain an empty ext2 filesystem), debugfs
|
|
|
|
(used to examine the internal structure of a filesystem, to manually
|
|
|
|
repair a corrupted filesystem or to create test cases for e2fsck),
|
|
|
|
tune2fs (used to modify filesystem parameters), resize2fs to grow and
|
|
|
|
shrink unmounted ext2 filesystems, and most of the other core ext2fs
|
|
|
|
filesystem utilities.
|
1999-10-23 07:33:15 +04:00
|
|
|
|
2009-07-12 00:22:51 +04:00
|
|
|
You should install the e2fsprogs package if you are using any ext2,
|
|
|
|
ext3, or ext4 filesystems (if you're not sure, you probably should
|
|
|
|
install this package). You may also need to install it (even if you
|
|
|
|
don't use ext2/ext3/ext4) for the libuuid and libblkid libraries and
|
|
|
|
fsck tool that are included here.
|
1997-04-29 21:39:27 +04:00
|
|
|
|
|
|
|
%package devel
|
1999-10-23 07:33:15 +04:00
|
|
|
Summary: Ext2 filesystem-specific static libraries and headers.
|
1997-04-29 21:39:27 +04:00
|
|
|
Group: Development/Libraries
|
2003-03-17 04:40:36 +03:00
|
|
|
Requires: e2fsprogs = %{version}
|
|
|
|
Prereq: /sbin/install-info
|
1997-04-29 21:39:27 +04:00
|
|
|
|
2000-07-14 03:25:54 +04:00
|
|
|
%description devel
|
1999-10-23 07:33:15 +04:00
|
|
|
E2fsprogs-devel contains the libraries and header files needed to
|
2009-07-12 00:22:51 +04:00
|
|
|
develop ext2, ext3, or ext4 filesystem-specific programs.
|
1999-10-23 07:33:15 +04:00
|
|
|
|
2009-07-12 00:22:51 +04:00
|
|
|
You should install e2fsprogs-devel if you want to develop
|
|
|
|
ext2. ext3. or ext4 filesystem-specific programs. If you install
|
|
|
|
e2fsprogs-devel, you'll also want to install e2fsprogs.
|
1997-04-29 21:39:27 +04:00
|
|
|
|
2008-01-20 02:13:32 +03:00
|
|
|
%package -n uuidd
|
|
|
|
Summary: helper daemon to guarantee uniqueness of time-based UUIDs
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPLv2
|
|
|
|
Requires: e2fsprogs = %{version}
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
%description -n uuidd
|
|
|
|
The uuidd package contains a userspace daemon (uuidd) which guarantees
|
|
|
|
uniqueness of time-based UUID generation even at very high rates on
|
|
|
|
SMP systems.
|
|
|
|
|
1997-04-29 21:39:27 +04:00
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
2003-03-17 04:40:36 +03:00
|
|
|
%build
|
2008-08-25 05:03:17 +04:00
|
|
|
%configure --enable-elf-shlibs --enable-nls \
|
|
|
|
%{?extra_config_flags:%extra_config_flags}
|
2004-03-05 05:05:14 +03:00
|
|
|
make
|
2007-08-04 04:12:32 +04:00
|
|
|
make check
|
1997-04-29 21:39:27 +04:00
|
|
|
|
|
|
|
%install
|
2000-07-14 03:25:54 +04:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
1997-04-29 21:39:27 +04:00
|
|
|
export PATH=/sbin:$PATH
|
2003-03-17 04:40:36 +03:00
|
|
|
make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
|
|
|
|
root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
|
2004-03-05 05:05:14 +03:00
|
|
|
/sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir}
|
2008-01-20 02:13:32 +03:00
|
|
|
|
|
|
|
# Add a dir that uuidd needs that the Makefiles don't create
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/libuuid
|
|
|
|
|
2004-03-05 05:05:14 +03:00
|
|
|
%find_lang %{name}
|
1997-04-29 21:39:27 +04:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2003-03-17 04:40:36 +03:00
|
|
|
%post -p /sbin/ldconfig
|
1997-04-29 21:39:27 +04:00
|
|
|
|
2000-07-14 03:25:54 +04:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post devel
|
2003-03-17 04:40:36 +03:00
|
|
|
if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
|
2004-03-05 05:05:14 +03:00
|
|
|
/sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
2000-07-14 03:25:54 +04:00
|
|
|
fi
|
2004-03-05 05:05:14 +03:00
|
|
|
exit 0
|
2000-07-14 03:25:54 +04:00
|
|
|
|
|
|
|
%postun devel
|
2003-03-17 04:40:36 +03:00
|
|
|
if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
|
2000-10-25 06:38:39 +04:00
|
|
|
/sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
2000-07-14 03:25:54 +04:00
|
|
|
fi
|
2004-03-05 05:05:14 +03:00
|
|
|
exit 0
|
1997-04-29 21:39:27 +04:00
|
|
|
|
2008-01-20 02:13:32 +03:00
|
|
|
%pre -n uuidd
|
|
|
|
getent group uuidd >/dev/null || groupadd -r uuidd
|
|
|
|
getent passwd uuidd >/dev/null || \
|
|
|
|
useradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \
|
|
|
|
-c "UUID generator helper daemon" uuidd
|
|
|
|
exit 0
|
|
|
|
|
2004-03-05 05:05:14 +03:00
|
|
|
%files -f %{name}.lang
|
2000-07-14 03:25:54 +04:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README RELEASE-NOTES
|
|
|
|
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/badblocks
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_root_sbindir}/blkid
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/debugfs
|
|
|
|
%{_root_sbindir}/dumpe2fs
|
|
|
|
%{_root_sbindir}/e2fsck
|
|
|
|
%{_root_sbindir}/e2image
|
|
|
|
%{_root_sbindir}/e2label
|
2008-06-19 01:16:35 +04:00
|
|
|
%{_root_sbindir}/e2undo
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/findfs
|
|
|
|
%{_root_sbindir}/fsck
|
|
|
|
%{_root_sbindir}/fsck.ext2
|
|
|
|
%{_root_sbindir}/fsck.ext3
|
2008-05-15 02:23:47 +04:00
|
|
|
%{_root_sbindir}/fsck.ext4
|
|
|
|
%{_root_sbindir}/fsck.ext4dev
|
2003-04-15 02:05:12 +04:00
|
|
|
%{_root_sbindir}/logsave
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/mke2fs
|
2006-11-13 03:41:25 +03:00
|
|
|
%{_root_etcdir}/mke2fs.conf
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/mkfs.ext2
|
|
|
|
%{_root_sbindir}/mkfs.ext3
|
2008-05-15 02:23:47 +04:00
|
|
|
%{_root_sbindir}/mkfs.ext4
|
|
|
|
%{_root_sbindir}/mkfs.ext4dev
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_sbindir}/resize2fs
|
|
|
|
%{_root_sbindir}/tune2fs
|
2003-12-25 22:31:08 +03:00
|
|
|
%{_sbindir}/filefrag
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_sbindir}/mklost+found
|
2009-07-22 11:40:58 +04:00
|
|
|
%{_sbindir}/e2freefrag
|
2003-03-17 04:40:36 +03:00
|
|
|
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_root_libdir}/libblkid.so.*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_root_libdir}/libcom_err.so.*
|
|
|
|
%{_root_libdir}/libe2p.so.*
|
|
|
|
%{_root_libdir}/libext2fs.so.*
|
|
|
|
%{_root_libdir}/libss.so.*
|
|
|
|
%{_root_libdir}/libuuid.so.*
|
|
|
|
|
2004-09-24 20:15:14 +04:00
|
|
|
%{_libdir}/e2initrd_helper
|
|
|
|
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_bindir}/chattr
|
|
|
|
%{_bindir}/lsattr
|
|
|
|
%{_bindir}/uuidgen
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man1/chattr.1*
|
|
|
|
%{_mandir}/man1/lsattr.1*
|
|
|
|
%{_mandir}/man1/uuidgen.1*
|
|
|
|
|
2006-11-13 03:41:25 +03:00
|
|
|
%{_mandir}/man5/e2fsck.conf.5*
|
|
|
|
%{_mandir}/man5/mke2fs.conf.5*
|
|
|
|
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man8/badblocks.8*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_mandir}/man8/blkid.8*
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man8/debugfs.8*
|
|
|
|
%{_mandir}/man8/dumpe2fs.8*
|
|
|
|
%{_mandir}/man8/e2fsck.8*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_mandir}/man8/findfs.8*
|
|
|
|
%{_mandir}/man8/fsck.ext2.8*
|
|
|
|
%{_mandir}/man8/fsck.ext3.8*
|
2008-05-15 02:23:47 +04:00
|
|
|
%{_mandir}/man8/fsck.ext4.8*
|
|
|
|
%{_mandir}/man8/fsck.ext4dev.8*
|
2001-05-11 10:19:33 +04:00
|
|
|
%{_mandir}/man8/e2image.8*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_mandir}/man8/e2label.8*
|
2008-06-19 01:16:35 +04:00
|
|
|
%{_mandir}/man8/e2undo.8*
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man8/fsck.8*
|
2003-04-15 02:05:12 +04:00
|
|
|
%{_mandir}/man8/logsave.8*
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man8/mke2fs.8*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_mandir}/man8/mkfs.ext2.8*
|
|
|
|
%{_mandir}/man8/mkfs.ext3.8*
|
2008-05-15 02:23:47 +04:00
|
|
|
%{_mandir}/man8/mkfs.ext4.8*
|
|
|
|
%{_mandir}/man8/mkfs.ext4dev.8*
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man8/mklost+found.8*
|
|
|
|
%{_mandir}/man8/resize2fs.8*
|
|
|
|
%{_mandir}/man8/tune2fs.8*
|
2003-12-25 22:31:08 +03:00
|
|
|
%{_mandir}/man8/filefrag.8*
|
2009-07-22 11:40:58 +04:00
|
|
|
%{_mandir}/man8/e2freefrag.8*
|
1997-04-29 21:39:27 +04:00
|
|
|
|
|
|
|
%files devel
|
2000-07-14 03:25:54 +04:00
|
|
|
%defattr(-,root,root)
|
2000-10-25 06:38:39 +04:00
|
|
|
%{_infodir}/libext2fs.info*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_bindir}/compile_et
|
|
|
|
%{_bindir}/mk_cmds
|
|
|
|
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_libdir}/libblkid.a
|
|
|
|
%{_libdir}/libblkid.so
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_libdir}/libcom_err.a
|
|
|
|
%{_libdir}/libcom_err.so
|
|
|
|
%{_libdir}/libe2p.a
|
|
|
|
%{_libdir}/libe2p.so
|
|
|
|
%{_libdir}/libext2fs.a
|
|
|
|
%{_libdir}/libext2fs.so
|
|
|
|
%{_libdir}/libss.a
|
|
|
|
%{_libdir}/libss.so
|
|
|
|
%{_libdir}/libuuid.a
|
|
|
|
%{_libdir}/libuuid.so
|
|
|
|
|
2005-01-26 20:59:25 +03:00
|
|
|
%{_libdir}/pkgconfig/blkid.pc
|
|
|
|
%{_libdir}/pkgconfig/com_err.pc
|
|
|
|
%{_libdir}/pkgconfig/e2p.pc
|
|
|
|
%{_libdir}/pkgconfig/ext2fs.pc
|
|
|
|
%{_libdir}/pkgconfig/ss.pc
|
|
|
|
%{_libdir}/pkgconfig/uuid.pc
|
|
|
|
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_datadir}/et
|
|
|
|
%{_datadir}/ss
|
|
|
|
%{_includedir}/blkid
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_includedir}/e2p
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_includedir}/et
|
|
|
|
%{_includedir}/ext2fs
|
|
|
|
%{_includedir}/ss
|
|
|
|
%{_includedir}/uuid
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man1/compile_et.1*
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_mandir}/man1/mk_cmds.1*
|
2000-10-25 18:59:13 +04:00
|
|
|
%{_mandir}/man3/com_err.3*
|
2003-03-17 04:40:36 +03:00
|
|
|
%{_mandir}/man3/libblkid.3*
|
2004-05-05 06:05:05 +04:00
|
|
|
%{_mandir}/man3/uuid.3*
|
2004-03-05 05:05:14 +03:00
|
|
|
%{_mandir}/man3/uuid_clear.3*
|
|
|
|
%{_mandir}/man3/uuid_compare.3*
|
|
|
|
%{_mandir}/man3/uuid_copy.3*
|
|
|
|
%{_mandir}/man3/uuid_generate.3*
|
|
|
|
%{_mandir}/man3/uuid_generate_random.3*
|
|
|
|
%{_mandir}/man3/uuid_generate_time.3*
|
|
|
|
%{_mandir}/man3/uuid_is_null.3*
|
|
|
|
%{_mandir}/man3/uuid_parse.3*
|
|
|
|
%{_mandir}/man3/uuid_time.3*
|
|
|
|
%{_mandir}/man3/uuid_unparse.3*
|
|
|
|
|
2008-01-20 02:13:32 +03:00
|
|
|
%files -n uuidd
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# if you want to run via init
|
|
|
|
# /etc/init.d/uuidd
|
|
|
|
%{_mandir}/man8/uuidd.8*
|
|
|
|
%attr(6755, uuidd, uuidd) %{_sbindir}/uuidd
|
|
|
|
%dir %attr(2775, uuidd, uuidd) /var/lib/libuuid
|
|
|
|
|