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.

52 lines
1.9 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/tar/tar-1.32.tar.xz
  2. #MD5SUM: 83e38700a80a26e30b2df054e69956e5;SOURCES/tar-1.32.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Tar package contains an archiving program.
  5. Name: tar
  6. Version: 1.32
  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 Tar package contains an archiving program.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i 's/abort.*/FALLTHROUGH;/' src/extract.c
  19. %build
  20. FORCE_UNSAFE_CONFIGURE=1 \
  21. ./configure \
  22. --prefix=%{_prefix} \
  23. --bindir=/bin
  24. make %{?_smp_mflags}
  25. %install
  26. make DESTDIR=%{buildroot} install
  27. make -C doc DESTDIR=%{buildroot} install-html docdir=%{_docdir}/%{NAME}-%{VERSION}
  28. #-----------------------------------------------------------------------------
  29. # Copy license/copying file
  30. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  31. #-----------------------------------------------------------------------------
  32. # Create file list
  33. rm %{buildroot}%{_infodir}/dir
  34. find %{buildroot} -name '*.la' -delete
  35. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  36. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  37. sed -i '/man\/man/d' filelist.list
  38. sed -i '/\/usr\/share\/info/d' filelist.list
  39. #-----------------------------------------------------------------------------
  40. %files -f filelist.list
  41. %defattr(-,root,root)
  42. %{_infodir}/*
  43. %{_mandir}/man1/*
  44. %{_mandir}/man8/*
  45. #-----------------------------------------------------------------------------
  46. %changelog
  47. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 1.32-1
  48. * Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 1.31-1
  49. - LFS-8.4
  50. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.30-1
  51. - Initial build. First version