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.
 
 
 
 

50 lines
1.9 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/gawk/gawk-5.0.1.tar.xz
  2. #MD5SUM: 95cf553f50ec9f386b5dfcd67f30180a;SOURCES/gawk-4.2.1.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Gawk package contains programs for manipulating text files.
  5. Name: gawk
  6. Version: 5.0.1
  7. Release: 1
  8. License: GPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Gawk package contains programs for manipulating text files.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i 's/extras//' Makefile.in
  19. %build
  20. ./configure --prefix=%{_prefix}
  21. make %{?_smp_mflags}
  22. %install
  23. make DESTDIR=%{buildroot} install
  24. install -vdm 755 %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  25. cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  26. #-----------------------------------------------------------------------------
  27. # Copy license/copying file
  28. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  29. #-----------------------------------------------------------------------------
  30. # Create file list
  31. rm %{buildroot}%{_infodir}/dir
  32. find %{buildroot} -name '*.la' -delete
  33. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  34. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  35. sed -i '/man\/man/d' filelist.list
  36. sed -i '/\/usr\/share\/info/d' filelist.list
  37. #-----------------------------------------------------------------------------
  38. %files -f filelist.list
  39. %defattr(-,root,root)
  40. %{_infodir}/*
  41. %{_mandir}/man1/*
  42. %{_mandir}/man3/*
  43. #-----------------------------------------------------------------------------
  44. %changelog
  45. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 5.0.1-1
  46. * Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 4.2.1-1
  47. - LFS-8.4
  48. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 4.2.0-1
  49. - Initial build. First version