1.1 --- a/gcc/gcc.spec Sat Aug 04 14:16:14 2012 +0200 1.2 +++ b/gcc/gcc.spec Sat Aug 04 22:02:31 2012 +0200 1.3 @@ -22,7 +22,7 @@ 1.4 ## 1.5 1.6 # package version 1.7 -%define V_full 4.6.3 1.8 +%define V_full 4.7.1 1.9 %define V_comp %nil 1.10 1.11 # package information 1.12 @@ -36,7 +36,7 @@ 1.13 Group: Compiler 1.14 License: GPL 1.15 Version: %{V_full} 1.16 -Release: 20120208 1.17 +Release: 20120800 1.18 1.19 # package options 1.20 %option with_binutils yes 1.21 @@ -56,19 +56,12 @@ 1.22 %endif 1.23 1.24 # list of sources 1.25 -Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-core-%{V_full}.tar.bz2 1.26 -Source1: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-g++-%{V_full}.tar.bz2 1.27 -Source2: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-objc-%{V_full}.tar.bz2 1.28 -Source3: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-java-%{V_full}.tar.bz2 1.29 -Source4: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-fortran-%{V_full}.tar.bz2 1.30 +Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-%{V_full}.tar.bz2 1.31 Patch0: gcc.patch 1.32 -Patch1: gcc.patch.spawn 1.33 1.34 # build information 1.35 -Prefix: %{l_prefix} 1.36 -BuildRoot: %{l_buildroot} 1.37 -BuildPreReq: OpenPKG, openpkg >= 20060823, make 1.38 -PreReq: OpenPKG, openpkg >= 20060823 1.39 +BuildPreReq: OpenPKG, openpkg >= 20100101, make 1.40 +PreReq: OpenPKG, openpkg >= 20100101 1.41 BuildPreReq: mpc, mpfr, gmp 1.42 PreReq: mpc, mpfr, gmp 1.43 %if "%{with_binutils}" == "yes" 1.44 @@ -83,8 +76,6 @@ 1.45 BuildPreReq: zlib, infozip 1.46 PreReq: zlib 1.47 %endif 1.48 -AutoReq: no 1.49 -AutoReqProv: no 1.50 1.51 %description 1.52 The GNU Compiler Collection (GCC) provides standard conforming and 1.53 @@ -97,25 +88,12 @@ 1.54 url = ftp://gcc.gnu.org/pub/gcc/releases/ 1.55 regex = gcc-(4\.\d+\.\d+) 1.56 url = ftp://gcc.gnu.org/pub/gcc/releases/gcc-__NEWVER__/ 1.57 - regex = gcc-core-(\d+\.\d+\.\d+)\.tar\.bz2 1.58 + regex = gcc-(\d+\.\d+\.\d+)\.tar\.bz2 1.59 } 1.60 1.61 %prep 1.62 %setup -q 1.63 -%if "%{with_cxx}" == "yes" 1.64 - %setup -q -T -D -b 1 1.65 -%endif 1.66 -%if "%{with_objc}" == "yes" 1.67 - %setup -q -T -D -b 2 1.68 -%endif 1.69 -%if "%{with_java}" == "yes" 1.70 - %setup -q -T -D -b 3 1.71 -%endif 1.72 -%if "%{with_fortran}" == "yes" 1.73 - %setup -q -T -D -b 4 1.74 -%endif 1.75 %patch -p0 1.76 - %patch -p0 -P 1 1.77 %{l_shtool} subst \ 1.78 -e 's;\(instname="\$dir/\$name"\)i;\1;' \ 1.79 ltmain.sh 1.80 @@ -243,6 +221,7 @@ 1.81 # platforms failing 'compare' make target (see prep as well) 1.82 case "%{l_platform -t}" in 1.83 *i?86-sunos* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;; 1.84 + *amd64-sunos* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;; 1.85 *amd64-linux* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;; 1.86 esac 1.87