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.
 
 
 
 

48 lines
1.7 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/grep/grep-3.4.tar.xz
  2. #MD5SUM: 111b117d22d6a7d049d6ae7505e9c4d2;SOURCES/grep-3.4.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Grep package contains programs for searching through files.
  5. Name: grep
  6. Version: 3.4
  7. Release: 1
  8. License: GPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Grep package contains programs for searching through files.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. %build
  19. ./configure \
  20. --prefix=%{_prefix} \
  21. --bindir=/bin
  22. make %{?_smp_mflags}
  23. %install
  24. make DESTDIR=%{buildroot} install
  25. #-----------------------------------------------------------------------------
  26. # Copy license/copying file
  27. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  28. #-----------------------------------------------------------------------------
  29. # Create file list
  30. rm %{buildroot}%{_infodir}/dir
  31. find %{buildroot} -name '*.la' -delete
  32. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  33. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  34. sed -i '/man\/man/d' filelist.list
  35. sed -i '/\/usr\/share\/info/d' filelist.list
  36. #-----------------------------------------------------------------------------
  37. %files -f filelist.list
  38. %defattr(-,root,root)
  39. %{_infodir}/*
  40. %{_mandir}/man1/*
  41. #-----------------------------------------------------------------------------
  42. %changelog
  43. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 3.4-1
  44. * Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 3.3-1
  45. - Update for LFS-8.4
  46. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 3.1-1
  47. - Initial build. First version