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

4.104.114.84.95
Last change on this file since e4eb1be was e4eb1be, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 22, 2002 at 6:15:43 PM

2002-11-22 Ralf Corsepius <corsepiu@…>

  • binutils/binutils.add: Add BuildPreReq?: /sbin/install-info. Disable nls. Apply gzip -9qf to compress *infos and *mans. Apply /sbin/install-info. Remove *c++-filt.
  • binutils/base-binutils.add: Add PreReq?: /sbin/install-info. Apply /sbin/install-info. Package as.info-*.gz.
  • binutils/target-binutils.add: Package man1/*.1*.
  • 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
24
25Version:        @binutils_version@
26Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2
27@PATCH1@
28
29#
30# The original sources are not included in the source RPM.
31# If we included them, then the source RPMs for each target
32# would duplicate MBs of source unnecessarily.  This is
33# a duplication of over 30 MBs of source for each of
34# the more than 10 targets it is possible to build.
35#
36# You can get them yourself from the Internet and copy them to
37# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
38# Or you can try the ftp options of rpm :-)
39#
40NoSource:      0
41
42%description
43
44RTEMS is an open source operating system for embedded systems.
45
46This is binutils sources with patches for RTEMS.
47
48%prep
49# untar the sources inside @target_alias@-binutils
50%setup -c -n @target_alias@-binutils
51@PATCH2@
52  test -d build || mkdir build
53
54%build
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} --disable-nls
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  rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt
77# gzip info files
78  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
79  gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
80
81  if test -f $RPM_BUILD_ROOT%{_prefix}/info/configure.info.gz;
82  then
83# These are only present in binutils >= 2.9.5
84    find $RPM_BUILD_ROOT%{_prefix}/info -name 'configure.*' | \
85      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
86  else
87    touch ../files
88  fi
89
90# We assume that info/dir exists when building the RPMs
91  rm -f $RPM_BUILD_ROOT%{_prefix}/info/dir
92  f=`find $RPM_BUILD_ROOT%{_prefix}/info -name '*.info.gz'`
93  test x"$f" != x"" && for i in $f; do
94    /sbin/install-info $i $RPM_BUILD_ROOT%{_prefix}/info/dir
95  done
96
97%clean
98# let rpm --clean remove BuildRoot iif using the default BuildRoot
99  test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
100    rm -rf $RPM_BUILD_ROOT
101
Note: See TracBrowser for help on using the repository browser.