source: rtems/contrib/crossrpms/gcc/prep.add @ f7842ce

4.104.114.84.95
Last change on this file since f7842ce was e25d8c9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/27/06 at 18:03:23

Revert to cd'ing into gcc-%{gcc_version} for gcc_update

  • Property mode set to 100644
File size: 871 bytes
Line 
1%prep
2%setup -c -T -n %{name}-%{version}
3
4%setup -q -T -D -n %{name}-%{version} -a0
5%{?PATCH0:%patch0 -p0}
6
7%if %build_cxx
8%setup -q -T -D -n %{name}-%{version} -a1
9%{?PATCH1:%patch1 -p0}
10%endif
11
12%if %build_f95
13%setup -q -T -D -n %{name}-%{version} -a2
14%{?PATCH2:%patch2 -p0}
15%endif
16
17%if %build_gcj
18%setup -q -T -D -n %{name}-%{version} -a3
19%{?PATCH3:%patch3 -p0}
20%endif
21
22%if %build_gnat
23%setup -q -T -D -n %{name}-%{version} -a4
24%{?PATCH4:%patch4 -p0}
25%endif
26
27%if %build_objc
28%setup -T -D -n %{name}-%{version} -a5
29%{?PATCH5:%patch5 -p0}
30%endif
31
32%if %build_newlib
33%setup -q -T -D -n %{name}-%{version} -a50
34cd newlib-%{newlib_version}
35%{?PATCH50:%patch50 -p1}
36cd ..
37  # Copy the C library into gcc's source tree
38  ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_version}
39%endif
40
41@PREP@
42
43  # Fix timestamps
44  cd gcc-%{gcc_version}
45  contrib/gcc_update --touch
46  cd ..
Note: See TracBrowser for help on using the repository browser.