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.

56 lines
2.0 KiB

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/inetutils/inetutils-1.9.4.tar.xz
  2. #MD5SUM: 87fef1fa3f603aef11c41dcc097af75e;SOURCES/inetutils-1.9.4.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Inetutils package contains programs for basic networking.
  5. Name: inetutils
  6. Version: 1.9.4
  7. Release: 2
  8. License: GPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/inetutils/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Inetutils package contains programs for basic networking.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. %build
  19. ./configure \
  20. --prefix=%{_prefix} \
  21. --localstatedir=/var \
  22. --disable-logger \
  23. --disable-whois \
  24. --disable-rcp \
  25. --disable-rexec \
  26. --disable-rlogin \
  27. --disable-rsh \
  28. --disable-servers
  29. make %{?_smp_mflags}
  30. %install
  31. make DESTDIR=%{buildroot} install
  32. install -vdm 755 %{buildroot}/bin
  33. mv -v %{buildroot}%{_bindir}/{hostname,ping,ping6,traceroute} %{buildroot}/bin
  34. install -vdm 755 %{buildroot}/sbin
  35. mv -v %{buildroot}%{_bindir}/ifconfig %{buildroot}/sbin
  36. #-----------------------------------------------------------------------------
  37. # Copy license/copying file
  38. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  39. #-----------------------------------------------------------------------------
  40. # Create file list
  41. rm %{buildroot}%{_infodir}/dir
  42. find %{buildroot} -name '*.la' -delete
  43. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  44. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  45. sed -i '/man\/man/d' filelist.list
  46. sed -i '/\/usr\/share\/info/d' filelist.list
  47. #-----------------------------------------------------------------------------
  48. %files -f filelist.list
  49. %defattr(-,root,root)
  50. %{_infodir}/*
  51. %{_mandir}/man1/*
  52. #-----------------------------------------------------------------------------
  53. %changelog
  54. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 1.9.4-2
  55. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.9.4-1
  56. - Initial build. First version