This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

79 lines
2.9 KiB

#TARBALL: https://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.45.5/e2fsprogs-1.45.5.tar.gz
#MD5SUM: 6d35428e4ce960cb7e875afe5849c0f3;SOURCES/e2fsprogs-1.45.5.tar.gz
#-----------------------------------------------------------------------------
Summary: The E2fsprogs package contains the utilities for handling the ext2 file system.
Name: e2fsprogs
Version: 1.45.5
Release: 1
License: GPLv2
URL: Any
Group: LFS/Base
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{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
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.list
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
sed -i '/man\/man/d' filelist.list
sed -i '/\/usr\/share\/info/d' filelist.list
#-----------------------------------------------------------------------------
%files -f filelist.list
%defattr(-,root,root)
%{_infodir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/*
#-----------------------------------------------------------------------------
%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
* Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.45.5-1
* 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