]> git.ipfire.org Git - ipfire-3.x.git/blob - bison/bison.nm
3a8665a0cd21f3fdbae8f4719c46fac021aac22e
[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 = 3.8.2
8 release = 2
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 = https://ftp.gnu.org/gnu/bison/
21 sources = %{thisapp}.tar.xz
22
23 build
24 requires
25 flex >= 2.5.37
26 m4 >= 1.4.17-2
27 end
28
29 configure_cmds
30 echo '#define YYENABLE_NLS 1' >> lib/config.h
31 end
32
33 build_cmds
34 cd lib
35 gcc %{LDFLAGS} -shared -Wl,-soname,liby.so.%{version} \
36 -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
37 end
38
39 test
40 make check
41 end
42
43 install_cmds
44 mkdir -pv %{BUILDROOT}%{libdir}
45 cd lib
46 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
47 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.3
48 ln -vsf liby.so.3 %{BUILDROOT}%{libdir}/liby.so
49 end
50 end
51
52 packages
53 package %{name}
54 requires += m4
55 end
56
57 package %{name}-debuginfo
58 template DEBUGINFO
59 end
60 end