Summary: A basic system library for accessing the termcap database. Name: libtermcap Version: 2.0.8 Release: 20 Source: ftp://metalab.unc.edu/pub/Linux/GCC/termcap-2.0.8.tar.gz Url: ftp://metalab.unc.edu/pub/Linux/GCC/ Copyright: LGPL Group: System Environment/Libraries Patch0: termcap-2.0.8-shared.patch Patch1: termcap-2.0.8-setuid.patch Patch2: termcap-2.0.8-instnoroot.patch Patch3: termcap-2.0.8-compat21.patch Patch4: termcap-2.0.8-xref.patch Patch5: termcap-2.0.8-fix-tc.patch Patch6: termcap-2.0.8-ignore-p.patch Patch7: termcap-buffer.patch # This patch is a REALLY BAD IDEA without patch #10 below.... Patch8: termcap-2.0.8-bufsize.patch Patch9: termcap-2.0.8-colon.patch Patch10: libtermcap-aaargh.patch Requires: /etc/termcap BuildPrereq: texinfo BuildRoot: /var/tmp/%{name}-root %description The libtermcap package contains a basic system library needed to access the termcap database. The termcap library supports easy access to the termcap database, so that programs can output character-based displays in a terminal-independent manner. %package devel Summary: Development tools for programs which will access the termcap database. Group: Development/Libraries Requires: libtermcap %description devel This package includes the libraries and header files necessary for developing programs which will access the termcap database. If you need to develop programs which will access the termcap database, you'll need to install this package. You'll also need to install the libtermcap package. %prep %setup -q -n termcap-2.0.8 %patch0 -p1 %patch1 -p1 %patch2 -p1 -b .nochown %patch3 -p1 -b .compat21 %patch4 -p1 %patch5 -p1 -b .fix-tc %patch6 -p1 -b .ignore-p %patch7 -p1 -b .buffer %patch8 -p1 -b .bufsize %patch9 -p1 -b .colon %patch10 -p1 -b .aaargh %build make CFLAGS="$RPM_OPT_FLAGS -I." %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{usr/lib,usr/info,usr/include,etc,lib} export PATH=/sbin:$PATH make prefix=$RPM_BUILD_ROOT/usr install install -c -m644 termcap.src $RPM_BUILD_ROOT/etc/termcap cp termcap.info* $RPM_BUILD_ROOT/usr/info ( cd $RPM_BUILD_ROOT rm -f ./etc/termcap mv ./usr/lib/libtermcap.so* ./lib ln -sf libtermcap.so.2.0.8 ./lib/libtermcap.so ln -sf /lib/libtermcap.so.2.0.8 ./usr/lib/libtermcap.so strip -R .comments --strip-unneeded ./lib/libtermcap.so.2.0.8 gzip -9nf ./usr/info/termcap.info* chmod 644 ./usr/info/termcap.info* ) %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %trigger -- info >= 3.12 /sbin/install-info \ --section="Libraries" --entry="* Termcap: (termcap). The GNU termcap library." \ --info-dir=/usr/info /usr/info/termcap.info.gz %postun if [ $1 = 0 ]; then /sbin/install-info --delete \ --section="Libraries" --entry="* Termcap: (termcap). The GNU termcap library." \ --info-dir=/usr/info /usr/info/termcap.info.gz fi /sbin/ldconfig %files %defattr(-,root,root) /usr/info/termcap.info* /lib/libtermcap.so.2.0.8 %files devel %defattr(-,root,root) /usr/lib/libtermcap.a /usr/lib/libtermcap.so /usr/include/termcap.h %changelog * Sun Feb 6 2000 Bernhard Rosenkränzer - BuildPrereq: texinfo (#8927) * Sat Feb 5 2000 Bernhard Rosenkränzer - strip library - fix up handling of RPM_OPT_FLAGS * Tue Aug 30 1999 Bill Nottingham - ignore the first argument to tgetent, so the last change doesn't keep blowing up programs. - ignore the second argument to tgetstr() as well. * Sat Aug 21 1999 Jeff Johnson - increase default size of malloc'ed tgetent buffer from 1024 to 1536. - don't shrink colons (#4270). - rebuild for 6.1. * Mon Aug 16 1999 Bill Nottingham - add buffer overflow patch from Kevin Vajk * Sat May 15 1999 Jeff Johnson - permit multiple tc= continuations and ignore unnecessary %p ("push arg") (#54) * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 13) - fix to make the texi documenattion compile * Thu Jan 14 1999 Jeff Johnson - use __PMT(...) prototypes (#761) * Fri Dec 18 1998 Cristian Gafton - build against glibc 2.1 * Wed Aug 05 1998 Erik Troan - run install-info from a %trigger so we don't have to make it a prereq; as termcap is used by bash, the install ordering issues are hairy - commented out the chown stuff from 'make install' so you don't have to be root to build this - don't run ldconfig if prefix= is used during 'make install' * Tue Aug 4 1998 Jeff Johnson - build root. * Tue Jun 30 1998 Alan Cox - But assume system termcap is sane. Also handle setfsuid return right. * Tue Jun 30 1998 Alan Cox - TERMCAP environment hole for setuid apps squished. * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Tue Oct 14 1997 Donnie Barnes - spec file cleanups * Tue Jun 03 1997 Erik Troan - built against glibc