]> git.pld-linux.org Git - packages/bison.git/blob - bison.spec
- removed Prereq: /usr/sbin/fix-info-dir
[packages/bison.git] / bison.spec
1 Summary:        A GNU general-purpose parser generator
2 Summary(de):    GNU-Parser-Generator
3 Summary(fr):    Générateur d'analyseur lexical de GNU
4 Summary(pl):    GNU generator sk³adni 
5 Summary(tr):    GNU ayrýþtýrýcý üreticisi
6 Name:           bison
7 Version:        1.28
8 Release:        4
9 License:        GPL
10 Group:          Development/Tools
11 Group(fr):      Development/Outils
12 Group(pl):      Programowanie/Narzêdzia
13 Source0:        ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
14 Source1:        bison.1.pl
15 Patch0:         bison-info.patch
16 Patch1:         bison-man.patch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      yacc
19
20 %define         _datadir        /usr/share/misc
21
22 %description
23 Bison is a general purpose parser generator which converts a grammar
24 description for an LALR context-free grammar into a C program to parse that
25 grammar. Bison can be used to develop a wide range of language parsers,
26 from ones used in simple desk calculators to complex programming languages.
27 Bison is upwardly compatible with Yacc, so any correctly written Yacc
28 grammar should work with Bison without any changes. If you know Yacc, you
29 shouldn't have any trouble using Bison (but you do need to be very
30 proficient in C programming to be able to use Bison). Many programs use
31 Bison as part of their build process. Bison is only needed on systems that
32 are used for development.
33
34 %description -l de
35 Dies ist der GNU-Parser-Generator, der größtenteils mit yacc kompatibel
36 ist. Viele Programme benutzen ihn als Teil des Aufbauvorgangs. Bison wird
37 nur auf Systemen benötigt, die zur Entwicklung verwendet werden.
38
39 %description -l fr
40 Générateur d'analyseur lexical de GNU compatible avec yacc. De nombreux
41 programmes l'utilisent dans leur phase de construction. Bison ne sert que
42 sur les systèmes utilisés pour le développement.
43
44 %description -l pl
45 W pakiecie znajduje siê implementacja GNU generatora analizatora sk³adni,
46 który jest odpowiednikiem programu yacc. Wiele programów podczas kompilacji
47 potrzebuje tego programu aby proces budowy plików binarnych przebiega³
48 prawid³owo. Bison jest potrzebny tylko w systemach, w których prowadzone s±
49 ró¿nego rodzaju kompilacje.
50
51 %description -l tr
52 byacc bir yacc ayrýþtýrýcýsýdýr. Pek çok program tarafýndan, kurulum süreci
53 sýrasýnda kullanýlýr. Geliþtirme yapanlara gerekli olabilir.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58 %patch1 -p1
59
60 %build
61 LDFLAGS="-s"; export LDFLAGS
62 %configure
63 make
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
68
69 make install DESTDIR=$RPM_BUILD_ROOT
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
72
73 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*,%{_mandir}/{man1/*,pl/man1/*}}
74
75 %post
76 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
77
78 %postun
79 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %files
85 %defattr(644,root,root,755)
86
87 %attr(755,root,root) %{_bindir}/*
88
89 %lang(pl) %{_mandir}/pl/man1/*
90 %{_mandir}/man1/*
91 %{_infodir}/*info*
92 %{_datadir}/*
This page took 0.068389 seconds and 3 git commands to generate.