mirror of https://github.com/vitalif/e2fsprogs
Update some changes from RedHat's e2fsprogs.spec file.
Add blkid library files to the rpm file.bitmap-optimize
parent
6cca7ba96d
commit
d606c308ea
140
e2fsprogs.spec
140
e2fsprogs.spec
|
@ -1,12 +1,16 @@
|
||||||
|
%define _root_sbindir /sbin
|
||||||
|
%define _root_libdir /%{_lib}
|
||||||
|
|
||||||
Summary: Utilities for managing the second extended (ext2) filesystem.
|
Summary: Utilities for managing the second extended (ext2) filesystem.
|
||||||
Name: e2fsprogs
|
Name: e2fsprogs
|
||||||
Version: 1.32
|
Version: 1.33
|
||||||
Release: 0
|
Release: 0
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Buildroot: /var/tmp/%{name}-root
|
Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
|
||||||
Source: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
|
Url: http://e2fsprogs.sourceforge.net/
|
||||||
Prereq: /sbin/ldconfig
|
Prereq: /sbin/ldconfig
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The e2fsprogs package contains a number of utilities for creating,
|
The e2fsprogs package contains a number of utilities for creating,
|
||||||
|
@ -22,12 +26,15 @@ utilities.
|
||||||
|
|
||||||
You should install the e2fsprogs package if you are using any ext2
|
You should install the e2fsprogs package if you are using any ext2
|
||||||
filesystems (if you're not sure, you probably should install this
|
filesystems (if you're not sure, you probably should install this
|
||||||
package).
|
package). You may also need to install it (even if you don't use
|
||||||
|
ext2) for the libuuid and libblkid libraries and fsck tool that are
|
||||||
|
included here.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Ext2 filesystem-specific static libraries and headers.
|
Summary: Ext2 filesystem-specific static libraries and headers.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: e2fsprogs
|
Requires: e2fsprogs = %{version}
|
||||||
|
Prereq: /sbin/install-info
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
E2fsprogs-devel contains the libraries and header files needed to
|
E2fsprogs-devel contains the libraries and header files needed to
|
||||||
|
@ -40,34 +47,40 @@ also need to install e2fsprogs.
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
chmod 755 configure
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ; export CFLAGS
|
autoconf
|
||||||
./configure --enable-elf-shlibs --mandir=%{_mandir} --infodir=%{_infodir}
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-elf-shlibs
|
||||||
make libs progs docs
|
make libs progs docs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
export PATH=/sbin:$PATH
|
export PATH=/sbin:$PATH
|
||||||
make install install-libs DESTDIR="$RPM_BUILD_ROOT"
|
make install install-libs DESTDIR="$RPM_BUILD_ROOT" \
|
||||||
|
root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
|
||||||
|
|
||||||
|
cd ${RPM_BUILD_ROOT}%{_libdir}
|
||||||
|
ln -sf %{_root_libdir}/libcom_err.so.2 libcom_err.so
|
||||||
|
ln -sf %{_root_libdir}/libe2p.so.2 libe2p.so
|
||||||
|
ln -sf %{_root_libdir}/libext2fs.so.2 libext2fs.so
|
||||||
|
ln -sf %{_root_libdir}/libss.so.2 libss.so
|
||||||
|
ln -sf %{_root_libdir}/libuuid.so.1 libuuid.so
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
# Remove possibly old version
|
|
||||||
/bin/rm -f /usr/sbin/resize2fs
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
if [ -x /sbin/install-info ]; then
|
if [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
|
||||||
/sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun devel
|
%postun devel
|
||||||
if [ $1 = 0 -a -x /sbin/install-info ]; then
|
if [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
/sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -75,43 +88,52 @@ fi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README RELEASE-NOTES
|
%doc README RELEASE-NOTES
|
||||||
|
|
||||||
/sbin/badblocks
|
%{_root_sbindir}/blkid
|
||||||
/sbin/debugfs
|
%{_root_sbindir}/badblocks
|
||||||
/sbin/dumpe2fs
|
%{_root_sbindir}/debugfs
|
||||||
/sbin/e2fsck
|
%{_root_sbindir}/dumpe2fs
|
||||||
/sbin/e2label
|
%{_root_sbindir}/e2fsck
|
||||||
/sbin/e2image
|
%{_root_sbindir}/e2image
|
||||||
/sbin/fsck
|
%{_root_sbindir}/e2label
|
||||||
/sbin/fsck.ext2
|
%{_root_sbindir}/findfs
|
||||||
/sbin/fsck.ext3
|
%{_root_sbindir}/fsck
|
||||||
/sbin/mke2fs
|
%{_root_sbindir}/fsck.ext2
|
||||||
/sbin/mkfs.ext2
|
%{_root_sbindir}/fsck.ext3
|
||||||
/sbin/mkfs.ext3
|
%{_root_sbindir}/mke2fs
|
||||||
/sbin/tune2fs
|
%{_root_sbindir}/mkfs.ext2
|
||||||
/sbin/resize2fs
|
%{_root_sbindir}/mkfs.ext3
|
||||||
/usr/sbin/mklost+found
|
%{_root_sbindir}/resize2fs
|
||||||
|
%{_root_sbindir}/tune2fs
|
||||||
|
%{_sbindir}/mklost+found
|
||||||
|
|
||||||
/lib/libcom_err.so.*
|
%{_root_libdir}/libcom_err.so.*
|
||||||
/lib/libe2p.so.*
|
%{_root_libdir}/libe2p.so.*
|
||||||
/lib/libext2fs.so.*
|
%{_root_libdir}/libext2fs.so.*
|
||||||
/lib/libss.so.*
|
%{_root_libdir}/libss.so.*
|
||||||
/lib/libuuid.so.*
|
%{_root_libdir}/libblkid.so.*
|
||||||
|
%{_root_libdir}/libuuid.so.*
|
||||||
|
|
||||||
/usr/bin/chattr
|
%{_bindir}/chattr
|
||||||
/usr/bin/lsattr
|
%{_bindir}/lsattr
|
||||||
/usr/bin/uuidgen
|
%{_bindir}/uuidgen
|
||||||
%{_mandir}/man1/chattr.1*
|
%{_mandir}/man1/chattr.1*
|
||||||
%{_mandir}/man1/lsattr.1*
|
%{_mandir}/man1/lsattr.1*
|
||||||
%{_mandir}/man1/uuidgen.1*
|
%{_mandir}/man1/uuidgen.1*
|
||||||
|
|
||||||
%{_mandir}/man8/badblocks.8*
|
%{_mandir}/man8/badblocks.8*
|
||||||
|
%{_mandir}/man8/blkid.8*
|
||||||
%{_mandir}/man8/debugfs.8*
|
%{_mandir}/man8/debugfs.8*
|
||||||
%{_mandir}/man8/dumpe2fs.8*
|
%{_mandir}/man8/dumpe2fs.8*
|
||||||
%{_mandir}/man8/e2fsck.8*
|
%{_mandir}/man8/e2fsck.8*
|
||||||
%{_mandir}/man8/e2label.8*
|
%{_mandir}/man8/findfs.8*
|
||||||
|
%{_mandir}/man8/fsck.ext2.8*
|
||||||
|
%{_mandir}/man8/fsck.ext3.8*
|
||||||
%{_mandir}/man8/e2image.8*
|
%{_mandir}/man8/e2image.8*
|
||||||
|
%{_mandir}/man8/e2label.8*
|
||||||
%{_mandir}/man8/fsck.8*
|
%{_mandir}/man8/fsck.8*
|
||||||
%{_mandir}/man8/mke2fs.8*
|
%{_mandir}/man8/mke2fs.8*
|
||||||
|
%{_mandir}/man8/mkfs.ext2.8*
|
||||||
|
%{_mandir}/man8/mkfs.ext3.8*
|
||||||
%{_mandir}/man8/mklost+found.8*
|
%{_mandir}/man8/mklost+found.8*
|
||||||
%{_mandir}/man8/resize2fs.8*
|
%{_mandir}/man8/resize2fs.8*
|
||||||
%{_mandir}/man8/tune2fs.8*
|
%{_mandir}/man8/tune2fs.8*
|
||||||
|
@ -119,27 +141,31 @@ fi
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_infodir}/libext2fs.info*
|
%{_infodir}/libext2fs.info*
|
||||||
/usr/bin/compile_et
|
%{_bindir}/compile_et
|
||||||
/usr/bin/mk_cmds
|
%{_bindir}/mk_cmds
|
||||||
|
|
||||||
/usr/lib/libcom_err.a
|
%{_libdir}/libcom_err.a
|
||||||
/usr/lib/libcom_err.so
|
%{_libdir}/libcom_err.so
|
||||||
/usr/lib/libe2p.a
|
%{_libdir}/libe2p.a
|
||||||
/usr/lib/libe2p.so
|
%{_libdir}/libe2p.so
|
||||||
/usr/lib/libext2fs.a
|
%{_libdir}/libext2fs.a
|
||||||
/usr/lib/libext2fs.so
|
%{_libdir}/libext2fs.so
|
||||||
/usr/lib/libss.a
|
%{_libdir}/libss.a
|
||||||
/usr/lib/libss.so
|
%{_libdir}/libss.so
|
||||||
/usr/lib/libuuid.a
|
%{_libdir}/libblkid.a
|
||||||
/usr/lib/libuuid.so
|
%{_libdir}/libblkid.so
|
||||||
|
%{_libdir}/libuuid.a
|
||||||
|
%{_libdir}/libuuid.so
|
||||||
|
|
||||||
/usr/share/et
|
%{_datadir}/et
|
||||||
/usr/share/ss
|
%{_datadir}/ss
|
||||||
/usr/include/et
|
%{_includedir}/blkid
|
||||||
/usr/include/ext2fs
|
%{_includedir}/et
|
||||||
/usr/include/ss
|
%{_includedir}/ext2fs
|
||||||
/usr/include/uuid
|
%{_includedir}/ss
|
||||||
|
%{_includedir}/uuid
|
||||||
%{_mandir}/man1/compile_et.1*
|
%{_mandir}/man1/compile_et.1*
|
||||||
%{_mandir}/man3/com_err.3*
|
%{_mandir}/man3/com_err.3*
|
||||||
%{_mandir}/man3/libuuid.3*
|
%{_mandir}/man3/libuuid.3*
|
||||||
%{_mandir}/man3/uuid*.3*
|
%{_mandir}/man3/uuid*.3*
|
||||||
|
%{_mandir}/man3/libblkid.3*
|
||||||
|
|
Loading…
Reference in New Issue