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.
 
 
 
 

58 lines
2.6 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz
  2. #MD5SUM: 7e6c1f16aee3244a69aba6e438295ca3;SOURCES/readline-8.0.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Readline package is a set of libraries that offers command-line editing and history capabilities
  5. Name: readline
  6. Version: 8.0
  7. Release: 2
  8. License: GPLv3
  9. URL: http://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The Readline package is a set of libraries that offers command-line editing and history capabilities
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i '/MV.*old/d' Makefile.in
  19. sed -i '/{OLDSUFF}/c:' support/shlib-install
  20. %build
  21. ./configure \
  22. --prefix=%{_prefix} \
  23. --disable-static \
  24. --docdir=%{_mandir}/%{name}-%{version}
  25. make %{?_smp_mflags} SHLIB_LIBS="-L/tools/lib -lncursesw"
  26. %install
  27. make DESTDIR=%{buildroot} SHLIB_LIBS="-L/tools/lib -lncurses" install
  28. install -vdm 755 %{buildroot}/lib
  29. install -vdm 755 %{buildroot}%{_libdir}
  30. mv -v %{buildroot}%{_libdir}/lib{readline,history}.so.* %{buildroot}/lib
  31. chmod -v u+w %{buildroot}/lib/lib{readline,history}.so.*
  32. ln -sfv ../../lib/$(readlink %{buildroot}%{_libdir}/libreadline.so) %{buildroot}%{_libdir}/libreadline.so
  33. ln -sfv ../../lib/$(readlink %{buildroot}%{_libdir}/libhistory.so ) %{buildroot}%{_libdir}/libhistory.so
  34. # documentation
  35. install -vdm 755 %{buildroot}%{_docdir}/readline-8.0
  36. install -v -m644 doc/*.{ps,pdf,html,dvi} %{buildroot}%{_docdir}/readline-8.0
  37. rm -rf %{buildroot}%{_infodir}
  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}/man3/*
  52. #-----------------------------------------------------------------------------
  53. %changelog
  54. * Sun May 31 2020 CHris Cromer <chris@cromer.cl> 8.0-2
  55. * Mon Mar 25 2019 baho-utot <baho-utot@columbus.rr.com> 8.0-1
  56. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 7.0-1
  57. - Initial build. First version