LFS-RPM/SPECS/grep.spec

48 lines
1.7 KiB
RPMSpec

#TARBALL: http://ftp.gnu.org/gnu/grep/grep-3.4.tar.xz
#MD5SUM: 111b117d22d6a7d049d6ae7505e9c4d2;SOURCES/grep-3.4.tar.xz
#-----------------------------------------------------------------------------
Summary: The Grep package contains programs for searching through files.
Name: grep
Version: 3.4
Release: 1
License: GPLv3
URL: Any
Group: LFS/Base
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Requires: filesystem
%description
The Grep package contains programs for searching through files.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
./configure \
--prefix=%{_prefix} \
--bindir=/bin
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
#-----------------------------------------------------------------------------
# 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> 3.4-1
* Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 3.3-1
- Update for LFS-8.4
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 3.1-1
- Initial build. First version