source: rtems/scripts/gdb/gdb.add @ edeed26

4.104.114.84.95
Last change on this file since edeed26 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 2.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
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-@gdb_patch_version@.diff
25Buildroot:      /tmp/@target_alias@-gdb
26
27#
28# The original sources are not included in the source RPM.
29# If we included them, then the source RPMs for each target
30# would duplicate MBs of source unnecessarily.  This is
31# a duplication of over 30 MBs of source for each of
32# the more than 10 targets it is possible to build.
33#
34# You can get them yourself from the Internet and copy them to
35# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
36# Or you can try the ftp options of rpm :-)
37#
38NoSource:      0
39
40
41%description
42RTEMS is an open source operating system for embedded systems.
43
44This is the GNU gdb for RTEMS targetting @target_alias@.
45
46%prep
47echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
48# untar the sources inside @target_alias@-gdb
49%setup -c -n @target_alias@-gdb -a 0
50
51%patch0 -p0
52
53%build
54test -d build || mkdir build
55  cd build
56  ../gdb-@gdb_version@/configure --target=@target_alias@ \
57    --verbose --prefix=/opt/rtems @extra_configure_arguments@
58
59  make all
60  make info
61
62%install
63  cd build
64  make prefix=$RPM_BUILD_ROOT/opt/rtems install
65  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
66
67  # gzip info files
68  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
69  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
70  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null
71
72%clean
73# let rpm --clean remove BuildRoot iif using the default BuildRoot
74  test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gdb" && \
75    rm -rf $RPM_BUILD_ROOT
Note: See TracBrowser for help on using the repository browser.