]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - bison/bison.nm
bison: Make package work on x86_64.
[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
MT
6name = bison
7version = 2.5
531618b7 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
798d2771
MT
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.
802ea3af
MT
18end
19
20source_dl = http://ftp.gnu.org/gnu/bison/
21
22build
23 requires
24 m4
25 end
26
27 configure_cmds
28 echo '#define YYENABLE_NLS 1' >> lib/config.h
29 end
30
531618b7
MT
31 build_cmds
32 cd lib
33 gcc -shared -Wl,-soname,liby.so.%{version} \
34 -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
35 end
36
802ea3af
MT
37 test
38 make check
39 end
40
41 install_cmds
531618b7
MT
42 mkdir -pv %{BUILDROOT}%{libdir}
43 cd lib
44 install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
45 ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.2
46 ln -vsf liby.so.2 %{BUILDROOT}%{libdir}/liby.so
802ea3af
MT
47 end
48end
49
50packages
51 package %{name}
52 requires += m4
53 end
1f9bc2f0
MT
54
55 package %{name}-debuginfo
56 template DEBUGINFO
57 end
802ea3af 58end