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 Jan 28, 2003 at 6:17:15 AM

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
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
23BuildPreReq:    /sbin/install-info
24BuildPreReq:    texinfo >= 4.2
25
26Version:        @binutils_version@
27Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
28@PATCH1@
29
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
51%setup -c -n @target_alias@-binutils
52@PATCH2@
53  test -d build || mkdir build
54
55%build
56#%if "%{_target_os}" != "%{_build_os}"
57#  CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
58#%endif
59
60  cd build
61  ../binutils-@binutils_version@/configure ${CONFIGURE_ARGS} --target=@target_alias@ \
62    --verbose --prefix=%{_prefix} --disable-nls
63
64  make all
65  make info
66
67
68%install
69  cd build
70  make prefix=$RPM_BUILD_ROOT%{_prefix} install
71  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
72# A bug in binutils: binutils does not install share/locale
73# however it uses it
74  ../binutils-@binutils_version@/mkinstalldirs \
75    $RPM_BUILD_ROOT%{_prefix}/share/locale
76
77  rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt
78# gzip info files
79  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
80  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
81
82  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
83  then
84# These are only present in binutils >= 2.9.5
85    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
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
92  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
93  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
94  test x"$f" != x"" && for i in $f; do
95    /sbin/install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
96  done
97
98%clean
99# let rpm --clean remove BuildRoot iif using the default BuildRoot
100  test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
101    rm -rf $RPM_BUILD_ROOT
102
Note: See TracBrowser for help on using the repository browser.