source: rtems/scripts/binutils/binutils.add @ 0ac55c0

4.104.114.84.95
Last change on this file since 0ac55c0 was 0ac55c0, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 04:58:01

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

  • binutils/binutils.add: Remove header, broken cdn-X configuration, %clean.
  • binutils/mkspec.in: Remove exe_ext, build_alias, host_alias.
  • binutils/target-binutils.add: Replace @exe_ext@ with %{_exeext}.
  • 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}
10BuildRoot:      %{_defaultbuildroot}
11BuildPreReq:    /sbin/install-info
12BuildPreReq:    texinfo >= 4.2
13
14Version:        @binutils_version@
15Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
16@PATCH1@
17
18#
19# The original sources are not included in the source RPM.
20# If we included them, then the source RPMs for each target
21# would duplicate MBs of source unnecessarily.  This is
22# a duplication of over 30 MBs of source for each of
23# the more than 10 targets it is possible to build.
24#
25# You can get them yourself from the Internet and copy them to
26# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
27# Or you can try the ftp options of rpm :-)
28#
29NoSource:      0
30
31%description
32
33RTEMS is an open source operating system for embedded systems.
34
35This is binutils sources with patches for RTEMS.
36
37%prep
38# untar the sources inside @target_alias@-binutils
39%setup -c -n @target_alias@-binutils
40@PATCH2@
41  test -d build || mkdir build
42
43%build
44  cd build
45  ../binutils-@binutils_version@/configure \
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.