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

4.104.114.84.95
Last change on this file since d5dd9b9 was d5dd9b9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/28/03 at 06:17:15

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

  • setup.def: binutils_rpm_release=2.
  • binutils/base-binutils.add: %defattr(-,root,root).
  • binutils/binutils.add: Ditto.
  • binutils/target-binutils.add: Ditto.
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[df49c60]1#
2# spec file for binutils package targetting rtems
3#
[b96a7b1]4# Copyright  (c)  1999,2000,2002 OARCorp, Huntsville, AL
[df49c60]5#
6# please send bugfixes or comments to joel@OARcorp.com
7#
8
[b96a7b1]9%define _prefix @prefix@
10
[df49c60]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
[b96a7b1]21Prefix:         %{_prefix}
[2cfb2387]22BuildRoot:      %{_tmppath}/@target_alias@-binutils
[e4eb1be]23BuildPreReq:    /sbin/install-info
[d5dd9b9]24BuildPreReq:    texinfo >= 4.2
[df49c60]25
26Version:        @binutils_version@
[df1f734]27Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
28@PATCH1@
29
[df49c60]30#
31# The original sources are not included in the source RPM.
32# If we included them, then the source RPMs for each target
33# would duplicate MBs of source unnecessarily.  This is
34# a duplication of over 30 MBs of source for each of
35# the more than 10 targets it is possible to build.
36#
37# You can get them yourself from the Internet and copy them to
38# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
39# Or you can try the ftp options of rpm :-)
40#
41NoSource:      0
42
43%description
44
45RTEMS is an open source operating system for embedded systems.
46
47This is binutils sources with patches for RTEMS.
48
49%prep
50# untar the sources inside @target_alias@-binutils
[b96a7b1]51%setup -c -n @target_alias@-binutils
[df1f734]52@PATCH2@
[df49c60]53  test -d build || mkdir build
54
55%build
[60ac65d]56#%if "%{_target_os}" != "%{_build_os}"
57#  CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
58#%endif
[b96a7b1]59
60  cd build
61  ../binutils-@binutils_version@/configure ${CONFIGURE_ARGS} --target=@target_alias@ \
[e4eb1be]62    --verbose --prefix=%{_prefix} --disable-nls
[df49c60]63
64  make all
65  make info
66
67
68%install
69  cd build
[b96a7b1]70  make prefix=$RPM_BUILD_ROOT%{_prefix} install
71  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
[df49c60]72# A bug in binutils: binutils does not install share/locale
73# however it uses it
74  ../binutils-@binutils_version@/mkinstalldirs \
[b96a7b1]75    $RPM_BUILD_ROOT%{_prefix}/share/locale
[df49c60]76
[e4eb1be]77  rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt
[df49c60]78# gzip info files
[e4eb1be]79  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
80  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
[df49c60]81
[b96a7b1]82  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
[df49c60]83  then
84# These are only present in binutils >= 2.9.5
[b96a7b1]85    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
[df49c60]86      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
87  else
88    touch ../files
89  fi
90
91# We assume that info/dir exists when building the RPMs
[b96a7b1]92  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
93  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
[df49c60]94  test x"$f" != x"" && for i in $f; do
[e4eb1be]95    /sbin/install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
[df49c60]96  done
97
98%clean
99# let rpm --clean remove BuildRoot iif using the default BuildRoot
[2cfb2387]100  test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
[df49c60]101    rm -rf $RPM_BUILD_ROOT
102
Note: See TracBrowser for help on using the repository browser.