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

4.104.114.84.95
Last change on this file since ab591073 was ab591073, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 07:29:27

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

  • common/common.add.in: Add Vendor, Distribution, BuildRoot?.
  • binutils/Makefile.am: Fix path to clean.add.
  • binutils/binutils.add: Remove BuildRoot?.
  • cpukit/Makefile.am: Use $(top_builddir)/common/common.add, $(top_builddir)/common/clean.add, header.add. Generate rtems-cpukit.spec.in.
  • cpukit/header.add: New.
  • cpukit/rtems-cpukit.spec.in: Remove.
  • cpukit/rtems-cpukit.add: New.
  • gccnewlib/gccnewlib.add: Remove Buildroot.
  • gdb/gdb.add: Remove Buildroot.
  • rtemsdoc/rtemsdoc.add: Remove BuildRoot?.
  • Property mode set to 100644
File size: 2.3 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    --target=@target_alias@ \
46    --verbose --prefix=%{_prefix} --disable-nls
47
48  make all
49  make info
50
51
52%install
53  cd build
54  make prefix=$RPM_BUILD_ROOT%{_prefix} install
55  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
56# A bug in binutils: binutils does not install share/locale
57# however it uses it
58  ../binutils-@binutils_version@/mkinstalldirs \
59    $RPM_BUILD_ROOT%{_prefix}/share/locale
60
61  rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt%{_exeext}
62# gzip info files
63  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
64  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
65
66  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
67  then
68# These are only present in binutils >= 2.9.5
69    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
70      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
71  else
72    touch ../files
73  fi
74
75# We assume that info/dir exists when building the RPMs
76  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
77  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
78  test x"$f" != x"" && for i in $f; do
79    /sbin/install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
80  done
81
Note: See TracBrowser for help on using the repository browser.