source: rtems/scripts/binutils/binutils.spec.in @ 431c35d

4.104.114.84.95
Last change on this file since 431c35d was 431c35d, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 7:59:01 PM

Miscellaneous improvements and cleanups committed so I can merge
Ralf's end of day version.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1#
2# spec file for package 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
12Release:      @Release@
13Copyright:    1999 OARCorp
14Group:        unsorted
15Provides:     @target_alias@-binutils
16
17Autoreqprov:    on
18Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
19Buildroot:      /opt/tmp
20Prefix:         /opt
21
22Version:        @binutils_version@
23Summary:        binutils for target @target_alias@
24Source0:        binutils-@binutils_version@.tar.gz
25Patch0:         binutils-@binutils_version@-rtems-@binutils_patch_version@.diff
26
27%description
28RTEMS is an open source operating system for embedded systems.
29
30This is the GNU binutils for RTEMS targetting @target_alias@.
31
32Authors:
33--------
34    Joel Sherrill (joel@oarcorp.com)
35    ...
36
37%prep
38echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
39# untar the sources inside @target_alias@-binutils
40%setup -c -n @target_alias@-binutils -a 0
41
42%patch0 -p0
43
44%build
45  test -d build || mkdir build
46  cd build
47  ../binutils-@binutils_version@/configure --target=@target_alias@ \
48    --verbose --prefix=/opt/rtems
49
50  make all
51  make info
52
53%install
54  cd build
55  make prefix=$RPM_BUILD_ROOT/opt/rtems install
56  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
57# A bug in binutils: binutils does not install share/locale
58# however it uses it
59  ../binutils-@binutils_version@/mkinstalldirs \
60    $RPM_BUILD_ROOT/opt/rtems/share/locale
61
62# gzip info files
63  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
64  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
65
66  if test -f $RPM_BUILD_ROOT/opt/rtems/info/configure.info.gz;
67  then
68# These are only present in binutils >= 2.9.5
69    find $RPM_BUILD_ROOT/opt/rtems/info -name 'configure.*' | \
70      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
71  else
72    touch ../files
73  fi
74
75%post
76  if test -d $RPM_INSTALL_PREFIX/rtems/info;
77  then
78    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
79    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
80    test -n "$f" && for i in $f; do
81      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
82    done
83  fi
84
85%postun
86  if test -d $RPM_INSTALL_PREFIX/rtems/info;
87  then
88    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
89    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
90    test -n "$f" && for i in $f; do
91      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
92    done
93  fi
94
95%files -f files
96%dir /opt/rtems/info
97%doc /opt/rtems/info/dir
98%doc /opt/rtems/info/as.info.gz
99%doc /opt/rtems/info/as.info-?.gz
100%doc /opt/rtems/info/bfd.info.gz
101%doc /opt/rtems/info/bfd.info-?.gz
102%doc /opt/rtems/info/binutils.info.gz
103%doc /opt/rtems/info/binutils.info-?.gz
104%doc /opt/rtems/info/ld.info.gz
105%doc /opt/rtems/info/ld.info-?.gz
106%doc /opt/rtems/info/gasp.info.gz
107%doc /opt/rtems/info/standards.info.gz
108
109%dir /opt/rtems/man
110%dir /opt/rtems/man/man1
111%doc /opt/rtems/man/man1/@target_alias@-*.1
112
113%dir /opt/rtems/bin
114/opt/rtems/bin/@target_alias@-addr2line
115/opt/rtems/bin/@target_alias@-ar
116/opt/rtems/bin/@target_alias@-as
117/opt/rtems/bin/@target_alias@-c++filt
118/opt/rtems/bin/@target_alias@-gasp
119/opt/rtems/bin/@target_alias@-ld
120/opt/rtems/bin/@target_alias@-nm
121/opt/rtems/bin/@target_alias@-objcopy
122/opt/rtems/bin/@target_alias@-objdump
123/opt/rtems/bin/@target_alias@-ranlib
124/opt/rtems/bin/@target_alias@-readelf
125/opt/rtems/bin/@target_alias@-size
126/opt/rtems/bin/@target_alias@-strings
127/opt/rtems/bin/@target_alias@-strip
128
129%dir /opt/rtems/include
130/opt/rtems/include/bfd.h
131/opt/rtems/include/ansidecl.h
132/opt/rtems/include/bfdlink.h
133
134%dir /opt/rtems/lib
135/opt/rtems/lib/libbfd*
136/opt/rtems/lib/libiberty*
137/opt/rtems/lib/libopcodes*
138
139%dir /opt/rtems/share
140%dir /opt/rtems/share/locale
141
142%dir /opt/rtems/@target_alias@
143%dir /opt/rtems/@target_alias@/bin
144/opt/rtems/@target_alias@/bin/ar
145/opt/rtems/@target_alias@/bin/as
146/opt/rtems/@target_alias@/bin/ld
147/opt/rtems/@target_alias@/bin/nm
148/opt/rtems/@target_alias@/bin/ranlib
149/opt/rtems/@target_alias@/bin/strip
150
151%dir /opt/rtems/@target_alias@/lib
152%dir /opt/rtems/@target_alias@/lib/ldscripts
153/opt/rtems/@target_alias@/lib/ldscripts/*
Note: See TracBrowser for help on using the repository browser.