Summary: A GNU general-purpose parser generator. Name: bison Version: 1.34 Release: 1 Copyright: GPL Group: Development/Tools Source: ftp://prep.ai.mit.edu/pub/gnu/bison-%{version}.tar.bz2 Prefix: %{_prefix} Prereq: /sbin/install-info BuildRoot: /var/tmp/%{name}-root %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description Bison is a general purpose parser generator which converts a grammar description for an LALR(1) context-free grammar into a C program to parse that grammar. Bison can be used to develop a wide range of language parsers, from ones used in simple desk calculators to complex programming languages. Bison is upwardly compatible with Yacc, so any correctly written Yacc grammar should work with Bison without any changes. If you know Yacc, you shouldn't have any trouble using Bison. You do need to be very proficient in C programming to be able to use Bison). Bison is only needed on systems that are used for development. If your system will be used for C development, you should install Bison since it is used to build many C programs. %prep %setup -q %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` else export CC=gcc fi fi ./configure make LDFLAGS=-s %install rm -rf $RPM_BUILD_ROOT %makeinstall gzip -9nf ${RPM_BUILD_ROOT}%{_prefix}/info/bison.info* ( cd $RPM_BUILD_ROOT mkdir -p usr/bin cd usr/bin ln -sf ../..%{prefix}/bin/* . cd - mkdir -p usr/share cd usr/share ln -sf ../..%{prefix}/share/bison . ) %post /sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir --entry="* bison: (bison). The GNU parser generator." fi %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README REFERENCES THANKS %{_mandir}/*/* %{_datadir}/bison %{_datadir}/locale/*/*/bison* %{_infodir}/bison.info* %{_bindir}/* /usr/bin/* /usr/share/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Jun 14 2002 David Clissold - Update to bison version 1.34 * Wed Jan 30 2002 David Clissold - Update to bison version 1.30 * Wed Mar 07 2001 Marc Stephenson - Update to libtool 1.3.5a - Add logic for default compiler * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Thu Feb 03 2000 Preston Brown - rebuild to gzip man page. * Fri Jul 16 1999 Jeff Johnson - update to 1.28. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Mon Mar 8 1999 Jeff Johnson - configure with datadir=/usr/lib (#1386). * Mon Feb 22 1999 Jeff Johnson - updated text in spec file. - update to 1.27 * Thu Dec 17 1998 Cristian Gafton - build for glibc 2.1 * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Wed Apr 08 1998 Cristian Gafton - built for Manhattan - added build root * Wed Oct 15 1997 Donnie Barnes - various spec file cleanups * Mon Jun 02 1997 Erik Troan - built against glibc