Thu, 02 Aug 2012 23:26:26 +0200
Avoid a chicken and egg dilemma by removing dependency to flex(1).
Furthermore, use prefer FTP servers to webservers for source downloads.
bison/bison.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/bison/bison.spec Thu Aug 02 23:24:05 2012 +0200 1.2 +++ b/bison/bison.spec Thu Aug 02 23:26:26 2012 +0200 1.3 @@ -36,14 +36,14 @@ 1.4 Group: CompilerCompiler 1.5 License: GPL 1.6 Version: %{V_new} 1.7 -Release: 20120720 1.8 +Release: 20120800 1.9 1.10 # package options 1.11 %option with_old no 1.12 1.13 # list of sources 1.14 -Source0: http://ftp.gnu.org/gnu/bison/bison-%{V_new}.tar.gz 1.15 -Source1: http://ftp.gnu.org/gnu/bison/bison-%{V_old}.tar.gz 1.16 +Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{V_new}.tar.gz 1.17 +Source1: ftp://ftp.gnu.org/gnu/bison/bison-%{V_old}.tar.gz 1.18 Patch0: bison.patch 1.19 1.20 # build information 1.21 @@ -64,12 +64,12 @@ 1.22 %track 1.23 prog bison:new = { 1.24 version = %{V_new} 1.25 - url = http://ftp.gnu.org/gnu/bison/ 1.26 + url = ftp://ftp.gnu.org/gnu/bison/ 1.27 regex = bison-(2.\d+(.\d+)*[a-z]?)\.tar\.gz 1.28 } 1.29 prog bison:old = { 1.30 version = %{V_old} 1.31 - url = http://ftp.gnu.org/gnu/bison/ 1.32 + url = ftp://ftp.gnu.org/gnu/bison/ 1.33 regex = bison-(1\.3\d+)\.tar\.gz 1.34 } 1.35 1.36 @@ -79,6 +79,7 @@ 1.37 %setup -q -T -D -a 1 1.38 %{l_shtool} subst \ 1.39 -e 's;ac_config_files.*etc/bench\.pl";;' \ 1.40 + -e 's;\(\$LEX_IS_FLEX\) \(|| as_fn_error\);#\1-CHICK_EGG \2;' \ 1.41 bison-%{V_new}/configure 1.42 %{l_shtool} subst \ 1.43 -e 's;^\( *SUBDIRS = .*\) examples\(.*\)$;\1\2;' \