%prep %setup -c -T -n %{name}-%{version} %setup -q -T -D -n %{name}-%{version} -a0 %{?PATCH0:%patch0 -p0} %if %build_cxx %setup -q -T -D -n %{name}-%{version} -a1 %{?PATCH1:%patch1 -p0} %endif %if %build_fortran %setup -q -T -D -n %{name}-%{version} -a2 %{?PATCH2:%patch2 -p0} %endif %if %build_gcj %setup -q -T -D -n %{name}-%{version} -a3 %{?PATCH3:%patch3 -p0} %endif %if %build_gnat %setup -q -T -D -n %{name}-%{version} -a4 %{?PATCH4:%patch4 -p0} %endif %if %build_objc %setup -q -T -D -n %{name}-%{version} -a5 %{?PATCH5:%patch5 -p0} %endif %if %build_newlib %setup -q -T -D -n %{name}-%{version} -a50 cd newlib-%{newlib_version} %{?PATCH50:%patch50 -p1} cd .. # Copy the C library into gcc's source tree ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers} %endif %if 0%{?_build_mpfr} %setup -q -T -D -n %{name}-%{version} -a60 %{?PATCH60:%patch60 -p1} # Build mpfr one-tree style ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr %endif @PREP@ # Fix timestamps cd gcc-%{gcc_pkgvers} contrib/gcc_update --touch cd ..