]> git.pld-linux.org Git - packages/bison.git/blob - bison.spec
- updated to 2.1
[packages/bison.git] / bison.spec
1 Summary:        A GNU general-purpose parser generator
2 Summary(de):    GNU-Parser-Generator
3 Summary(es):    Generador de parser de la GNU
4 Summary(fr):    Générateur d'analyseur lexical de GNU
5 Summary(pl):    GNU generator sk³adni
6 Summary(pt_BR): Gerador de parser da GNU
7 Summary(ru):    Bison - ÇÅÎÅÒÁÔÏÒ ÐÁÒÓÅÒÏ× GNU
8 Summary(tr):    GNU ayrýþtýrýcý üreticisi
9 Summary(uk):    Bison - ÇÅÎÅÒÁÔÏÒ ÐÁÒÓÅҦנGNU
10 Name:           bison
11 Version:        2.1
12 Release:        1
13 License:        GPL
14 Group:          Development/Tools
15 Source0:        ftp://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.bz2
16 # Source0-md5:  ef3110077462b1140b2ae612626e8486
17 Source1:        %{name}.1.pl
18 Patch0:         %{name}-info.patch
19 Patch1:         %{name}-pl.po-update.patch
20 BuildRequires:  automake
21 BuildRequires:  flex
22 BuildRequires:  gettext-devel >= 0.12
23 BuildRequires:  m4 >= 1.4.3
24 BuildRequires:  texinfo >= 4.0
25 Requires:       %{name}-runtime = %{version}-%{release}
26 Requires:       m4 >= 1.4.3
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         pkgdatadir      %{_datadir}/bison
30
31 %description
32 Bison is a general purpose parser generator which converts a grammar
33 description for an LALR context-free grammar into a C program to parse
34 that grammar. Bison can be used to develop a wide range of language
35 parsers, from ones used in simple desk calculators to complex
36 programming languages. Bison is upwardly compatible with Yacc, so any
37 correctly written Yacc grammar should work with Bison without any
38 changes. If you know Yacc, you shouldn't have any trouble using Bison
39 (but you do need to be very proficient in C programming to be able to
40 use Bison). Many programs use Bison as part of their build process.
41 Bison is only needed on systems that are used for development.
42
43 %description -l de
44 Dies ist der GNU-Parser-Generator, der größtenteils mit yacc
45 kompatibel ist. Viele Programme benutzen ihn als Teil des
46 Aufbauvorgangs. Bison wird nur auf Systemen benötigt, die zur
47 Entwicklung verwendet werden.
48
49 %description -l es
50 Este es el creador de análisis gramatical GNU más compatible con yacc.
51 Varios programas lo utilizan como parte del su proceso de
52 construcción. Bison solamente hace falta en sistemas que se usan para
53 desarrollo.
54
55 %description -l fr
56 Générateur d'analyseur lexical de GNU compatible avec yacc. De
57 nombreux programmes l'utilisent dans leur phase de construction. Bison
58 ne sert que sur les systèmes utilisés pour le développement.
59
60 %description -l pl
61 W pakiecie znajduje siê implementacja GNU generatora analizatora
62 sk³adni, który jest odpowiednikiem programu yacc. Wiele programów
63 podczas kompilacji potrzebuje tego programu aby proces budowy plików
64 binarnych przebiega³ prawid³owo. Bison jest potrzebny tylko w
65 systemach, w których prowadzone s± ró¿nego rodzaju kompilacje.
66
67 %description -l pt_BR
68 Este é o gerador de análise gramatical GNU que é mais compatível com
69 yacc. Vários programas o utilizam como parte do seu processo de
70 construção. Bison é somente necessário em sistemas que são usados para
71 desenvolvimento.
72
73 %description -l ru
74 Bison - ÜÔÏ ÐÁÒÓÅÒ, × ÏÓÎÏ×ÎÏÍ ÓÏ×ÍÅÓÔÉÍÙÊ Ó yacc. íÎÏÇÉÅ ÐÒÏÇÒÁÍÍÙ
75 ÉÓÐÏÌØÚÕÀÔ ÅÇÏ × ÐÒÏÃÅÓÓÅ ËÏÍÐÉÌÌÑÃÉÉ. Bison ÎÕÖÅΠÔÏÌØËÏ × ÓÉÓÔÅÍÁÈ,
76 ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ.
77
78 %description -l tr
79 byacc bir yacc ayrýþtýrýcýsýdýr. Pek çok program tarafýndan, kurulum
80 süreci sýrasýnda kullanýlýr. Geliþtirme yapanlara gerekli olabilir.
81
82 %description -l uk
83 Bison - ÃÅ ÐÁÒÓÅÒ, ÚÄŦÌØÛÏÇÏ ÓÕͦÓÎÉÊ Ú yacc. âÁÇÁÔÏ ÐÒÏÇÒÁÍ
84 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÊÏÇÏ × ÐÒÏÃÅÓ¦ ËÏÍЦÌÑæ§. Bison ÐÏÔÒ¦ÂÅΠԦÌØËÉ ×
85 ÓÉÓÔÅÍÁÈ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ.
86
87 %package runtime
88 Summary:        Runtime library for programs containing bison-generated parsers
89 Summary(pl):    Biblioteka uruchomieniowa dla programów zawierajacych parsery bisonowe
90 Group:          Libraries
91
92 %description runtime
93 Runtime library for internationalized programs containing
94 bison-generated parsers.
95
96 %description runtime -l pl
97 Biblioteka uruchomieniowa dla umiêdzynarodowionych programów
98 zawierajacych parsery wygenerowane przez bisona.
99
100 %prep
101 %setup -q
102 %patch0 -p1
103 %patch1 -p1
104
105 %build
106 cp -f /usr/share/automake/config.sub config
107 %configure
108 %{__make} \
109         pkgdatadir=%{pkgdatadir}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1
114
115 %{__make} install \
116         DESTDIR=$RPM_BUILD_ROOT \
117         pkgdatadir=%{pkgdatadir}
118
119 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/bison.1
120
121 %find_lang %{name}
122 %find_lang %{name}-runtime
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post
128 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
129
130 %postun
131 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
132
133 %files -f %{name}.lang
134 %defattr(644,root,root,755)
135 %doc AUTHORS ChangeLog NEWS README THANKS TODO
136 %attr(755,root,root) %{_bindir}/bison
137 # would conflict with byacc (but is not 100% compatible)
138 #%attr(755,root,root) %{_bindir}/yacc
139 %{pkgdatadir}
140 %{_libdir}/lib*.a
141 %{_aclocaldir}/bison-i18n.m4
142 %{_mandir}/man1/*
143 %lang(pl) %{_mandir}/pl/man1/*
144 %{_infodir}/*.info*
145
146 %files runtime -f %{name}-runtime.lang
147 %defattr(644,root,root,755)
This page took 0.070541 seconds and 3 git commands to generate.