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.
 
 
 
 

67 lines
2.9 KiB

  1. %global _default_patch_fuzz 2
  2. #TARBALL: http://ftp.gnu.org/gnu/coreutils/coreutils-8.31.tar.xz
  3. #MD5SUM: 0009a224d8e288e8ec406ef0161f9293;SOURCES/coreutils-8.31.tar.xz
  4. #TARBALL: http://www.linuxfromscratch.org/patches/lfs/9.1/coreutils-8.31-i18n-1.patch
  5. #MD5SUM: a9404fb575dfd5514f3c8f4120f9ca7d;SOURCES/coreutils-8.31-i18n-1.patch
  6. #-----------------------------------------------------------------------------
  7. Summary: The Coreutils package contains utilities for showing and setting the basic system characteristics.
  8. Name: coreutils
  9. Version: 8.31
  10. Release: 1
  11. License: GPLv3
  12. URL: Any
  13. Group: LFS/Base
  14. Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  15. Patch0: http://www.linuxfromscratch.org/patches/lfs/9.1/%{name}-%{version}-i18n-1.patch
  16. Requires: filesystem
  17. %description
  18. The Coreutils package contains utilities for showing and setting the basic system characteristics.
  19. #-----------------------------------------------------------------------------
  20. %prep
  21. %setup -q -n %{NAME}-%{VERSION}
  22. %patch0 -p1
  23. sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk
  24. %build
  25. autoreconf -fiv
  26. FORCE_UNSAFE_CONFIGURE=1 \
  27. ./configure \
  28. --prefix=%{_prefix} \
  29. --enable-no-install-program=kill,uptime
  30. FORCE_UNSAFE_CONFIGURE=1 make %{?_smp_mflags}
  31. %install
  32. make DESTDIR=%{buildroot} install
  33. install -vdm 755 %{buildroot}/bin
  34. install -vdm 755 %{buildroot}%{_sbindir}
  35. install -vdm 755 %{buildroot}%{_mandir}/man8
  36. mv -v %{buildroot}%{_bindir}/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} %{buildroot}/bin
  37. mv -v %{buildroot}%{_bindir}/{false,ln,ls,mkdir,mknod,mv,pwd,rm} %{buildroot}/bin
  38. mv -v %{buildroot}%{_bindir}/{rmdir,stty,sync,true,uname} %{buildroot}/bin
  39. mv -v %{buildroot}%{_bindir}/chroot %{buildroot}%{_sbindir}
  40. mv -v %{buildroot}%{_mandir}/man1/chroot.1 %{buildroot}%{_mandir}/man8/chroot.8
  41. sed -i s/\"1\"/\"8\"/1 %{buildroot}%{_mandir}/man8/chroot.8
  42. mv -v %{buildroot}%{_bindir}/{head,sleep,nice} %{buildroot}/bin
  43. #-----------------------------------------------------------------------------
  44. # Copy license/copying file
  45. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  46. #-----------------------------------------------------------------------------
  47. # Create file list
  48. rm %{buildroot}%{_infodir}/dir
  49. find %{buildroot} -name '*.la' -delete
  50. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  51. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  52. sed -i '/man\/man/d' filelist.list
  53. sed -i '/\/usr\/share\/info/d' filelist.list
  54. #-----------------------------------------------------------------------------
  55. %files -f filelist.list
  56. %defattr(-,root,root)
  57. %{_infodir}/*
  58. %{_mandir}/man1/*
  59. %{_mandir}/man8/*
  60. #-----------------------------------------------------------------------------
  61. %changelog
  62. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 8.31-1
  63. * Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 8.30-1
  64. - LFS-8.4
  65. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 8.29-1
  66. - Initial build. First version