| 34 Distribution: OpenPKG Community |
34 Distribution: OpenPKG Community |
| 35 Class: CORE |
35 Class: CORE |
| 36 Group: CompilerCompiler |
36 Group: CompilerCompiler |
| 37 License: GPL |
37 License: GPL |
| 38 Version: %{V_new} |
38 Version: %{V_new} |
| 39 Release: 20120720 |
39 Release: 20120800 |
| 40 |
40 |
| 41 # package options |
41 # package options |
| 42 %option with_old no |
42 %option with_old no |
| 43 |
43 |
| 44 # list of sources |
44 # list of sources |
| 45 Source0: http://ftp.gnu.org/gnu/bison/bison-%{V_new}.tar.gz |
45 Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{V_new}.tar.gz |
| 46 Source1: http://ftp.gnu.org/gnu/bison/bison-%{V_old}.tar.gz |
46 Source1: ftp://ftp.gnu.org/gnu/bison/bison-%{V_old}.tar.gz |
| 47 Patch0: bison.patch |
47 Patch0: bison.patch |
| 48 |
48 |
| 49 # build information |
49 # build information |
| 50 BuildPreReq: OpenPKG, openpkg >= 20100101, m4, make |
50 BuildPreReq: OpenPKG, openpkg >= 20100101, m4, make |
| 51 PreReq: OpenPKG, openpkg >= 20100101, m4 |
51 PreReq: OpenPKG, openpkg >= 20100101, m4 |
| 62 should be able to use bison with little trouble. |
62 should be able to use bison with little trouble. |
| 63 |
63 |
| 64 %track |
64 %track |
| 65 prog bison:new = { |
65 prog bison:new = { |
| 66 version = %{V_new} |
66 version = %{V_new} |
| 67 url = http://ftp.gnu.org/gnu/bison/ |
67 url = ftp://ftp.gnu.org/gnu/bison/ |
| 68 regex = bison-(2.\d+(.\d+)*[a-z]?)\.tar\.gz |
68 regex = bison-(2.\d+(.\d+)*[a-z]?)\.tar\.gz |
| 69 } |
69 } |
| 70 prog bison:old = { |
70 prog bison:old = { |
| 71 version = %{V_old} |
71 version = %{V_old} |
| 72 url = http://ftp.gnu.org/gnu/bison/ |
72 url = ftp://ftp.gnu.org/gnu/bison/ |
| 73 regex = bison-(1\.3\d+)\.tar\.gz |
73 regex = bison-(1\.3\d+)\.tar\.gz |
| 74 } |
74 } |
| 75 |
75 |
| 76 %prep |
76 %prep |
| 77 %setup -q -c -n bison-%{V_new} |
77 %setup -q -c -n bison-%{V_new} |
| 78 %patch -p0 -d bison-%{V_new} |
78 %patch -p0 -d bison-%{V_new} |
| 79 %setup -q -T -D -a 1 |
79 %setup -q -T -D -a 1 |
| 80 %{l_shtool} subst \ |
80 %{l_shtool} subst \ |
| 81 -e 's;ac_config_files.*etc/bench\.pl";;' \ |
81 -e 's;ac_config_files.*etc/bench\.pl";;' \ |
| |
82 -e 's;\(\$LEX_IS_FLEX\) \(|| as_fn_error\);#\1-CHICK_EGG \2;' \ |
| 82 bison-%{V_new}/configure |
83 bison-%{V_new}/configure |
| 83 %{l_shtool} subst \ |
84 %{l_shtool} subst \ |
| 84 -e 's;^\( *SUBDIRS = .*\) examples\(.*\)$;\1\2;' \ |
85 -e 's;^\( *SUBDIRS = .*\) examples\(.*\)$;\1\2;' \ |
| 85 -e 's;^\( *SUBDIRS = .*\) tests\(.*\)$;\1\2;' \ |
86 -e 's;^\( *SUBDIRS = .*\) tests\(.*\)$;\1\2;' \ |
| 86 -e 's;^\( *SUBDIRS = .*\) etc\(.*\)$;\1\2;' \ |
87 -e 's;^\( *SUBDIRS = .*\) etc\(.*\)$;\1\2;' \ |