]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - bison/bison.nm
bison: Update to 3.0.4.
[people/amarx/ipfire-3.x.git] / bison / bison.nm
CommitLineData
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 6name = bison
d8966ea9 7version = 3.0.4
309682b0 8release = 1
798d2771 9
802ea3af
MT
10groups = Development/Tools
11url = http://www.gnu.org/software/bison/
12license = GPLv2+
13summary = GNU Bison is a parser generator.
24831176 14
802ea3af 15description
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
18end
19
20source_dl = http://ftp.gnu.org/gnu/bison/
d8966ea9 21sources = %{thisapp}.tar.xz
802ea3af
MT
22
23build
24 requires
d8966ea9 25 flex >= 2.5.37
f9805fbe 26 m4 >= 1.4.16
a702a8ad 27 perl
802ea3af
MT
28 end
29
30 configure_cmds
31 echo '#define YYENABLE_NLS 1' >> lib/config.h
32 end
33
531618b7
MT
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
802ea3af
MT
40 test
41 make check
42 end
43
44 install_cmds
531618b7
MT
45 mkdir -pv %{BUILDROOT}%{libdir}
46 cd lib
47 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
d8966ea9
SS
48 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.3
49 ln -vsf liby.so.3 %{BUILDROOT}%{libdir}/liby.so
802ea3af
MT
50 end
51end
52
53packages
54 package %{name}
55 requires += m4
56 end
1f9bc2f0
MT
57
58 package %{name}-debuginfo
59 template DEBUGINFO
60 end
802ea3af 61end