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.
 
 
 
 

66 lines
2.6 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu//ncurses/ncurses-6.2.tar.gz
  2. #MD5SUM: e812da327b1c2214ac1aed440ea3ae8d;SOURCES/ncurses-6.2.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Ncurses package contains libraries for terminal-independent handling of character screens.
  5. Name: ncurses
  6. Version: 6.2
  7. Release: 1
  8. License: GPL
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu//ncurses/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The Ncurses package contains libraries for terminal-independent handling of character screens.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
  19. %build
  20. ./configure \
  21. --prefix=%{_prefix} \
  22. --mandir=%{_mandir} \
  23. --with-shared \
  24. --without-debug \
  25. --without-normal \
  26. --enable-pc-files \
  27. --enable-widec
  28. make %{?_smp_mflags}
  29. %install
  30. make DESTDIR=%{buildroot} install
  31. install -vdm 755 %{buildroot}/lib
  32. mv -v %{buildroot}%{_libdir}/libncursesw.so.6* %{buildroot}/lib
  33. ln -sfv ../../lib/$(readlink %{buildroot}%{_libdir}/libncursesw.so) %{buildroot}%{_libdir}/libncursesw.so
  34. for lib in ncurses form panel menu ; do
  35. rm -vf %{buildroot}%{_libdir}/lib${lib}.so
  36. echo "INPUT(-l${lib}w)" > %{buildroot}%{_libdir}/lib${lib}.so
  37. ln -sfv ${lib}w.pc %{buildroot}%{_libdir}/pkgconfig/${lib}.pc
  38. done
  39. rm -vf %{buildroot}%{_libdir}/libcursesw.so
  40. echo "INPUT(-lncursesw)" > %{buildroot}%{_libdir}/libcursesw.so
  41. ln -sfv libncurses.so %{buildroot}%{_libdir}/libcurses.so
  42. install -vdm 755 %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  43. cp -v -R doc/* %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  44. #-----------------------------------------------------------------------------
  45. # Copy license/copying file
  46. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  47. #-----------------------------------------------------------------------------
  48. # Create file list
  49. find %{buildroot} -name '*.la' -delete
  50. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  51. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  52. sed -i '/man\/man/d' filelist.list
  53. sed -i '/\/usr\/share\/info/d' filelist.list
  54. #-----------------------------------------------------------------------------
  55. %files -f filelist.list
  56. %defattr(-,root,root)
  57. %{_mandir}/man1/*
  58. %{_mandir}/man3/*
  59. %{_mandir}/man5/*
  60. %{_mandir}/man7/*
  61. #-----------------------------------------------------------------------------
  62. %changelog
  63. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 6.2-1
  64. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 6.1-1
  65. - Initial build. First version