source: rtems/scripts/binutils/binutils.spec.in @ 10629f7

4.104.114.84.95
Last change on this file since 10629f7 was 10629f7, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 3:29:12 PM

New version from Ralf.

  • 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:      /tmp
20Prefix:         /opt
21
22Version:        binutils@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
38# untar the sources inside @target_alias@-binutils
39%setup -c -n @target_alias@-binutils -a 0
40
41%patch0 -p0
42
43%build
44  test -d build || mkdir build
45  cd build
46  ../binutils-@binutils_version@/configure --target=@target_alias@ \
47    --verbose --prefix=/opt/rtems
48
49  make all
50  make info
51
52%install
53  cd build
54  make prefix=$RPM_BUILD_ROOT/opt/rtems install
55  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
56# A bug in binutils: binutils does not install share/locale
57# however it uses it
58  ../binutils-@binutils_version@/mkinstalldirs \
59    $RPM_BUILD_ROOT/opt/rtems/share/locale
60
61# gzip info files
62  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
63  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
64
65  if test -f $RPM_BUILD_ROOT/opt/rtems/info/configure.info.gz;
66  then
67# These are only present in binutils >= 2.9.5
68    find $RPM_BUILD_ROOT/opt/rtems/info -name 'configure.*' | \
69      sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
70  else
71    touch ../files
72  fi
73
74%post
75  if test -d $RPM_INSTALL_PREFIX/rtems/info;
76  then
77    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
78    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
79    test -n "$f" && for i in $f; do
80      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
81    done
82  fi
83
84%postun
85  if test -d $RPM_INSTALL_PREFIX/rtems/info;
86  then
87    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
88    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
89    test -n "$f" && for i in $f; do
90      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
91    done
92  fi
93
94%files -f files
95%dir /opt/rtems/info
96%doc /opt/rtems/info/dir
97%doc /opt/rtems/info/as.info.gz
98%doc /opt/rtems/info/as.info-?.gz
99%doc /opt/rtems/info/bfd.info.gz
100%doc /opt/rtems/info/bfd.info-?.gz
101%doc /opt/rtems/info/binutils.info.gz
102%doc /opt/rtems/info/binutils.info-?.gz
103%doc /opt/rtems/info/ld.info.gz
104%doc /opt/rtems/info/ld.info-?.gz
105%doc /opt/rtems/info/gasp.info.gz
106%doc /opt/rtems/info/standards.info.gz
107
108%dir /opt/rtems/man
109%dir /opt/rtems/man/man1
110%doc /opt/rtems/man/man1/@target_alias@-*.1
111
112%dir /opt/rtems/bin
113/opt/rtems/bin/@target_alias@-addr2line
114/opt/rtems/bin/@target_alias@-ar
115/opt/rtems/bin/@target_alias@-as
116/opt/rtems/bin/@target_alias@-c++filt
117/opt/rtems/bin/@target_alias@-gasp
118/opt/rtems/bin/@target_alias@-ld
119/opt/rtems/bin/@target_alias@-nm
120/opt/rtems/bin/@target_alias@-objcopy
121/opt/rtems/bin/@target_alias@-objdump
122/opt/rtems/bin/@target_alias@-ranlib
123/opt/rtems/bin/@target_alias@-readelf
124/opt/rtems/bin/@target_alias@-size
125/opt/rtems/bin/@target_alias@-strings
126/opt/rtems/bin/@target_alias@-strip
127
128%dir /opt/rtems/include
129/opt/rtems/include/bfd.h
130/opt/rtems/include/ansidecl.h
131/opt/rtems/include/bfdlink.h
132
133%dir /opt/rtems/lib
134/opt/rtems/lib/libbfd*
135/opt/rtems/lib/libiberty*
136/opt/rtems/lib/libopcodes*
137
138%dir /opt/rtems/share
139%dir /opt/rtems/share/locale
140
141%dir /opt/rtems/@target_alias@
142%dir /opt/rtems/@target_alias@/bin
143/opt/rtems/@target_alias@/bin/ar
144/opt/rtems/@target_alias@/bin/as
145/opt/rtems/@target_alias@/bin/ld
146/opt/rtems/@target_alias@/bin/nm
147/opt/rtems/@target_alias@/bin/ranlib
148/opt/rtems/@target_alias@/bin/strip
149
150%dir /opt/rtems/@target_alias@/lib
151%dir /opt/rtems/@target_alias@/lib/ldscripts
152/opt/rtems/@target_alias@/lib/ldscripts/*
Note: See TracBrowser for help on using the repository browser.