gcc/gcc.spec

changeset 475
414fb502f12a
parent 468
695288b7c41a
child 561
43c9880b7136
equal deleted inserted replaced
12:27e65e5107d2 13:fb13cc3a800f
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_full 4.6.3 25 %define V_full 4.7.1
26 %define V_comp %nil 26 %define V_comp %nil
27 27
28 # package information 28 # package information
29 Name: gcc 29 Name: gcc
30 Summary: GNU Compiler Collection 30 Summary: GNU Compiler Collection
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: CORE 35 Class: CORE
36 Group: Compiler 36 Group: Compiler
37 License: GPL 37 License: GPL
38 Version: %{V_full} 38 Version: %{V_full}
39 Release: 20120208 39 Release: 20120800
40 40
41 # package options 41 # package options
42 %option with_binutils yes 42 %option with_binutils yes
43 %option with_cxx yes 43 %option with_cxx yes
44 %option with_objc no 44 %option with_objc no
54 %define with_cxx yes 54 %define with_cxx yes
55 %define with_threads yes 55 %define with_threads yes
56 %endif 56 %endif
57 57
58 # list of sources 58 # list of sources
59 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-core-%{V_full}.tar.bz2 59 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-%{V_full}.tar.bz2
60 Source1: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-g++-%{V_full}.tar.bz2
61 Source2: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-objc-%{V_full}.tar.bz2
62 Source3: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-java-%{V_full}.tar.bz2
63 Source4: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-fortran-%{V_full}.tar.bz2
64 Patch0: gcc.patch 60 Patch0: gcc.patch
65 Patch1: gcc.patch.spawn
66 61
67 # build information 62 # build information
68 Prefix: %{l_prefix} 63 BuildPreReq: OpenPKG, openpkg >= 20100101, make
69 BuildRoot: %{l_buildroot} 64 PreReq: OpenPKG, openpkg >= 20100101
70 BuildPreReq: OpenPKG, openpkg >= 20060823, make
71 PreReq: OpenPKG, openpkg >= 20060823
72 BuildPreReq: mpc, mpfr, gmp 65 BuildPreReq: mpc, mpfr, gmp
73 PreReq: mpc, mpfr, gmp 66 PreReq: mpc, mpfr, gmp
74 %if "%{with_binutils}" == "yes" 67 %if "%{with_binutils}" == "yes"
75 BuildPreReq: binutils >= 2.14 68 BuildPreReq: binutils >= 2.14
76 PreReq: binutils >= 2.14 69 PreReq: binutils >= 2.14
81 %endif 74 %endif
82 %if "%{with_java}" == "yes" 75 %if "%{with_java}" == "yes"
83 BuildPreReq: zlib, infozip 76 BuildPreReq: zlib, infozip
84 PreReq: zlib 77 PreReq: zlib
85 %endif 78 %endif
86 AutoReq: no
87 AutoReqProv: no
88 79
89 %description 80 %description
90 The GNU Compiler Collection (GCC) provides standard conforming and 81 The GNU Compiler Collection (GCC) provides standard conforming and
91 highly portable compilers for the ISO C, ISO C++, Objective-C, 82 highly portable compilers for the ISO C, ISO C++, Objective-C,
92 Fortran and Java languages. 83 Fortran and Java languages.
95 prog gcc = { 86 prog gcc = {
96 version = %{V_full} 87 version = %{V_full}
97 url = ftp://gcc.gnu.org/pub/gcc/releases/ 88 url = ftp://gcc.gnu.org/pub/gcc/releases/
98 regex = gcc-(4\.\d+\.\d+) 89 regex = gcc-(4\.\d+\.\d+)
99 url = ftp://gcc.gnu.org/pub/gcc/releases/gcc-__NEWVER__/ 90 url = ftp://gcc.gnu.org/pub/gcc/releases/gcc-__NEWVER__/
100 regex = gcc-core-(\d+\.\d+\.\d+)\.tar\.bz2 91 regex = gcc-(\d+\.\d+\.\d+)\.tar\.bz2
101 } 92 }
102 93
103 %prep 94 %prep
104 %setup -q 95 %setup -q
105 %if "%{with_cxx}" == "yes"
106 %setup -q -T -D -b 1
107 %endif
108 %if "%{with_objc}" == "yes"
109 %setup -q -T -D -b 2
110 %endif
111 %if "%{with_java}" == "yes"
112 %setup -q -T -D -b 3
113 %endif
114 %if "%{with_fortran}" == "yes"
115 %setup -q -T -D -b 4
116 %endif
117 %patch -p0 96 %patch -p0
118 %patch -p0 -P 1
119 %{l_shtool} subst \ 97 %{l_shtool} subst \
120 -e 's;\(instname="\$dir/\$name"\)i;\1;' \ 98 -e 's;\(instname="\$dir/\$name"\)i;\1;' \
121 ltmain.sh 99 ltmain.sh
122 %{l_shtool} subst -v -s \ 100 %{l_shtool} subst -v -s \
123 -e 's;\(gmplibs="-lmpc\) \(-lmpfr -lgmp\);\1 -lm \2;' \ 101 -e 's;\(gmplibs="-lmpc\) \(-lmpfr -lgmp\);\1 -lm \2;' \
241 echo "am_cv_lib_iconv=no" 219 echo "am_cv_lib_iconv=no"
242 ) >config.cache 220 ) >config.cache
243 # platforms failing 'compare' make target (see prep as well) 221 # platforms failing 'compare' make target (see prep as well)
244 case "%{l_platform -t}" in 222 case "%{l_platform -t}" in
245 *i?86-sunos* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;; 223 *i?86-sunos* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;;
224 *amd64-sunos* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;;
246 *amd64-linux* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;; 225 *amd64-linux* ) echo "gcc_cv_prog_cmp_skip=true" >>config.cache ;;
247 esac 226 esac
248 227
249 # configure the package 228 # configure the package
250 LD="$LD" \ 229 LD="$LD" \

mercurial