source: rtems/scripts/binutils/binutils.add @ 60ac65d

4.104.114.84.95
Last change on this file since 60ac65d was 60ac65d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/29/02 at 16:53:14

2002-10-29 Ralf Corsepius <corsepiu@…>

  • gcc3newlib/gccnewlib.add: Remove %{target} != %{build} comment (RH-8.0/rpm-4.1 bogusly expands the macros and chokes.)
  • binutils/binutils.add: Remove %{target} != %{build} comment (RH-8.0/rpm-4.1 bogusly expands the macros and chokes.). Comment out CONFIGURE_ARGS (RH-8.0/rpm-4.1 is broken wrt. _build_os and _target_os)
  • gcc3newlib/base-gcc.add: Add gccint*infos.
  • gcc3newlib/base-gcj.add: Add gcj*infos. Mark manpages as %doc and pickup the gzipped versions.
  • Property mode set to 100644
File size: 2.8 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@PATCH1@
27
28#
29# The original sources are not included in the source RPM.
30# If we included them, then the source RPMs for each target
31# would duplicate MBs of source unnecessarily.  This is
32# a duplication of over 30 MBs of source for each of
33# the more than 10 targets it is possible to build.
34#
35# You can get them yourself from the Internet and copy them to
36# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
37# Or you can try the ftp options of rpm :-)
38#
39NoSource:      0
40
41%description
42
43RTEMS is an open source operating system for embedded systems.
44
45This is binutils sources with patches for RTEMS.
46
47%prep
48# untar the sources inside @target_alias@-binutils
49%setup -c -n @target_alias@-binutils
50@PATCH2@
51  test -d build || mkdir build
52
53%build
54#%if "%{_target_os}" != "%{_build_os}"
55#  CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"
56#%endif
57
58  cd build
59  ../binutils-@binutils_version@/configure ${CONFIGURE_ARGS} --target=@target_alias@ \
60    --verbose --prefix=%{_prefix}
61
62  make all
63  make info
64
65
66%install
67  cd build
68  make prefix=$RPM_BUILD_ROOT%{_prefix} install
69  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
70# A bug in binutils: binutils does not install share/locale
71# however it uses it
72  ../binutils-@binutils_version@/mkinstalldirs \
73    $RPM_BUILD_ROOT%{_prefix}/share/locale
74
75# gzip info files
76  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
77  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
78
79  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
80  then
81# These are only present in binutils >= 2.9.5
82    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
83      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
84  else
85    touch ../files
86  fi
87
88# We assume that info/dir exists when building the RPMs
89  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
90  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
91  test x"$f" != x"" && for i in $f; do
92    install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
93  done
94
95%clean
96# let rpm --clean remove BuildRoot iif using the default BuildRoot
97  test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
98    rm -rf $RPM_BUILD_ROOT
99
Note: See TracBrowser for help on using the repository browser.