X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bison.spec;h=c86463e2782b8e5bf31fdc5e283c41e2eca29145;hb=1077209b8638b94173d009560ba211b99be6ad73;hp=5d050c3280c78f0f838c7d03b87ee07a2309a1ed;hpb=c7874f2162de5f7523a3a34284beae3c2f32215c;p=packages%2Fbison.git diff --git a/bison.spec b/bison.spec index 5d050c3..c86463e 100644 --- a/bison.spec +++ b/bison.spec @@ -1,47 +1,57 @@ -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.27 -Release: 2 -Copyright: GPL +Version: 1.28 +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: /sbin/install-info -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 -programmes l'utilisent dans leur phase de construction. Bison ne sert que -sur les systèmes utilisés pour le développement. +Générateur d'analyseur lexical de GNU compatible avec yacc. De +nombreux programmes l'utilisent dans leur phase de construction. Bison +ne sert que sur les systèmes utilisés pour le développement. %description -l pl -W pakiecie znajduje siê implementacja GNU generatora analizatora sk³adni, -który jest odpowiednikiem programu yacc. Wiele programów podczas kompilacji -potrzebuje tego programu aby proces budowy plików binarnych przebiega³ -prawid³owo. Bison jest potrzebny tylko w systemach, w których prowadzone s± -ró¿nego rodzaju kompilacje. +W pakiecie znajduje siê implementacja GNU generatora analizatora +sk³adni, który jest odpowiednikiem programu yacc. Wiele programów +podczas kompilacji potrzebuje tego programu aby proces budowy plików +binarnych przebiega³ prawid³owo. Bison jest potrzebny tylko w +systemach, w których prowadzone s± ró¿nego rodzaju kompilacje. %description -l tr -byacc bir yacc ayrýþtýrýcýsýdýr. Pek çok program tarafýndan, kurulum süreci -sýrasýnda kullanýlýr. Geliþtirme yapanlara gerekli olabilir. +byacc bir yacc ayrýþtýrýcýsýdýr. Pek çok program tarafýndan, kurulum +süreci sýrasýnda kullanýlýr. Geliþtirme yapanlara gerekli olabilir. %prep %setup -q @@ -49,27 +59,25 @@ s %patch1 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure %{_target} \ - --prefix=/usr +LDFLAGS="-s"; export LDFLAGS +%configure make %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/man/pl/man1 +install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1 + +make install DESTDIR=$RPM_BUILD_ROOT -make install prefix=$RPM_BUILD_ROOT/usr +install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1 -install %{SOURCE1} $RPM_BUILD_ROOT/usr/man/pl/man1/bison.1 -gzip -9nf $RPM_BUILD_ROOT/usr/{info/bison.info*,man/{man1/*,pl/man1/*}} +gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/{man1/*,pl/man1/*}} %post -/sbin/install-info /usr/info/bison.info.gz /etc/info-dir +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 -%preun -if [ "$1" = "0" ]; then - /sbin/install-info --delete /usr/info/bison.info.gz /etc/info-dir -fi +%postun +[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT @@ -77,45 +85,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) /usr/bin/* - -/usr/man/man1/* -%lang(pl) /usr/man/pl/man1/* - -/usr/share/* -/usr/info/*info* - -%changelog -* Thu Apr 22 1999 Tomasz K³oczko - [1.27-2] -- recompiles on new rpm. - -* Fri Feb 26 1999 Tomasz K³oczko - [1.27-1] -- added Group(pl), -- changed way passing $RPM_OPT_FLAGS -s to LDFLAGS, -- removed man group from man pages. - -* Tue Dec 29 1998 Tomasz K³oczko - [1.25-8] -- standarized {un}registering info pages (added bison-info.patch). - -* Sat Dec 12 1998 Tomasz K³oczko - [1.25-7] -- added gzipping man pages, -- added pl man pages, -- standarized {un}registering info pages. - -* Fri Nov 6 1998 Tomasz K³oczko - [1.25-6] -- fixed passing $RPM_OPT_FLAGS, -- modified pl translation, -- bisona.{simple,hairy} moved to /usr/share. - -* Sun Jun 14 1998 Wojtek ¦lusarczyk - [1.25-5] -- added pl translation, -- macro %%{name}-%%{version} in Source, -- minor modifications of spec file, -- build against GNU libc-2.1, -- start at RH spec. +%attr(755,root,root) %{_bindir}/* + +%lang(pl) %{_mandir}/pl/man1/* +%{_mandir}/man1/* +%{_infodir}/*info* +%{_datadir}/*