source: rtems/scripts/binutils/binutils.add @ dbb13bf

4.104.114.84.95
Last change on this file since dbb13bf was 087a6c86, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/02/03 at 16:41:50

2003-09-02 Ralf Corsepius <corsepiu@…>

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