Summary: A terminal handling library Name: ncurses Version: 5.6 Release: 8.20070812%{?dist} License: MIT Group: System Environment/Libraries URL: http://invisible-island.net/ncurses/ncurses.html Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz Patch1: ncurses-5.6-20070714-patch.sh.bz2 Patch2: ncurses-5.6-20070714-20070812.patch.bz2 Patch8: ncurses-5.5-20061209-config.patch Patch9: ncurses-5.6-20070612-libs.patch Patch10: ncurses-5.5-20061209-xterm.patch Patch11: ncurses-5.6-20070120-urxvt.patch BuildRequires: gpm-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. %package devel Summary: Development files for the ncurses library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The header files and libraries for developing applications that use the ncurses terminal handling library. Install the ncurses-devel package if you want to develop applications which will use ncurses. %package static Summary: Static libraries for the ncurses library Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static The ncurses-static package includes static libraries of the ncurses library. %prep %setup -q %patch1 -p1 # tack isn't in ncurses tree since 20070203 rm -rf tack %patch2 -p1 %patch8 -p1 -b .config %patch9 -p1 -b .libs %patch10 -p1 -b .xterm %patch11 -p1 -b .urxvt # this will be in documentation, drop executable bits chmod 644 test/* %build %define rootdatadir /lib %define ncurses_options \\\ --with-shared --without-ada --with-ospeed=unsigned \\\ --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \\\ --with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo:%{rootdatadir}/terminfo \\\ --includedir=%{_includedir}/ncursesw \\\ --enable-overwrite \\\ --with-termlib=tinfo \\\ --with-chtype=long mkdir narrowc widec cd narrowc ln -s ../configure . %configure %{ncurses_options} --with-ticlib make %{?_smp_mflags} libs make %{?_smp_mflags} -C progs cd ../widec ln -s ../configure . %configure %{ncurses_options} --enable-widec --without-progs make %{?_smp_mflags} libs cd .. %install rm -rf ${RPM_BUILD_ROOT} make -C narrowc DESTDIR=$RPM_BUILD_ROOT install.{libs,progs,data} make -C widec DESTDIR=$RPM_BUILD_ROOT install.{libs,includes,man} chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.* chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a # move lib{ncurses,tinfo}.so.* to /lib* mkdir $RPM_BUILD_ROOT/%{_lib} mv $RPM_BUILD_ROOT%{_libdir}/lib{ncurses,tinfo}.so.* $RPM_BUILD_ROOT/%{_lib} for l in $RPM_BUILD_ROOT%{_libdir}/lib{ncurses,tinfo}.so; do ln -sf $(echo %{_libdir} | \ sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l done mkdir -p $RPM_BUILD_ROOT{%{rootdatadir},%{_sysconfdir}}/terminfo # move few basic terminfo entries to /lib baseterms="" for termname in \ ansi dumb linux vt100 vt100-nav vt220 xterm do linkedterms=$(find $RPM_BUILD_ROOT%{_datadir}/terminfo \ -samefile $RPM_BUILD_ROOT%{_datadir}/terminfo/${termname::1}/$termname) for t in $linkedterms; do baseterms="$baseterms $(basename $t)" done done for termname in $baseterms; do termpath=terminfo/${termname::1}/$termname mkdir $RPM_BUILD_ROOT%{rootdatadir}/terminfo/${termname::1} || : &> /dev/null mv $RPM_BUILD_ROOT%{_datadir}/$termpath $RPM_BUILD_ROOT%{rootdatadir}/$termpath ln -s $(dirname %{_datadir}/$termpath | \ sed 's,\(^/\|\)[^/][^/]*,..,g')%{rootdatadir}/$termpath \ $RPM_BUILD_ROOT%{_datadir}/$termpath done ln -sf ncurses/{curses,unctrl,eti,form,menu,ncurses,panel,term}.h \ ${RPM_BUILD_ROOT}%{_includedir} # can't replace directory with symlink (rpm bug), symlink all headers mkdir $RPM_BUILD_ROOT%{_includedir}/ncurses for l in $RPM_BUILD_ROOT%{_includedir}/ncursesw/*.h; do ln -s ../ncursesw/$(basename $l) $RPM_BUILD_ROOT%{_includedir}/ncurses done rm -f $RPM_BUILD_ROOT%{_libdir}/libcurses.so echo "INPUT(-lncurses)" > $RPM_BUILD_ROOT%{_libdir}/libcurses.so rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc ANNOUNCE AUTHORS README TO-DO /%{_lib}/lib*.so.* %{_libdir}/lib*.so.* %dir %{_sysconfdir}/terminfo %{rootdatadir}/terminfo %{_datadir}/terminfo %{_datadir}/tabset %{_bindir}/[cirt]* %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man7/* %files devel %defattr(-,root,root) %doc test %doc doc/html/hackguide.html %doc doc/html/ncurses-intro.html %doc c++/README* %{_bindir}/ncurses*-config %{_libdir}/lib*.so %dir %{_includedir}/ncurses %dir %{_includedir}/ncursesw %{_includedir}/ncurses/*.h %{_includedir}/ncursesw/*.h %{_includedir}/curses.h %{_includedir}/ncurses.h %{_includedir}/eti.h %{_includedir}/form.h %{_includedir}/menu.h %{_includedir}/panel.h %{_includedir}/term.h %{_includedir}/unctrl.h %{_mandir}/man3/* %files static %defattr(-,root,root) %{_libdir}/lib*.a %clean rm -rf ${RPM_BUILD_ROOT} %changelog * Mon Aug 13 2007 Miroslav Lichvar 5.6-8.20070812 - update to patch 20070812 * Wed Jun 13 2007 Miroslav Lichvar 5.6-7.20070612 - update to patch 20070612 * Thu Mar 08 2007 Miroslav Lichvar 5.6-6.20070303 - update to patch 20070303 - use one libtinfo for both libncurses and libncursesw - shorten -devel description * Mon Feb 19 2007 Miroslav Lichvar 5.6-5.20070217 - update to patch 20070217 - replace libcurses.so symlink with linker script (#228891) * Mon Feb 12 2007 Miroslav Lichvar 5.6-4.20070210 - update to patch 20070210 - generate separate terminfo library - move static libraries to -static subpackage - avoid unnecessary linking with libdl * Tue Feb 06 2007 Miroslav Lichvar 5.6-3.20070203 - update to patch 20070203 - spec cleanup (#226188) * Sun Jan 21 2007 Miroslav Lichvar 5.6-2.20070120 - update to patch 20070120 - don't depend on bash, drop resetall script - include rxvt-unicode description * Wed Jan 10 2007 Miroslav Lichvar 5.6-1.20070106 - update to 5.6, patch 20070106 * Mon Dec 11 2006 Miroslav Lichvar 5.5-27.20061209 - update to patch 20061209 - strip large tables from shared libraries, reduce number of relocations - package utils linked with libncurses instead of libncursesw - package only wide-character headers * Thu Nov 30 2006 Miroslav Lichvar 5.5-26.20060715 - move also hardlinked entries (#217750) - search /etc/terminfo for local terminfo entries * Mon Nov 27 2006 Miroslav Lichvar 5.5-25.20060715 - move libncurses and some terminfo entries out of /usr - drop console symlink and sparc terminfo entries * Thu Aug 31 2006 Miroslav Lichvar 5.5-24.20060715 - modify tgetstr to make screen happy (#202480) - use CFLAGS when linking (#199369) - change BuildRoot tag to comply with Fedora packaging guidelines * Wed Aug 16 2006 Miroslav Lichvar 5.5-23.20060715 - fix another crash in tgetent (#202480) * Mon Jul 17 2006 Miroslav Lichvar 5.5-22.20060715 - update to patch 20060715 - fix package summary (#197655) * Sat Jul 08 2006 Miroslav Lichvar 5.5-21 - fix crash in tgetent (#198032) * Fri Jul 07 2006 Miroslav Lichvar 5.5-20 - update to patch 20060701 - don't strip libraries, chmod +x them - move .so links to devel package - add gpm-devel to buildrequires - spec cleanup * Mon Feb 27 2006 Miroslav Lichvar - 5.5-19 - avoid comparing padding in cchar_t structure (#182024) * Fri Feb 10 2006 Jesse Keating - 5.5-18.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 5.5-18.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Jan 31 2006 Jindrich Novy 5.5-18 - add --with-chtype=long to avoid type clashes on x86_64 (#178824) - spec cleanup * Fri Jan 27 2006 Petr Raszyk 5.5-17 - Rebuild. * Fri Jan 27 2006 Petr Raszyk 5.5-11 - According Henrik Nordstrom (hno@squid-cache.org) Diff between the two versions of curses.h on x86_64 Patch ncurses-5.5-chtypeaslong2.patch See #178824 * Fri Dec 23 2005 Petr Raszyk 5.5-10 - Rebuild. * Thu Dec 22 2005 Jindrich Novy 5.5-9 - helped Petr to strip libs. * Thu Dec 22 2005 Petr Raszyk 5.5-8 - Strip *.so libs. * Wed Dec 21 2005 Petr Raszyk 5.5-1 - Upgrade to ncurses 5.5 * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcj * Thu Dec 1 2005 Petr Raszyk 5.4-23 - Rebuild. * Thu Dec 1 2005 Petr Raszyk 5.4-22 - Rebuild. * Thu Dec 1 2005 Petr Raszyk 5.4-21 - Clear window after: filter()+'terminal-resizing'+endwin() doupdate()+endwin() See bug #174498, patch ncurses-5.4-endwinfilter.patch * Fri Nov 18 2005 Bill Nottingham 5.4-20 - fix location for resize in ncurses-resetall.sh * Fri Sep 30 2005 5.4-19 5.4-19 - Clear window after: filter()+initscr()+endwin()+refresh() See bug #2966, patch ncurses-5.4-filter.patch * Wed Aug 03 2005 Karsten Hopp 5.4-18 - rebuild with new rpm * Wed Apr 27 2005 Petr Rockai - 5.4-17 - apply patch from Hans de Goede, fixing BR142659 [The terminfo data for kbs changed from \177 to ^H] * Sun Mar 06 2005 Petr Rockai - rebuild * Thu Jan 27 2005 Adrian Havill 5.4-15 - update to newest jumbo monthly patch + weeklies, fixing new line cursor move problem (#140326) * Wed Oct 21 2004 Adrian Havill 5.4-14 - escape rpm macros in the changelog (#135408) * Tue Aug 31 2004 Adrian Havill 5.4-13 - term.sh can't detect CJK environment; revert - gt 2.7 behaves better with xterm-new * Tue Aug 3 2004 Adrian Havill 5.4-12 - make xterm same as xterm-r6 - detect for "dumb" in term.sh * Thu Jul 29 2004 Adrian Havill 5.4-11 - add latest rollup patches and weekly patches - remove home/end patch, which is now included in latest terminfo.src and termcap.src - add term.sh to /etc/profile.d, reference in /etc/bashrc - modify term.sh to support rxvt (#122815 comment 93) * Fri Jul 08 2004 Adrian Havill 5.4-10 - add home/end mappings to gnome definition (#122815) * Tue Jul 06 2004 Adrian Havill 5.4-9.fc3 - n-v-r * Tue Jul 06 2004 Adrian Havill 5.4-9.fc2 - n-v-r * Tue Jul 06 2004 Adrian Havill 5.4-9 - remove terminfo try-to-please-all xterm hackery; it's now ptty and profile's job to point to the correct terminal. (#122815) * Tue Jun 15 2004 Elliot Lee - rebuilt * Sun May 30 2004 Florian La Roche - remove ncurses-c++-devel rpm, all files are also part of ncurses-devel * Sat May 29 2004 Joe Orton 5.4-6 - fix xterm terminfo entry (Hans de Geode, #122815) * Thu May 06 2004 Adrian Havill 5.4-5 - remove --with-gpm from configure, as it adds a pkg dependency (#122336) and causes too many problems vs its benefits * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 26 2004 Adrian Havill 5.4-3 - xterm-color is wrong for rh; inverted bs/del (#115499) * Wed Feb 25 2004 Adrian Havill 5.4-3 - link "xterm" to "xterm-color" as temp fix for escape problem (#115448) - remove old zcat for PATCH1 * Fri Feb 13 2004 Elliot Lee - rebuilt * Tue Feb 10 2004 Adrian Havill 5.4-1 - version update to 5.4 * Thu Jan 29 2004 Adrian Havill 5.3-10 - add /usr/include/ncursesw (#112979) - allow for non-gzipped man pages during the build process * Sun Sep 21 2003 Matt Wilson 5.3-9.3 - remove the elf32/elf64 provides/obsoletes * Wed Sep 17 2003 Matt Wilson 5.3-9.2 - rebuild to fix gzipped file md5sums (#91211) * Thu Sep 11 2003 Adrian Havill 5.3-9.1 - RHEL bump * Thu Sep 11 2003 Adrian Havill 5.3-9 - remove not-so safe-sprintf configure option because the code does not appear to be stable enough for some apps. (#103790) * Wed Aug 20 2003 Adrian Havill 5.3-8.1 - RHEL bump * Wed Aug 20 2003 Adrian Havill 5.3-8 - multilib patch (#91211) * Mon Aug 11 2003 Adrian Havill 5.3-7 - fixed the safe sprintf code that was enabled in the previous release by the configure parameter. (#101486) * Mon Jun 16 2003 Elliot Lee 5.3-6.1 - Fix ac25 patch, make it easy to turn off GPM support * Wed Jun 04 2003 Elliot Lee - rebuilt * Thu May 22 2003 Adrian Havill 5.3-5 - added latest rollup patch with widec/UTF8 centric weekly (20030517) - added --enable-widec to configure (#86311) original work done by Mr. Sam - require sharutils (#86605) - add gpm, xmc support - add debug syms back into package - updated autoconf/configure patch * Thu Feb 6 2003 Bill Nottingham 5.3-4 - fix debuginfo package * Fri Jan 31 2003 Adrian Havill 5.3-3 - remunged xterm changes from 5.2 patch for 5.3 - updated screen entry (#82951) - fixed ka3, kb2 and kf0 entries (#77506) * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Jan 22 2003 Adrian Havill 5.3-1 - upgrade to 5.3 for sake of utf-8, wide chars (#77585 ...) - spec file summary/desc grammar (#73583) - add Requires: for c++ devel subpkg (#74002) - terminfo.src patches no longer needed - adjust autoconf patch * Thu Dec 05 2002 Elliot Lee 5.2-29 - Merge in multilib fixes * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Mon Apr 8 2002 Bernhard Rosenkraenzer 5.2-26 - Remove duplicated files (#62752) - Don't strip libraries (#60398) - Remove cbt capability from xterm description (#61077) * Mon Feb 25 2002 Bernhard Rosenkraenzer 5.2-25 - Remove bogus man pages - Remove bool hack, it breaks make menuconfig * Fri Feb 22 2002 Bernhard Rosenkraenzer 5.2-24 - Rebuild for glibc 2.3/gcc 3.1 * Fri Feb 22 2002 Bernhard Rosenkraenzer 5.2-23 - Put the bool type back in for !c++, but leave TRUE/FALSE out * Thu Feb 21 2002 Bernhard Rosenkraenzer 5.2-21 - Don't define TRUE/FALSE etc., we don't care about SVR4 compliance and it breaks building gdb * Thu Feb 21 2002 Bernhard Rosenkraenzer 5.2-20 - Rebuild for glibc 2.3/gcc 3.1 * Thu Feb 21 2002 Bernhard Rosenkraenzer 5.2-19 - Patchlevel 20020218 - Re-add %%{_includedir}/ncurses.h (#60169) * Tue Feb 12 2002 Bernhard Rosenkraenzer 5.2-18 - Add C++ bindings (#59751) * Tue Feb 12 2002 Bernhard Rosenkraenzer 5.2-17 - Patchlevel 20020209 - Fix zero-substitution of cf_cv_type_of_bool (#59450) - Fix rebuilding of configure script with autoconf 2.5x * Thu Jan 31 2002 Bernhard Rosenkraenzer 5.2-16 - Patchlevel 20020127 * Tue Nov 27 2001 Bernhard Rosenkraenzer 5.2-14 - Patchlevel 20011124 * Thu Sep 13 2001 Bernhard Rosenkraenzer 5.2-13 - Sync with patchlevel 20010908 * Fri Jul 20 2001 Bernhard Rosenkraenzer 5.2-12 - Sync terminfo with termcap 11.0.1-10 * Sun Jun 24 2001 Bernhard Rosenkraenzer 5.2-11 - Update to patchlevel 20010623, fixes some lynx issues * Mon Jun 18 2001 Helge Deller - fixed tput -S segfaulting bug (#44669) - use _tmppath for BuildRoot: - Copyright -> License * Sun Apr 15 2001 Bernhard Rosenkraenzer - Update to patchlevel 20010407 * Tue Mar 6 2001 Bernhard Rosenkraenzer - Fix up some terminfo entries containing includes to "/var/tmp/ncurses-root/something" (#30771) * Wed Feb 22 2001 Harald Hoyer - fixed rxvt backspace setting * Fri Feb 9 2001 Yukihiro Nakai - Update Japanese kterm patch * Mon Jan 15 2001 Bernhard Rosenkraenzer - Update - Add japanese patch from termcap - Fix ospeed handling * Mon Jan 1 2001 Bernhard Rosenkraenzer - Add libcurses.a -> libncurses.a symlink (RFE #23023) * Tue Dec 12 2000 Bernhard Rosenkraenzer - Use --with-ospeed='unsigned int' * Fri Nov 17 2000 Bernhard Rosenkraenzer - Fix alpha and ia64 - Rebuild with gcc 2.96-64 * Thu Nov 2 2000 Bernhard Rosenkraenzer - 5.2 - Fix typo in man page (Bug #20205) - update the "screen" terminfo entries to the version supplied with screen 3.9.8 * Mon Oct 9 2000 Bernhard Rosenkraenzer - Update (fixes the "make menuconfig" bug introduced by the security fix) * Tue Oct 3 2000 Bernhard Rosenkraenzer - Fix security problem (possible buffer overrun) * Fri Aug 4 2000 Bernhard Rosenkraenzer - Add the bugfix patches from the ncurses maintainer * Thu Jul 13 2000 Bernhard Rosenkraenzer - 5.1 * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jun 5 2000 Matt Wilson - *don't ship symlinks from lib*.so.5 to lib*.so.4! - use FHS macros * Fri Jun 2 2000 Bernhard Rosenkraenzer - rebuild for 7.0 - /usr/share/man - update URL for patches - misc. fixes to spec file * Mon Mar 20 2000 Bernhard Rosenkraenzer - use the real library version number - update to 20000319 * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Fri Feb 18 2000 Preston Brown - xterm terminfo entries from XFree86 3.3.6 - final round of xterm fixes, follow debian policy. * Sat Feb 5 2000 Bernhard Rosenkränzer - strip libraries * Thu Feb 3 2000 Bernhard Rosenkränzer - More xterm fixes (Bug #9087) * Thu Jan 27 2000 Bernhard Rosenkränzer - More xterm fixes from Hans de Goede (Bug #8633) * Sat Jan 15 2000 Bernhard Rosenkränzer - remove some broken symlinks (leftovers from libncurses.so.5) - Use %%configure (Bug #8484) * Tue Jan 11 2000 Bernhard Rosenkränzer - Add xterm patch from Hans de Goede - Patch 20000108, this fixes a problem with a header file. * Wed Jan 5 2000 Bernhard Rosenkränzer - Add 20000101 patch, hopefully finally fixing the xterm description * Wed Dec 22 1999 Cristian Gafton - revert to the old major number - because the ABI is not changed (and we should be handling the changes via symbol versioning anyway) * Fri Nov 12 1999 Bernhard Rosenkraenzer - Fix a typo in spec - Add the 19991006 patch, fixing some C++ STL compatibility problems. - get rid of profiling and debugging versions - we need to save space... * Thu Nov 4 1999 Bernhard Rosenkraenzer - 5.0 - some spec cleanups to make updating easier - add links *.so.5 to *.so.4 - they are fully binary compatible. (Why did they change the invocation number???) * Wed Sep 22 1999 Cristian Gafton - make clean in the test dir - don't ship any binaries at all. * Mon Sep 13 1999 Preston Brown - fixed stripping of test programs. * Sun Aug 29 1999 Preston Brown - removed 'flash' capability for xterm; see bug #2820 for details. * Fri Aug 27 1999 Cristian Gafton - add the resetall script from Marc Merlin * Fri Aug 27 1999 Preston Brown - added iris-ansi-net as alias for iris-ansi (bug #2561) * Fri Jul 30 1999 Michael K. Johnson - added ncurses-intro.hmtl and hackguide.html to -devel package [bug #3929] * Tue Apr 06 1999 Preston Brown - make sure ALL binaries are stripped (incl. test binaries) * Thu Mar 25 1999 Preston Brown - made xterm terminfo stuff MUCH better. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 16) * Sat Mar 13 1999 Cristian Gafton - fixed header for C++ compiles * Fri Mar 12 1999 Jeff Johnson - add terminfo entries for linux/linux-m on sparc (obsolete termfile_sparc). * Thu Feb 18 1999 Cristian Gafton - updated patchset from original site * Thu Dec 03 1998 Cristian Gafton - don't build the C++ demo code - update patch set to the current as of today (redid all the individual patches in a single one) * Wed Oct 14 1998 Cristian Gafton - make sure to strip the binaries * Wed Sep 23 1998 Cristian Gafton - added another zillion of patches. The spec file *is* ugly - defattr * Mon Jul 20 1998 Cristian Gafton - added lots of patches. This spec file is starting to look ugly * Wed Jul 01 1998 Alan Cox - Fix setuid trusting. Open termcap/info files as the real user. * Wed May 06 1998 Cristian Gafton - added terminfo entry for the poor guys using lat1 and/or lat-2 on their consoles... Enjoy linux-lat ! Thanks, Erik ! * Tue Apr 21 1998 Cristian Gafton - new patch to get xterm-color and nxterm terminfo entries - aliased them to rxvt, as that seems to satisfy everybody * Sun Apr 12 1998 Cristian Gafton - added %%clean section * Tue Apr 07 1998 Cristian Gafton - removed /usr/lib/terminfo symlink - we shouldn't need that * Mon Apr 06 1998 Cristian Gafton - updated to 4.2 + patches - added BuildRoot * Sat Apr 04 1998 Cristian Gafton - rebuilt with egcs on alpha * Wed Dec 31 1997 Erik Troan - version 7 didn't rebuild properly on the Alpha somehow -- no real changes are in this version * Tue Dec 09 1997 Erik Troan - TIOCGWINSZ wasn't used properly * Tue Jul 08 1997 Erik Troan - built against glibc, linked shared libs against -lc