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.3 KiB

  1. #TARBALL: https://www.kernel.org/pub/linux/utils/kbd/kbd-2.2.0.tar.xz
  2. #MD5SUM: d1d7ae0b5fb875dc082731e09cd0c8bc;SOURCES/kbd-2.2.0.tar.xz
  3. #TARBALL: http://www.linuxfromscratch.org/patches/lfs/9.1/kbd-2.2.0-backspace-1.patch
  4. #MD5SUM: f75cca16a38da6caa7d52151f7136895;SOURCES/kbd-2.2.0-backspace-1.patch
  5. #-----------------------------------------------------------------------------
  6. Summary: The Kbd package contains key-table files, console fonts, and keyboard utilities.
  7. Name: kbd
  8. Version: 2.2.0
  9. Release: 1
  10. License: Other
  11. URL: Any
  12. Group: LFS/Base
  13. Source0: https://www.kernel.org/pub/linux/utils/%{name}/%{name}-%{version}.tar.xz
  14. Patch0: http://www.linuxfromscratch.org/patches/lfs/9.1/kbd-2.2.0-backspace-1.patch
  15. Requires: filesystem
  16. %description
  17. The Kbd package contains key-table files, console fonts, and keyboard utilities.
  18. #-----------------------------------------------------------------------------
  19. %prep
  20. %setup -q -n %{NAME}-%{VERSION}
  21. %patch0 -p1
  22. sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure
  23. sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
  24. %build
  25. PKG_CONFIG_PATH=/tools/lib/pkgconfig \
  26. ./configure \
  27. --prefix=%{_prefix} \
  28. --disable-vlock
  29. make %{?_smp_mflags}
  30. %install
  31. make DESTDIR=%{buildroot} install
  32. install -vdm 755 %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  33. cp -R -v docs/doc/* %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  34. #-----------------------------------------------------------------------------
  35. # Copy license/copying file
  36. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  37. #-----------------------------------------------------------------------------
  38. # Create file list
  39. find %{buildroot} -name '*.la' -delete
  40. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  41. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  42. sed -i '/man\/man/d' filelist.list
  43. sed -i '/\/usr\/share\/info/d' filelist.list
  44. #-----------------------------------------------------------------------------
  45. %files -f filelist.list
  46. %defattr(-,root,root)
  47. # %%{_infodir}/*
  48. %{_mandir}/man1/*
  49. %{_mandir}/man5/*
  50. %{_mandir}/man8/*
  51. #-----------------------------------------------------------------------------
  52. %changelog
  53. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 2.2.0-1
  54. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.0.4-1
  55. - Initial build. First version