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.
 
 
 
 

51 lines
1.9 KiB

  1. # %%define _optflags -march=x86-64 -mtune=generic -O2 -pipe
  2. #TARBALL: http://ftp.gnu.org/gnu/grub/grub-2.04.tar.xz
  3. #MD5SUM: 5aaca6713b47ca2456d8324a58755ac7;SOURCES/grub-2.04.tar.xz
  4. #-----------------------------------------------------------------------------
  5. Summary: The GRUB package contains the GRand Unified Bootloader.
  6. Name: grub
  7. Version: 2.04
  8. Release: 1
  9. License: GPLv3
  10. URL: Any
  11. Group: LFS/Base
  12. Source0: http://ftp.gnu.org/gnu/grub/%{name}-%{version}.tar.xz
  13. Requires: filesystem
  14. %description
  15. The GRUB package contains the GRand Unified Bootloader.
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. %setup -q -n %{NAME}-%{VERSION}
  19. %build
  20. ./configure \
  21. --prefix=%{_prefix} \
  22. --sbindir=/sbin \
  23. --sysconfdir=%{_sysconfdir} \
  24. --disable-efiemu \
  25. --disable-werror
  26. make %{?_smp_mflags}
  27. %install
  28. make DESTDIR=%{buildroot} install
  29. install -vdm 755 %{buildroot}/usr/share/bash-completion/completions
  30. mv -v %{buildroot}/etc/bash_completion.d/grub %{buildroot}/usr/share/bash-completion/completions
  31. #-----------------------------------------------------------------------------
  32. # Copy license/copying file
  33. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  34. #-----------------------------------------------------------------------------
  35. # Create file list
  36. rm %{buildroot}%{_infodir}/dir
  37. find %{buildroot} -name '*.la' -delete
  38. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  39. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  40. sed -i '/man\/man/d' filelist.list
  41. sed -i '/\/usr\/share\/info/d' filelist.list
  42. #-----------------------------------------------------------------------------
  43. %files -f filelist.list
  44. %defattr(-,root,root)
  45. %{_infodir}/*
  46. #-----------------------------------------------------------------------------
  47. %changelog
  48. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.04-1
  49. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.02-1
  50. - Initial build. First version