summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-12-19 17:41:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-12-19 17:41:13 +0000
commit9bd92497cb6aa47988b091aad5667df9963c06ad (patch)
tree22993e64f74e626ffe1c1209898e50d32f0a4c96 /scripts
parentAdd URL:. (diff)
downloadrtems-9bd92497cb6aa47988b091aad5667df9963c06ad.tar.bz2
Add URL:.
Use Source50/Patch50 for newlib.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gccnewlib/gccnewlib.add22
1 files changed, 12 insertions, 10 deletions
diff --git a/scripts/gccnewlib/gccnewlib.add b/scripts/gccnewlib/gccnewlib.add
index 9980beb721..41576600c5 100644
--- a/scripts/gccnewlib/gccnewlib.add
+++ b/scripts/gccnewlib/gccnewlib.add
@@ -7,11 +7,12 @@
Release: @Release@
Version: %{gccnewlib_version}
+URL: http://gcc.gnu.org
-Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-%{gcc_version}@gcc_suffix@
-Source1: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}@newlib_suffix@
+Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-%{gcc_version}/gcc-core-%{gcc_version}@gcc_suffix@
+Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}@newlib_suffix@
@PATCH0@
-@PATCH1@
+@PATCH50@
Source98: brp-rtems-strip.in
Source99: brp-rtems-compress.in
@@ -37,7 +38,7 @@ License: gcc is GPL/LGPL ; newlib no has restrictions on run-time usage
# Or you can try the ftp options of rpm :-)
#
%{?!_with_sources:NoSource: 0}
-%{?!_with_sources:NoSource: 1}
+%{?!_with_sources:NoSource: 50}
%description
RTEMS is an open source operating system for embedded systems.
@@ -128,8 +129,7 @@ BuildRequires: zlib-devel
# Building gnat requires gnat
# This really isn't available until RedHat 8.0. How to conditionalize this?
BuildRequires: gcc-gnat
-# Urgh, building gnat requires the target c-toolchain
-# BuildRequires: @rpmprefix@%{gcc_target}-gcc < %{gcc_version}-%{release}
+# Urgh, building gnat requires the target libc
BuildRequires: @rpmprefix@%{gcc_target}-libc < %{newlib_version}-%{release}
%endif
%if %build_f95
@@ -153,13 +153,16 @@ BuildRequires: gmp-devel
%prep
# untar the sources inside %{gcc_target}-gcc-newlib
-%setup -c -T -n %{name}-%{version} -a0 -a1
+%setup -c -T -n %{name}-%{version}
+%setup -T -D -n %{name}-%{version} -a0
cd gcc-%{gcc_version}
%{?PATCH0:%patch0 -p1}
cd ..
+
+%setup -T -D -n %{name}-%{version} -a50
cd newlib-%{newlib_version}
-%{?PATCH1:%patch1 -p1}
+%{?PATCH50:%patch50 -p1}
cd ..
sed 's,@BRPSTRIPPATH@,.%_bindir .%_prefix/%gcc_target/bin,' \
@@ -267,8 +270,6 @@ chmod +x brp-rtems-compress
# cd back to build/
cd ../..
- # Bug in gcc-3.x: It puts the build dirs into *.la files
-
# host library
rm -f ${RPM_BUILD_ROOT}%{_prefix}/lib/libiberty.a
@@ -402,3 +403,4 @@ chmod +x brp-rtems-compress
done
cd ..
+