source: rtems/scripts/gdb/gdb.add @ 620c972

4.104.114.84.95
Last change on this file since 620c972 was c93fb2af, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 14, 2002 at 5:33:04 PM

2002-06-14 Joel Sherrill <joel@…>

  • mkgdbspec.in, setup.def, gcc3newlib/gccnewlib.add, gdb/gdb.add: Updated to gcc 3.1 and gdb 5.2.
  • Property mode set to 100644
File size: 2.2 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-collection
14Release:      @Release@
15License:      GPL/LGPL
16Group:        rtems
17
18Autoreqprov:  on
19Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
20
21Version:      @gdb_version@
22Summary:      gdb for target @target_alias@
23Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
24Patch0:       gdb-@gdb_version@-rtems-base-@gdb_patch_version@.diff
25Patch1:       gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff
26Patch2:       gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff
27Buildroot:      /tmp/@target_alias@-gdb
28
29#
30# The original sources are not included in the source RPM.
31# If we included them, then the source RPMs for each target
32# would duplicate MBs of source unnecessarily.  This is
33# a duplication of over 30 MBs of source for each of
34# the more than 10 targets it is possible to build.
35#
36# You can get them yourself from the Internet and copy them to
37# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
38# Or you can try the ftp options of rpm :-)
39#
40NoSource:      0
41
42
43%description
44RTEMS is an open source operating system for embedded systems.
45
46This is the GNU gdb for RTEMS targetting @target_alias@.
47
48%prep
49echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
50# untar the sources inside @target_alias@-gdb
51%setup -c -n @target_alias@-gdb -a 0
52
53cd gdb-@gdb_version@
54%patch0 -p1
55%patch1 -p1
56%patch2 -p1
57
58%build
59test -d build || mkdir build
60  cd build
61  ../gdb-@gdb_version@/configure --target=@target_alias@ \
62    --verbose --prefix=/opt/rtems @extra_configure_arguments@
63
64  make all
65  make info
66
67%install
68  cd build
69  make prefix=$RPM_BUILD_ROOT/opt/rtems install
70  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
71
72  # gzip info files
73  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
74  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
75  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null
76
77%clean
78# let rpm --clean remove BuildRoot iif using the default BuildRoot
79  test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gdb" && \
80    rm -rf $RPM_BUILD_ROOT
Note: See TracBrowser for help on using the repository browser.