Summary: A terminal handling library Name: ncurses Version: 5.5 Release: 26.20060715%{?dist} License: distributable Group: System Environment/Libraries URL: http://invisible-island.net/ncurses/ncurses.html Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz Source1: ncurses-linux Source2: ncurses-linux-m Source3: ncurses-resetall.sh Source4: ftp://invisible-island.net/ncurses/5.5/patch-5.5-20060625.sh.gz Patch1: ftp://invisible-island.net/ncurses/5.5/ncurses-5.5-20060701.patch.gz Patch2: ftp://invisible-island.net/ncurses/5.5/ncurses-5.5-20060708.patch.gz Patch3: ftp://invisible-island.net/ncurses/5.5/ncurses-5.5-20060715.patch.gz Patch5: ncurses-5.4-xterm-kbs.patch Patch6: ncurses-5.5-20060715-tgetent.patch Patch7: ncurses-5.5-20060715-tgetstr.patch Patch8: ncurses-5.5-20060715-cflags.patch Patch9: ncurses-5.5-liblinks.patch BuildRequires: sharutils 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} Obsoletes: ncurses-c++-devel %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. Use the following compiler flags to build against the ncurses library: -lncurses (compile and link against the regular ncurses library) -I %{_includedir}/ncursesw -lncursesw (compile and link against the wide-character, UTF-8, library) %prep %setup -q zcat %{SOURCE4} | sh > /dev/null %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch5 -p1 -b .xterm-kbs %patch6 -p1 -b .tgetent %patch7 -p1 -b .tgetstr %patch8 -p1 -b .cflags %patch9 -p1 -b .liblinks %build %define rootdatadir /lib %define ncurses_options \\\ --with-shared --without-ada --with-ospeed=unsigned \\\ --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \\\ --with-install-prefix=$RPM_BUILD_ROOT \\\ --with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo:%{rootdatadir}/terminfo \\\ --enable-overwrite \\\ --with-chtype=long mkdir narrowc widec cd narrowc ln -s ../configure . %configure %{ncurses_options} \ --includedir=%{_includedir}/ncurses make %{?_smp_mflags} cd ../widec ln -s ../configure . %configure %{ncurses_options} \ --enable-widec \ --includedir=%{_includedir}/ncursesw make %{?_smp_mflags} cd .. %install rm -rf ${RPM_BUILD_ROOT} make -C narrowc install make -C widec install chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/lib*.so.*.* chmod 644 ${RPM_BUILD_ROOT}%{_libdir}/lib*.a # move libncurses.so.* to /lib* mkdir $RPM_BUILD_ROOT/%{_lib} mv $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib} for l in $RPM_BUILD_ROOT%{_libdir}/libncurses.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} install -c -m 755 %{SOURCE3} ${RPM_BUILD_ROOT}%{_bindir}/resetall rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc README ANNOUNCE doc/html/announce.html /%{_lib}/libncurses*.so.* %{_libdir}/lib*.so.* %dir %{_sysconfdir}/terminfo %{rootdatadir}/terminfo %{_datadir}/terminfo %{_datadir}/tabset %{_bindir}/* %{_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* %{_libdir}/lib*.a %{_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/* %clean rm -rf ${RPM_BUILD_ROOT} %changelog * 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