]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - bison/bison.nm
kernel: Update to 3.13.2.
[people/ms/ipfire-3.x.git] / bison / bison.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = bison
7 version = 2.7.1
8 release = 1
9
10 groups = Development/Tools
11 url = http://www.gnu.org/software/bison/
12 license = GPLv2+
13 summary = GNU Bison is a parser generator.
14
15 description
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.
18 end
19
20 source_dl = http://ftp.gnu.org/gnu/bison/
21
22 build
23 requires
24 m4 >= 1.4.16
25 perl
26 end
27
28 configure_cmds
29 echo '#define YYENABLE_NLS 1' >> lib/config.h
30 end
31
32 build_cmds
33 cd lib
34 gcc -shared -Wl,-soname,liby.so.%{version} \
35 -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
36 end
37
38 test
39 make check
40 end
41
42 install_cmds
43 mkdir -pv %{BUILDROOT}%{libdir}
44 cd lib
45 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
46 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.2
47 ln -vsf liby.so.2 %{BUILDROOT}%{libdir}/liby.so
48 end
49 end
50
51 packages
52 package %{name}
53 requires += m4
54 end
55
56 package %{name}-debuginfo
57 template DEBUGINFO
58 end
59 end