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.

45 lines
1.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #TARBALL: http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz
  2. #MD5SUM: 730bb15d96fffe47e148d1e09235af82;SOURCES/m4-1.4.18.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The M4 package contains a macro processor
  5. Name: m4
  6. Version: 1.4.18
  7. Release: 2
  8. License: GPLv3
  9. URL: http://www.gnu.org
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The M4 package contains a macro processor
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
  19. echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
  20. %build
  21. ./configure --prefix=%{_prefix}
  22. make %{?_smp_mflags}
  23. %install
  24. make DESTDIR=%{buildroot} install
  25. #-----------------------------------------------------------------------------
  26. # Copy license/copying file
  27. install -D -m644 README %{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/m4.1.gz
  41. #-----------------------------------------------------------------------------
  42. %changelog
  43. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 1.4.18-2
  44. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.4.18-1
  45. - Initial build. First version