source: rtems/scripts/gdb/gdb.spec.in @ f5a1fe9

4.104.114.84.95
Last change on this file since f5a1fe9 was f5a1fe9, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 16:07:13

Fixed typo.

  • Property mode set to 100644
File size: 2.8 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
9# neededforbuild -- nothing
10
11Vendor:       OAR Corporation
12Distribution: Linux
13Name:         @target_alias@-gdb
14Release:      @Release@
15Copyright:    1999 OARCorp
16Group:        unsorted
17Provides:     @target_alias@-gdb
18
19Autoreqprov:  on
20Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21
22Version:      @gdb_version@
23Summary:      gdb for target @target_alias@
24Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
25Patch0:       gdb-@gdb_version@-rtems-@gdb_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
40%description
41RTEMS is an open source operating system for embedded systems.
42
43This is the GNU gdb for RTEMS targetting @target_alias@.
44
45Authors:
46--------
47    Joel Sherrill (joel@oarcorp.com)
48    ...
49
50%prep
51echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
52# untar the sources inside @target_alias@-gdb
53%setup -c -n @target_alias@-gdb -a 0
54
55%patch0 -p0
56
57%build
58test -d build || mkdir build
59  cd build
60  ../gdb-@gdb_version@/configure --target=@target_alias@ \
61    --verbose --prefix=/opt/rtems
62
63  make all
64  make info
65
66%install
67  cd build
68  make prefix=$RPM_BUILD_ROOT/opt/rtems install
69  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
70
71%post
72  if test -d $RPM_INSTALL_PREFIX/rtems/info;
73  then
74    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
75    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
76    test -n "$f" && for i in $f; do
77      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
78    done
79  fi
80
81%postun
82  if test -d $RPM_INSTALL_PREFIX/rtems/info;
83  then
84    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
85    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
86    test -n "$f" && for i in $f; do
87      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
88    done
89  fi
90
91%files
92%dir /opt/rtems/info
93%doc /opt/rtems/info/gdb.info*
94%doc /opt/rtems/info/mmalloc.info*
95%doc /opt/rtems/info/readline.info*
96
97%dir /opt/rtems/man
98%dir /opt/rtems/man/man1
99%doc /opt/rtems/man/man1/@target_alias@-gdb.1
100
101%dir /opt/rtems/include
102# We install libbfd from binutils
103# /opt/rtems/include/bfd.h
104# /opt/rtems/include/bfdlink.h
105
106%dir /opt/rtems/lib
107# We install libbfd from binutils
108# /opt/rtems/lib/libbfd*
109# We use libiberty from gcc
110# /opt/rtems/lib/libiberty*
111
112%dir /opt/rtems/bin
113/opt/rtems/bin/@target_alias@-gdb
114
Note: See TracBrowser for help on using the repository browser.