]>
Commit | Line | Data |
---|---|---|
798d2771 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
798d2771 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = bison |
fea1090e MT |
7 | version = 3.3.2 |
8 | release = 1 | |
798d2771 | 9 | |
802ea3af MT |
10 | groups = Development/Tools |
11 | url = http://www.gnu.org/software/bison/ | |
12 | license = GPLv2+ | |
13 | summary = GNU Bison is a parser generator. | |
24831176 | 14 | |
802ea3af | 15 | description |
d8966ea9 | 16 | Bison is a general-purpose parser generator that converts an annotated |
798d2771 | 17 | context-free grammar into an LALR(1) or GLR parser for that grammar. |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = http://ftp.gnu.org/gnu/bison/ | |
d8966ea9 | 21 | sources = %{thisapp}.tar.xz |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
d8966ea9 | 25 | flex >= 2.5.37 |
e786a6a9 | 26 | m4 >= 1.4.17-2 |
802ea3af MT |
27 | end |
28 | ||
29 | configure_cmds | |
30 | echo '#define YYENABLE_NLS 1' >> lib/config.h | |
31 | end | |
32 | ||
531618b7 MT |
33 | build_cmds |
34 | cd lib | |
35 | gcc -shared -Wl,-soname,liby.so.%{version} \ | |
36 | -o liby.so.%{version} %{CFLAGS} main.o yyerror.o | |
37 | end | |
38 | ||
802ea3af MT |
39 | test |
40 | make check | |
41 | end | |
42 | ||
43 | install_cmds | |
531618b7 MT |
44 | mkdir -pv %{BUILDROOT}%{libdir} |
45 | cd lib | |
46 | install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version} | |
d8966ea9 SS |
47 | ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.3 |
48 | ln -vsf liby.so.3 %{BUILDROOT}%{libdir}/liby.so | |
802ea3af MT |
49 | end |
50 | end | |
51 | ||
52 | packages | |
53 | package %{name} | |
54 | requires += m4 | |
55 | end | |
1f9bc2f0 MT |
56 | |
57 | package %{name}-debuginfo | |
58 | template DEBUGINFO | |
59 | end | |
802ea3af | 60 | end |