source: rtems/scripts/binutils/binutils.spec.in @ 5eac93c7

4.104.114.84.95
Last change on this file since 5eac93c7 was 5eac93c7, checked in by Joel Sherrill <joel.sherrill@…>, on 01/25/00 at 19:47:32

Now binutils, gcc, and gdb build into a "base" package that is shared
by all targets and one or more target specific RPMs. This significantly
reduces the conflicts between the RPMs whether installing one or multiple
targets.

  • Property mode set to 100644
File size: 5.2 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%post
109  if test -d $RPM_INSTALL_PREFIX/rtems/info;
110  then
111    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
112    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
113    test x"$f" != x"" && for i in $f; do
114      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
115    done
116  fi
117
118%postun
119  if test -d $RPM_INSTALL_PREFIX/rtems/info;
120  then
121    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
122    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
123    test x"$f" != x"" && for i in $f; do
124      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
125    done
126  fi
127
128%files -n rtems-base-binutils -f files
129%dir /opt/rtems/info
130%doc /opt/rtems/info/dir
131%doc /opt/rtems/info/as.info.gz
132%doc /opt/rtems/info/as.info-?.gz
133%doc /opt/rtems/info/bfd.info.gz
134%doc /opt/rtems/info/bfd.info-?.gz
135%doc /opt/rtems/info/binutils.info.gz
136%doc /opt/rtems/info/binutils.info-?.gz
137%doc /opt/rtems/info/ld.info.gz
138%doc /opt/rtems/info/ld.info-?.gz
139%doc /opt/rtems/info/gasp.info.gz
140%doc /opt/rtems/info/standards.info.gz
141
142%dir /opt/rtems/man
143%dir /opt/rtems/man/man1
144
145%dir /opt/rtems/include
146/opt/rtems/include/bfd.h
147/opt/rtems/include/ansidecl.h
148/opt/rtems/include/bfdlink.h
149
150%dir /opt/rtems/lib
151/opt/rtems/lib/libbfd*
152/opt/rtems/lib/libiberty*
153/opt/rtems/lib/libopcodes*
154
155%dir /opt/rtems/share
156%dir /opt/rtems/share/locale
157
158%files -n @target_alias@-binutils
159%doc /opt/rtems/man/man1/@target_alias@-*.1
160
161%dir /opt/rtems/bin
162/opt/rtems/bin/@target_alias@-addr2line@exe_ext@
163/opt/rtems/bin/@target_alias@-ar@exe_ext@
164/opt/rtems/bin/@target_alias@-as@exe_ext@
165/opt/rtems/bin/@target_alias@-c++filt@exe_ext@
166/opt/rtems/bin/@target_alias@-gasp@exe_ext@
167/opt/rtems/bin/@target_alias@-ld@exe_ext@
168/opt/rtems/bin/@target_alias@-nm@exe_ext@
169/opt/rtems/bin/@target_alias@-objcopy@exe_ext@
170/opt/rtems/bin/@target_alias@-objdump@exe_ext@
171/opt/rtems/bin/@target_alias@-ranlib@exe_ext@
172/opt/rtems/bin/@target_alias@-readelf@exe_ext@
173/opt/rtems/bin/@target_alias@-size@exe_ext@
174/opt/rtems/bin/@target_alias@-strings@exe_ext@
175/opt/rtems/bin/@target_alias@-strip@exe_ext@
176
177%dir /opt/rtems/@target_alias@
178%dir /opt/rtems/@target_alias@/bin
179/opt/rtems/@target_alias@/bin/ar@exe_ext@
180/opt/rtems/@target_alias@/bin/as@exe_ext@
181/opt/rtems/@target_alias@/bin/ld@exe_ext@
182/opt/rtems/@target_alias@/bin/nm@exe_ext@
183/opt/rtems/@target_alias@/bin/ranlib@exe_ext@
184/opt/rtems/@target_alias@/bin/strip@exe_ext@
185
186%dir /opt/rtems/@target_alias@/lib
187/opt/rtems/@target_alias@/lib/ldscripts
Note: See TracBrowser for help on using the repository browser.