]> git.ipfire.org Git - ipfire-3.x.git/blame - bison/bison.nm
python3: Update to 3.6.4
[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
e786a6a9 8release = 2
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
e786a6a9 26 m4 >= 1.4.17-2
802ea3af
MT
27 end
28
29 configure_cmds
30 echo '#define YYENABLE_NLS 1' >> lib/config.h
31 end
32
531618b7
MT
33 build_cmds
34 cd lib
35 gcc -shared -Wl,-soname,liby.so.%{version} \
36 -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
37 end
38
802ea3af
MT
39 test
40 make check
41 end
42
43 install_cmds
531618b7
MT
44 mkdir -pv %{BUILDROOT}%{libdir}
45 cd lib
46 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
d8966ea9
SS
47 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.3
48 ln -vsf liby.so.3 %{BUILDROOT}%{libdir}/liby.so
802ea3af
MT
49 end
50end
51
52packages
53 package %{name}
54 requires += m4
55 end
1f9bc2f0
MT
56
57 package %{name}-debuginfo
58 template DEBUGINFO
59 end
802ea3af 60end