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.2 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 year ago
1 year ago
  1. #TARBALL: https://www.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.1.tar.xz
  2. #MD5SUM: 7f64882f631225f0295ca05080cee1bf;SOURCES/util-linux-2.35.1.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Util-linux package contains miscellaneous utility programs.
  5. Name: util-linux
  6. Version: 2.35.1
  7. Release: 1
  8. License: GPLv2
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: https://www.kernel.org/pub/linux/utils/%{name}/v2.35/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Util-linux package contains miscellaneous utility programs.
  15. Among them are utilities for handling file systems, consoles,
  16. partitions, and messages.
  17. #-----------------------------------------------------------------------------
  18. %prep
  19. %setup -q -n %{NAME}-%{VERSION}
  20. %build
  21. ./configure \
  22. ADJTIME_PATH=/var/lib/hwclock/adjtime \
  23. --docdir=%{_docdir}/%{NAME}-%{VERSION} \
  24. --disable-chfn-chsh \
  25. --disable-login \
  26. --disable-nologin \
  27. --disable-su \
  28. --disable-setpriv \
  29. --disable-runuser \
  30. --disable-pylibmount \
  31. --disable-static \
  32. --without-python \
  33. --without-systemd \
  34. --without-systemdsystemunitdir
  35. make %{?_smp_mflags}
  36. %install
  37. make DESTDIR=%{buildroot} install
  38. #-----------------------------------------------------------------------------
  39. # Copy license/copying file
  40. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  41. #-----------------------------------------------------------------------------
  42. # Create file list
  43. find %{buildroot} -name '*.la' -delete
  44. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  45. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  46. sed -i '/man\/man/d' filelist.list
  47. sed -i '/\/usr\/share\/info/d' filelist.list
  48. #-----------------------------------------------------------------------------
  49. %files -f filelist.list
  50. %defattr(-,root,root)
  51. %{_mandir}/man1/*
  52. %{_mandir}/man3/*
  53. %{_mandir}/man5/*
  54. %{_mandir}/man8/*
  55. #-----------------------------------------------------------------------------
  56. %changelog
  57. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.35.1-1
  58. * Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 2.33.1-1
  59. - LFS-8.4
  60. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.31.1-1
  61. - Initial build. First version