source: rtems/scripts/binutils/binutils.spec.in @ 42ec72d

4.104.114.84.9
Last change on this file since 42ec72d was 42ec72d, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 27, 2000 at 11:49:44 PM

Removed gnat and made final cleanup.

  • Property mode set to 100644
File size: 5.5 KB
Line 
1#
2# spec file for binutils package targetting rtems
3#
4# Copyright  (c)  1999  OARCorp, Huntsville, AL
5#
6# please send bugfixes or comments to joel@OARcorp.com
7#
8
9Vendor:       OAR Corporation
10Distribution: Linux
11Name:         @target_alias@-binutils-collection
12Summary:      binutils for target @target_alias@
13Group:        rtems
14Release:      @Release@
15Copyright:    1999 OARCorp
16
17Provides:     rtems-base-binutils @target_alias@-binutils
18
19Autoreqprov:    on
20Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21Prefix:         /opt
22
23Version:        @binutils_version@
24Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.gz
25Patch0:         binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
26#
27# The original sources are not included in the source RPM.
28# If we included them, then the source RPMs for each target
29# would duplicate MBs of source unnecessarily.  This is
30# a duplication of over 30 MBs of source for each of
31# the more than 10 targets it is possible to build.
32#
33# You can get them yourself from the Internet and copy them to
34# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
35# Or you can try the ftp options of rpm :-)
36#
37NoSource:      0
38
39%description
40
41RTEMS is an open source operating system for embedded systems.
42
43This is binutils sources with patches for RTEMS.
44
45%package -n rtems-base-binutils
46Summary:      base package for rtems binutils
47Group: rtems
48
49%description -n rtems-base-binutils
50
51RTEMS is an open source operating system for embedded systems.
52
53This is the base for binutils regardless of target CPU.
54
55%package -n @target_alias@-binutils
56Summary:      rtems binutils for @target_alias@
57Group: rtems
58Requires: rtems-base-binutils
59
60%description -n @target_alias@-binutils
61
62RTEMS is an open source operating system for embedded systems.
63
64This is the GNU binutils for RTEMS targetting @target_alias@.
65
66Authors:
67--------
68    Joel Sherrill (joel@oarcorp.com)
69    ...
70
71%prep
72# untar the sources inside @target_alias@-binutils
73%setup -c -n @target_alias@-binutils -a 0
74
75%patch0 -p0
76  test -d build || mkdir build
77
78%build
79  cd build
80  ../binutils-@binutils_version@/configure --target=@target_alias@ \
81    --verbose --prefix=/opt/rtems
82
83  make all
84  make info
85
86%install
87  cd build
88  make prefix=$RPM_BUILD_ROOT/opt/rtems install
89  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
90# A bug in binutils: binutils does not install share/locale
91# however it uses it
92  ../binutils-@binutils_version@/mkinstalldirs \
93    $RPM_BUILD_ROOT/opt/rtems/share/locale
94
95# gzip info files
96  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
97  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
98
99  if test -f $RPM_BUILD_ROOT/opt/rtems/info/configure.info.gz;
100  then
101# These are only present in binutils >= 2.9.5
102    find $RPM_BUILD_ROOT/opt/rtems/info -name 'configure.*' | \
103      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
104  else
105    touch ../files
106  fi
107
108# We assume that info/dir exists when building the RPMs
109  rm -f $RPM_BUILD_ROOT/opt/rtems/info/dir
110  f=`find $RPM_BUILD_ROOT/opt/rtems/info -name '*.info.gz'`
111  test x"$f" != x"" && for i in $f; do
112    install-info $i $RPM_BUILD_ROOT/opt/rtems/info/dir
113  done
114
115%post
116  if test -d $RPM_INSTALL_PREFIX/rtems/info;
117  then
118    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
119    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
120    test x"$f" != x"" && for i in $f; do
121      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
122    done
123  fi
124
125%postun
126  if test -d $RPM_INSTALL_PREFIX/rtems/info;
127  then
128    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
129    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
130    test x"$f" != x"" && for i in $f; do
131      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
132    done
133  fi
134
135%files -n rtems-base-binutils -f files
136%dir /opt/rtems/info
137%doc /opt/rtems/info/dir
138%doc /opt/rtems/info/as.info.gz
139%doc /opt/rtems/info/as.info-?.gz
140%doc /opt/rtems/info/bfd.info.gz
141%doc /opt/rtems/info/bfd.info-?.gz
142%doc /opt/rtems/info/binutils.info.gz
143%doc /opt/rtems/info/binutils.info-?.gz
144%doc /opt/rtems/info/ld.info.gz
145%doc /opt/rtems/info/ld.info-?.gz
146%doc /opt/rtems/info/gasp.info.gz
147%doc /opt/rtems/info/standards.info.gz
148
149%dir /opt/rtems/man
150%dir /opt/rtems/man/man1
151
152%dir /opt/rtems/include
153/opt/rtems/include/bfd.h
154/opt/rtems/include/ansidecl.h
155/opt/rtems/include/bfdlink.h
156
157%dir /opt/rtems/lib
158/opt/rtems/lib/libbfd*
159/opt/rtems/lib/libiberty*
160/opt/rtems/lib/libopcodes*
161
162%dir /opt/rtems/share
163%dir /opt/rtems/share/locale
164
165%files -n @target_alias@-binutils
166%doc /opt/rtems/man/man1/@target_alias@-*.1
167
168%dir /opt/rtems/bin
169/opt/rtems/bin/@target_alias@-addr2line@exe_ext@
170/opt/rtems/bin/@target_alias@-ar@exe_ext@
171/opt/rtems/bin/@target_alias@-as@exe_ext@
172/opt/rtems/bin/@target_alias@-c++filt@exe_ext@
173/opt/rtems/bin/@target_alias@-gasp@exe_ext@
174/opt/rtems/bin/@target_alias@-ld@exe_ext@
175/opt/rtems/bin/@target_alias@-nm@exe_ext@
176/opt/rtems/bin/@target_alias@-objcopy@exe_ext@
177/opt/rtems/bin/@target_alias@-objdump@exe_ext@
178/opt/rtems/bin/@target_alias@-ranlib@exe_ext@
179/opt/rtems/bin/@target_alias@-readelf@exe_ext@
180/opt/rtems/bin/@target_alias@-size@exe_ext@
181/opt/rtems/bin/@target_alias@-strings@exe_ext@
182/opt/rtems/bin/@target_alias@-strip@exe_ext@
183
184%dir /opt/rtems/@target_alias@
185%dir /opt/rtems/@target_alias@/bin
186/opt/rtems/@target_alias@/bin/ar@exe_ext@
187/opt/rtems/@target_alias@/bin/as@exe_ext@
188/opt/rtems/@target_alias@/bin/ld@exe_ext@
189/opt/rtems/@target_alias@/bin/nm@exe_ext@
190/opt/rtems/@target_alias@/bin/ranlib@exe_ext@
191/opt/rtems/@target_alias@/bin/strip@exe_ext@
192
193%dir /opt/rtems/@target_alias@/lib
194/opt/rtems/@target_alias@/lib/ldscripts
Note: See TracBrowser for help on using the repository browser.