]>
Commit | Line | Data |
---|---|---|
4768c311 AM |
1 | Summary: Generate a parser in c or c++ from BNF notation |
2 | Name: bison++ | |
3 | Version: 1.21.5 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Development/Tools | |
7 | Source0: ftp://ftp.iecc.com/pub/file/bison++flex++/b++5.tar.z | |
8 | # Source0-md5: 482ba52685d2d91bd708a952a1a6e143 | |
9 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
10 | ||
11 | %description | |
12 | Based on bison version 1.19. Compatible with bison but with C++ support. | |
13 | Bison is a general-purpose parser generator that converts a grammar | |
14 | description for an LALR (BNF-like) context free grammar into a C/C++ program | |
15 | to parse that grammar. Once you are proficient with bison++ you can generate | |
16 | a wide range of language parsers, from those used in simple desk calculators | |
17 | to complex programming languages. | |
18 | ||
19 | %prep | |
20 | %setup -q -c | |
21 | ||
22 | %build | |
23 | %configure | |
24 | ||
25 | %{__make} \ | |
26 | CC="%{__cc}" | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_mandir}/pl/man1 | |
31 | ||
32 | %{makeinstall} \ | |
33 | mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \ | |
34 | datadir=$RPM_BUILD_ROOT%{_datadir}/%{name} | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc REFERENCES ChangeLog | |
42 | %attr(755,root,root) %{_bindir}/bison++ | |
43 | %{_datadir}/%{name} | |
44 | %{_mandir}/man?/* |