source: rtems/scripts/gdb/gdb.spec.in @ 72d3f610

4.104.114.84.95
Last change on this file since 72d3f610 was 72d3f610, checked in by Joel Sherrill <joel.sherrill@…>, on 10/25/99 at 14:15:09

Merged scripts-19991022-0 changes from Ralf.

  • 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/gdbgdb-@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
40Buildroot:      @rpm_build_root@
41
42%description
43RTEMS is an open source operating system for embedded systems.
44
45This is the GNU gdb for RTEMS targetting @target_alias@.
46
47Authors:
48--------
49    Joel Sherrill (joel@oarcorp.com)
50    ...
51
52%prep
53echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
54# untar the sources inside @target_alias@-gdb
55%setup -c -n @target_alias@-gdb -a 0
56
57%patch0 -p0
58
59%build
60test -d build || mkdir build
61  cd build
62  ../gdb-@gdb_version@/configure --target=@target_alias@ \
63    --verbose --prefix=/opt/rtems
64
65  make all
66  make info
67
68%install
69  cd build
70  make prefix=$RPM_BUILD_ROOT/opt/rtems install
71  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
72
73%post
74  if test -d $RPM_INSTALL_PREFIX/rtems/info;
75  then
76    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
77    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
78    test -n "$f" && for i in $f; do
79      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
80    done
81  fi
82
83%postun
84  if test -d $RPM_INSTALL_PREFIX/rtems/info;
85  then
86    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
87    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
88    test -n "$f" && for i in $f; do
89      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
90    done
91  fi
92
93%files
94%dir /opt/rtems/info
95%doc /opt/rtems/info/gdb.info*
96%doc /opt/rtems/info/mmalloc.info*
97%doc /opt/rtems/info/readline.info*
98
99%dir /opt/rtems/man
100%dir /opt/rtems/man/man1
101%doc /opt/rtems/man/man1/@target_alias@-gdb.1
102
103%dir /opt/rtems/include
104# We install libbfd from binutils
105# /opt/rtems/include/bfd.h
106# /opt/rtems/include/bfdlink.h
107
108%dir /opt/rtems/lib
109# We install libbfd from binutils
110# /opt/rtems/lib/libbfd*
111# We use libiberty from gcc
112# /opt/rtems/lib/libiberty*
113
114%dir /opt/rtems/bin
115/opt/rtems/bin/@target_alias@-gdb
116
Note: See TracBrowser for help on using the repository browser.