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

4.104.114.84.95
Last change on this file since c2778fa was c2778fa, checked in by Joel Sherrill <joel.sherrill@…>, on 03/28/02 at 18:13:06

2001-03-28 Joel Sherrill <joel@…>

  • binutils/binutils.add: Commented out patch since binutils 2.12 does not require one.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1#
2# spec file for binutils package targetting rtems
3#
4# Copyright  (c)  1999,2000,2002 OARCorp, Huntsville, AL
5#
6# please send bugfixes or comments to joel@OARcorp.com
7#
8
9%define _prefix @prefix@
10
11Vendor:       OAR Corporation
12Distribution: Linux
13Name:         @target_alias@-binutils-collection
14Summary:      binutils for target @target_alias@
15Group:        rtems
16Release:      @Release@
17License:      GPL/LGPL
18
19Autoreqprov:    off
20Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21Prefix:         %{_prefix}
22BuildRoot:      %{_tmppath}/@target_alias@-binutils
23
24Version:        @binutils_version@
25Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
26# Patch0:               binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
27#
28# The original sources are not included in the source RPM.
29# If we included them, then the source RPMs for each target
30# would duplicate MBs of source unnecessarily.  This is
31# a duplication of over 30 MBs of source for each of
32# the more than 10 targets it is possible to build.
33#
34# You can get them yourself from the Internet and copy them to
35# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
36# Or you can try the ftp options of rpm :-)
37#
38NoSource:      0
39
40%description
41
42RTEMS is an open source operating system for embedded systems.
43
44This is binutils sources with patches for RTEMS.
45
46%prep
47# untar the sources inside @target_alias@-binutils
48%setup -c -n @target_alias@-binutils
49
50# %patch0 -p0
51  test -d build || mkdir build
52
53%build
54# HACK: This should be %{target} != %{build}, but SuSE's rpm screws it.
55%if "%{target_os}" != "%{build_os}"
56  CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
57%endif
58
59  cd build
60  ../binutils-@binutils_version@/configure ${CONFIGURE_ARGS} --target=@target_alias@ \
61    --verbose --prefix=%{_prefix}
62
63  make all
64  make info
65
66
67%install
68  cd build
69  make prefix=$RPM_BUILD_ROOT%{_prefix} install
70  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
71# A bug in binutils: binutils does not install share/locale
72# however it uses it
73  ../binutils-@binutils_version@/mkinstalldirs \
74    $RPM_BUILD_ROOT%{_prefix}/share/locale
75
76# gzip info files
77  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
78  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
79
80  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
81  then
82# These are only present in binutils >= 2.9.5
83    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
84      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
85  else
86    touch ../files
87  fi
88
89# We assume that info/dir exists when building the RPMs
90  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
91  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
92  test x"$f" != x"" && for i in $f; do
93    install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
94  done
95
96%clean
97# let rpm --clean remove BuildRoot iif using the default BuildRoot
98  test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
99    rm -rf $RPM_BUILD_ROOT
100
Note: See TracBrowser for help on using the repository browser.