]>
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 MT |
6 | name = bison |
7 | version = 2.5 | |
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 |
798d2771 MT |
16 | Bison is a general-purpose parser generator that converts an annotated \ |
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/ | |
21 | ||
22 | build | |
23 | requires | |
24 | m4 | |
25 | end | |
26 | ||
27 | configure_cmds | |
28 | echo '#define YYENABLE_NLS 1' >> lib/config.h | |
29 | end | |
30 | ||
31 | test | |
32 | make check | |
33 | end | |
34 | ||
35 | install_cmds | |
36 | mkdir -pv %{BUILDROOT}/usr/lib | |
37 | cd %{DIR_APP}/lib && gcc -shared -Wl,-soname,liby.so.%{version} \ | |
38 | -o liby.so.%{version} %{CFLAGS} main.o yyerror.o | |
39 | cd %{DIR_APP}/lib && install -v liby.so.%{version} \ | |
40 | %{BUILDROOT}/usr/lib/liby.so.%{version} | |
41 | ln -vsf liby.so.%{version} %{BUILDROOT}/usr/lib/liby.so.2 | |
42 | ln -vsf liby.so.2 %{BUILDROOT}/usr/lib/liby.so | |
43 | end | |
44 | end | |
45 | ||
46 | packages | |
47 | package %{name} | |
48 | requires += m4 | |
49 | end | |
1f9bc2f0 MT |
50 | |
51 | package %{name}-debuginfo | |
52 | template DEBUGINFO | |
53 | end | |
802ea3af | 54 | end |