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