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.
 
 
 
 

61 lines
2.1 KiB

  1. #TARBALL: https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.bz2
  2. #MD5SUM: f3438e672e3fa273a7dc26339dd1eed6;SOURCES/cpio-2.13.tar.bz2
  3. #-----------------------------------------------------------------------------
  4. Summary: The cpio package contains tools for archiving
  5. Name: cpio
  6. Version: 2.13
  7. Release: 1
  8. License: GPLv3
  9. URL: Any
  10. Group: BLFS/System_Utilities
  11. Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
  12. Requires: filesystem
  13. %description
  14. The cpio package contains tools for archiving
  15. %prep
  16. %setup -q -n %{NAME}-%{VERSION}
  17. %build
  18. ./configure \
  19. --prefix=%{_prefix} \
  20. --bindir=/bin \
  21. --enable-mt \
  22. --with-rmt=/usr/libexec/rmt
  23. make %{?_smp_mflags}
  24. makeinfo --html -o doc/html doc/cpio.texi
  25. makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi
  26. makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi
  27. %install
  28. make DESTDIR=%{buildroot} install
  29. #-----------------------------------------------------------------------------
  30. # Copy license/copying file
  31. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  32. #-----------------------------------------------------------------------------
  33. # Create file list
  34. rm %{buildroot}%{_infodir}/dir
  35. find %{buildroot} -name '*.la' -delete
  36. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  37. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  38. sed -i '/man\/man/d' filelist.list
  39. sed -i '/\/usr\/share\/info/d' filelist.list
  40. #-----------------------------------------------------------------------------
  41. %files -f filelist.list
  42. %defattr(-,root,root)
  43. %{_infodir}/*
  44. %{_mandir}/man1/*
  45. #-----------------------------------------------------------------------------
  46. %post
  47. pushd /usr/share/info
  48. rm -v dir
  49. for f in *; do install-info $f dir 2>/dev/null; done
  50. popd
  51. %postun
  52. pushd /usr/share/info
  53. rm -v dir
  54. for f in *; do install-info $f dir 2>/dev/null; done
  55. popd
  56. #-----------------------------------------------------------------------------
  57. %changelog
  58. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.13-1
  59. * Wed Feb 14 2018 baho-utot <baho-utot@columbus.rr.com> 2.12-1
  60. - Initial build. First version