Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 4296ce011792eec269fe8e4d2fa47210 > files > 3

bison-2.3-4mdv2007.1.src.rpm

Summary:	A GNU general-purpose parser generator
Name:		bison
Version:	2.3
Release:	%mkrel 4
License:	GPL
Group:		Development/Other
URL:		http://www.gnu.org/software/bison/bison.html
Source0:	ftp://alpha.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
Patch0:		bison-1.32-extfix.patch
Requires(post): info-install
Requires(preun):info-install
Requires:	m4
Conflicts:	byacc <= 1.9-16mdk
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Bison is a general purpose parser generator which converts a grammar
description for an LALR 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 (but you do need
to be very proficient in C programming to be able to use Bison).  Many
programs use Bison as part of their build process. 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
%patch0 -p1 -b .extfix

%build
%configure2_5x
%make

%check
make check

%install
rm -rf %{buildroot}

%makeinstall_std

mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/yacc.bison

# Remove unpackaged files
rm %{buildroot}%{_libdir}/liby.a

%find_lang %{name}
%find_lang %{name}-runtime
cat %name-runtime.lang >> %name.lang

%post
%_install_info %{name}.info
%{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/yacc.bison 10

%preun
%_remove_install_info %{name}.info
if [ $1 -eq 0 ]; then
  %{_sbindir}/update-alternatives --remove yacc %{_bindir}/yacc.bison
fi

%triggerpostun -- byacc <= 1.9-16mdk
%{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/yacc.bison 10

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING NEWS README
%{_bindir}/*
%dir %{_datadir}/bison
%{_datadir}/bison/*
%{_datadir}/aclocal/*
%{_infodir}/bison.info*
%{_mandir}/man1/*



%changelog
* Mon Mar 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 2.3-4mdv2007.1
+ Revision: 146590
- do not package big ChangeLog

* Sat Jan 13 2007 Götz Waschk <waschk@mandriva.org> 2.3-3mdv2007.1
+ Revision: 108197
- fix pre and preun requires
- use check macro
- use find-lang

  + Oden Eriksson <oeriksson@mandriva.com>
    - bzip2 cleanup

* Tue Oct 10 2006 Oden Eriksson <oeriksson@mandriva.com> 2.3-2mdv2007.1
+ Revision: 63270
- bunzip patches
- Import bison



* Thu Jul 20 2006 Emmanuel Andry <eandry@mandriva.org> 2.3-1mdv2007.0
- 2.3

* Fri Jun 02 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.2-1mdv2007.0
- 2.2

* Mon May 15 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.1-3mdk
- Rebuild (missing binary)

* Fri May 12 2006 Stefan van der Eijk <stefan@eijk.nu> 2.1-2mdk
- rebuild for sparc

* Wed Oct 05 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.1-1mdk
- New version

* Thu Aug 11 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.0-3mdk
- fix rpmlint errors (PreReq)

* Thu Aug 11 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.0-2mdk
- fix rpmlint errors (PreReq) 

* Wed Jan 05 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 2.0-1mdk
- New version
- Add docs

* Thu Dec 23 2004 Abel Cheung <deaddog@mandrake.org> 1.875e-1mdk
- New version
- Fix URL
- Make it an alternative to byacc
- make check

* Thu Jul 29 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.875d-1mdk
- 1.875d
- drop P1 (fixed upstream)
- cosmetics

* Mon Jun 01 2004 Robert Vojta <robert.vojta@mandrake.org> 1.875-5mdk
- Requires m4 package (#9922)

* Thu Feb 26 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.875-4mdk
- Own %%_datadir/bison

* Tue Jun 24 2003 Frederic Crozat <fcrozat@mandrakesoft.com> - 1.875-3mdk
- Patch1: fix gcc error in yyerrlab1

* Sat Jun 14 2003 Warly <warly@mandrakesoft.com> 1.875-2mdk
- temporaly fix the yacc conflict with byacc, will see later if an alternative is required.

* Fri Jun 13 2003 Warly <warly@mandrakesoft.com> 1.875-1mdk
- new version (main changes):
  - Changes in version 1.875, 2003-01-01:
    * syntax error processing
      - In Yacc-style parsers YYLLOC_DEFAULT is now used to compute error locations too.  This fixes bugs in error-location computation.
    * POSIX conformance
      - Semicolons are once again optional at the end of grammar rules. This reverts to the behavior of Bison 1.33 and earlier, and improves compatibility with Yacc.
      - `parse error' -> `syntax error' Bison now uniformly uses the term `syntax error';
      - Yacc command and library now available The Bison distribution now installs a `yacc' command, as POSIX requires.
      - Type clashes now generate warnings, not errors.
  - Changes in version 1.75, 2002-10-14:
    * Bison should now work on 64-bit hosts.
- port extfix patch to new version

* Fri May 02 2003 Stefan van der Eijk <stefan@eijk.nu> 1.35-4mdk
- remove unpackaged files

* Thu Jun  6 2002 Warly <warly@mandrakesoft.com> 1.35-3mdk
- fix non libdir in configure

* Mon May 06 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.35-2mdk
- Automated rebuild in gcc3.1 environment

* Thu Mar 28 2002 Warly <warly@mandrakesoft.com> 1.35-1mdk
- new version

* Fri Feb 15 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.32-2mdk
- Patch0: src/files (compute_exts_from_gf, compute_exts_from_src):
  Handle the case where header_extension is the same as src_extension,
  aka handle -d -o <file> where <file> doesn't have a known EXT to
  transform. e.g. if <file> is <something>.yxx, set the
  header_extension to <something>.yxx.h, as would do bison 1.28.

* Fri Feb  1 2002 Warly <warly@mandrakesoft.com> 1.32-1mdk
- new version

* Fri Jan 18 2002 Warly <warly@mandrakesoft.com> 1.31-1mdk
- new version

* Wed Jan  2 2002 Warly <warly@mandrakesoft.com> 1.30-4mdk
- add url tag

* Tue Oct 30 2001 Warly <warly@mandrakesoft.com> 1.30-3mdk
- fix remove install info error

* Tue Oct 30 2001 Warly <warly@mandrakesoft.com> 1.30-2mdk
- reput bison.simple in /usr/share

* Mon Oct 29 2001 Warly <warly@mandrakesoft.com> 1.30-1mdk
- new version

* Mon Jul  2 2001 Warly <warly@mandrakesoft.com> 1.28-9mdk
- clean spec

* Fri Nov 10 2000 Warly <warly@mandrakesoft.com> 1.28-8mdk
- rebuild with gcc 2.96 and glibc 2.2

* Thu Aug 03 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 1.28-7mdk
- included catalog files

* Mon Jul 24 2000 Warly <warly@mandrakesoft.com> 1.28-6mdk
- BM

* Mon Jul 10 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.28-5mdk
- fix make install as lord stefan require (pxlscks)
- really use spec-helper (idem?)

* Wed Jan 12 2000 Pixel <pixel@mandrakesoft.com> 1.28-4mdk
- spec-helper
- group update

* Wed Jan 12 2000 Pixel <pixel@mandrakesoft.com>
- fix build as non-root

* Wed Jul 07 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- version 1.28 :

* Tue May 18 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Bziped info files.
- Handle RPM_OPT_FLAGS

* Tue May 11 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 3)

* Mon Mar  8 1999 Jeff Johnson <jbj@redhat.com>
- configure with datadir=/usr/lib (#1386).

* Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com>
- updated text in spec file.
- update to 1.27

* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
- build for glibc 2.1

* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
- built for Manhattan
- added build root

* Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
- various spec file cleanups

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc