10:dd1589a14614 | 11:9fa628722351 |
---|---|
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.2 | 25 %define V_full 4.6.3 |
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 |
60 Source1: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-g++-%{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 | 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 | 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 | 63 Source4: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{V_full}/gcc-fortran-%{V_full}.tar.bz2 |
64 Patch0: gcc.patch | 64 Patch0: gcc.patch |
65 Patch1: gcc.patch.spawn | |
65 | 66 |
66 # build information | 67 # build information |
67 Prefix: %{l_prefix} | 68 Prefix: %{l_prefix} |
68 BuildRoot: %{l_buildroot} | 69 BuildRoot: %{l_buildroot} |
69 BuildPreReq: OpenPKG, openpkg >= 20060823, make | 70 BuildPreReq: OpenPKG, openpkg >= 20060823, make |
112 %endif | 113 %endif |
113 %if "%{with_fortran}" == "yes" | 114 %if "%{with_fortran}" == "yes" |
114 %setup -q -T -D -b 4 | 115 %setup -q -T -D -b 4 |
115 %endif | 116 %endif |
116 %patch -p0 | 117 %patch -p0 |
118 %patch -p0 -P 1 | |
117 %{l_shtool} subst \ | 119 %{l_shtool} subst \ |
118 -e 's;\(instname="\$dir/\$name"\)i;\1;' \ | 120 -e 's;\(instname="\$dir/\$name"\)i;\1;' \ |
119 ltmain.sh | 121 ltmain.sh |
120 %{l_shtool} subst -v -s \ | 122 %{l_shtool} subst -v -s \ |
121 -e 's;\(gmplibs="-lmpc\) \(-lmpfr -lgmp\);\1 -lm \2;' \ | 123 -e 's;\(gmplibs="-lmpc\) \(-lmpfr -lgmp\);\1 -lm \2;' \ |