X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bison.spec;h=0dc94b324c3cc732cccbf3b52ee4361a499f4f7d;hb=3795119dd544ae612adc4360f12eee434f6fae7f;hp=5e553939fb3323a4a88244822712c77e09c22479;hpb=72b4640adbfe4dcfebff46a859466579c2f4b807;p=packages%2Fbison.git diff --git a/bison.spec b/bison.spec index 5e55393..0dc94b3 100644 --- a/bison.spec +++ b/bison.spec @@ -1,33 +1,40 @@ -Summary: GNU parser generator +Summary: A GNU general-purpose parser generator Summary(de): GNU-Parser-Generator Summary(fr): Générateur d'analyseur lexical de GNU Summary(pl): GNU generator sk³adni Summary(tr): GNU ayrýþtýrýcý üreticisi Name: bison Version: 1.28 -Release: 1 -Copyright: GPL +Release: 4 +License: GPL Group: Development/Tools +Group(fr): Development/Outils Group(pl): Programowanie/Narzêdzia Source0: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz Source1: bison.1.pl Patch0: bison-info.patch Patch1: bison-man.patch -Prereq: /usr/sbin/fix-info-dir -Buildroot: /tmp/%{name}-%{version}-root +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: yacc %define _datadir /usr/share/misc %description -This is the GNU parser generator which is mostly compatible with yacc. Many -programs use this as part of their build process. Bison is only needed on -systems that are used for development. +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. %description -l de -Dies ist der GNU-Parser-Generator, der größtenteils mit yacc kompatibel ist. Viele -Programme benutzen ihn als Teil des Aufbauvorgangs. Bison wird nur auf -Systemen benötigt, die zur Entwicklung verwendet werden. +Dies ist der GNU-Parser-Generator, der größtenteils mit yacc kompatibel +ist. Viele Programme benutzen ihn als Teil des Aufbauvorgangs. Bison wird +nur auf Systemen benötigt, die zur Entwicklung verwendet werden. %description -l fr Générateur d'analyseur lexical de GNU compatible avec yacc. De nombreux @@ -66,10 +73,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/{man1/*,pl/man1/*}} %post -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 -%preun -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%postun +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT