source: rtems/scripts/binutils/binutils.add @ 5c47f47

4.104.114.84.95
Last change on this file since 5c47f47 was 5c47f47, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 22, 2003 at 10:31:12 AM

2003-08-22 Ralf Corsepius <corsepiu@…>

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