LFS-RPM/SPECS/bash.spec

53 lines
1.9 KiB
Plaintext

#TARBALL: http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
#MD5SUM: 2b44b47b905be16f45709648f671820b;SOURCES/bash-5.0.tar.gz
#-----------------------------------------------------------------------------
Summary: The Bash package contains the Bourne-Again SHell.
Name: bash
Version: 5.0
Release: 2
License: GPLv3
URL: Any
Group: LFS/Base
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Requires: filesystem
%description
The Bash package contains the Bourne-Again SHell.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
./configure \
--prefix=%{_prefix} \
--docdir=%{_docdir}/%{NAME}-%{VERSION} \
--without-bash-malloc \
--with-installed-readline
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -vdm 755 %{buildroot}/bin
mv -vf %{buildroot}%{_bindir}/bash %{buildroot}/bin
ln -vs bash %{buildroot}/bin/sh
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 COPYING %{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/*
#-----------------------------------------------------------------------------
%changelog
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 5.0-2
* Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 5.0-1
- Update for LFS-8.4
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 4.4.18-1
- Initial build. First version