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.
 
 
 
 

54 lines
2.1 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/findutils/findutils-4.7.0.tar.xz
  2. #MD5SUM: 731356dec4b1109b812fecfddfead6b2;SOURCES/findutils-4.7.0.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Findutils package contains programs to find files.
  5. Name: findutils
  6. Version: 4.7.0
  7. Release: 1
  8. License: Any
  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 Findutils package contains programs to find files. These programs
  15. are provided to recursively search through a directory tree and to
  16. create, maintain, and search a database (often faster than the recursive
  17. find, but unreliable if the database has not been recently updated).
  18. #-----------------------------------------------------------------------------
  19. %prep
  20. %setup -q -n %{NAME}-%{VERSION}
  21. %build
  22. ./configure \
  23. --prefix=%{_prefix} \
  24. --localstatedir=%{_localstatedir}/lib/locate
  25. make %{?_smp_mflags}
  26. %install
  27. make DESTDIR=%{buildroot} install
  28. install -vdm 755 %{buildroot}/bin
  29. mv -v %{buildroot}%{_bindir}/find %{buildroot}/bin
  30. sed -i 's|find:=${BINDIR}|find:=/bin|' %{buildroot}%{_bindir}/updatedb
  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. %{_mandir}/man1/*
  47. %{_mandir}/man5/*
  48. %dir %{_localstatedir}/lib/locate
  49. #-----------------------------------------------------------------------------
  50. %changelog
  51. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 4.7.0-1
  52. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 4.6.0-1
  53. - Initial build. First version