source: rtems/scripts/binutils/binutils.add @ 7da8c10

4.104.114.84.95
Last change on this file since 7da8c10 was 7da8c10, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 16:02:21

2003-01-31 Ralf Corsepius <corsepiu@…>

  • README.cdn-X: New.
  • binutils/binutils.add: Add --build=%_build --host=%_host.
  • cpukit/.cvsignore: Add *.spec.in.
  • gcc3newlib/gccnewlib.add: Add --build=%_build --host=%_host.
  • gdb/gdb.add: Add --build=%_build --host=%_host.
  • rtemsdoc/.cvsignore: Add *.spec.in.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1Name:         @target_alias@-binutils-collection
2Summary:      binutils for target @target_alias@
3Group:        rtems
4Release:      @Release@
5License:      GPL/LGPL
6
7Autoreqprov:    on
8Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
9Prefix:         %{_prefix}
10BuildPreReq:    /sbin/install-info
11BuildPreReq:    texinfo >= 4.2
12
13Version:        @binutils_version@
14Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
15@PATCH1@
16
17#
18# The original sources are not included in the source RPM.
19# If we included them, then the source RPMs for each target
20# would duplicate MBs of source unnecessarily.  This is
21# a duplication of over 30 MBs of source for each of
22# the more than 10 targets it is possible to build.
23#
24# You can get them yourself from the Internet and copy them to
25# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
26# Or you can try the ftp options of rpm :-)
27#
28NoSource:      0
29
30%description
31
32RTEMS is an open source operating system for embedded systems.
33
34This is binutils sources with patches for RTEMS.
35
36%prep
37# untar the sources inside @target_alias@-binutils
38%setup -c -n @target_alias@-binutils
39@PATCH2@
40  test -d build || mkdir build
41
42%build
43  cd build
44  ../binutils-@binutils_version@/configure \
45    --build=%_build --host=%_host \
46    --target=@target_alias@ \
47    --verbose --prefix=%{_prefix} --disable-nls
48
49  make all
50  make info
51
52
53%install
54  cd build
55  make prefix=$RPM_BUILD_ROOT%{_prefix} install
56  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
57# A bug in binutils: binutils does not install share/locale
58# however it uses it
59  ../binutils-@binutils_version@/mkinstalldirs \
60    $RPM_BUILD_ROOT%{_prefix}/share/locale
61
62  rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt%{_exeext}
63# gzip info files
64  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
65  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
66
67  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
68  then
69# These are only present in binutils >= 2.9.5
70    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
71      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
72  else
73    touch ../files
74  fi
75
76# We assume that info/dir exists when building the RPMs
77  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
78  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
79  test x"$f" != x"" && for i in $f; do
80    /sbin/install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
81  done
82
Note: See TracBrowser for help on using the repository browser.