LFS-RPM/SPECS/e2fsprogs.spec

81 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-05-24 08:27:40 -04:00
#TARBALL: https://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.44.5/e2fsprogs-1.44.5.tar.gz
#MD5SUM: 8d78b11d04d26c0b2dd149529441fa80;SOURCES/e2fsprogs-1.44.5.tar.gz
#-----------------------------------------------------------------------------
Summary: The E2fsprogs package contains the utilities for handling the ext2 file system.
Name: e2fsprogs
Version: 1.44.5
Release: 1
License: GPLv2
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: %{name}-%{version}.tar.gz
Requires: filesystem
%description
The E2fsprogs package contains the utilities for handling the ext2 file system.
It also supports the ext3 and ext4 journaling file systems.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
mkdir build
%build
cd build
../configure \
--prefix=%{_prefix} \
--bindir=/bin \
--with-root-prefix="" \
--enable-elf-shlibs \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fsck
make %{?_smp_mflags}
%install
cd build
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install-libs
cd -
chmod -v u+w %{buildroot}%{_libdir}/{libcom_err,libe2p,libext2fs,libss}.a
gunzip -v %{buildroot}%{_infodir}/libext2fs.info.gz
install-info --dir-file=%{buildroot}%{_infodir}/dir %{buildroot}%{_infodir}/libext2fs.info
makeinfo -o doc/com_err.info lib/et/com_err.texinfo
install -v -m644 doc/com_err.info %{buildroot}%{_infodir}
install-info --dir-file=%{_infodir}/dir %{buildroot}%{_infodir}/com_err.info
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 NOTICE %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
rm %{buildroot}%{_infodir}/dir
find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
sed -i '/man\/man/d' filelist.rpm
sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
%{_infodir}/*.gz
%{_mandir}/man1/*.gz
%{_mandir}/man3/*.gz
%{_mandir}/man5/*.gz
%{_mandir}/man8/*.gz
#-----------------------------------------------------------------------------
%post
pushd /usr/share/info
rm -v dir
for f in *; do install-info $f dir 2>/dev/null; done
popd
%postun
pushd /usr/share/info
rm -v dir
for f in *; do install-info $f dir 2>/dev/null; done
popd
#-----------------------------------------------------------------------------
%changelog
* Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 1.44.5-1
- LFS-8.4
* Wed Jul 25 2018 baho-utot <baho-utot@columbus.rr.com> 1.43.9-1
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.43.5-1
- Initial build. First version