source: rtems/scripts/gdb/gdb.add @ 54ceffa

4.104.114.84.95
Last change on this file since 54ceffa was 54ceffa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/05/03 at 05:01:11

2003-02-05 Ralf Corsepius <corsepiu@…>

  • Apply the 2003-01-31 changes OAR's broken CVS had dropped.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1Name:         @target_alias@-gdb-collection
2Release:      @Release@
3License:      GPL/LGPL
4Group:        rtems
5
6Autoreqprov:  on
7Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
8
9Version:      @gdb_version@
10Summary:      gdb for target @target_alias@
11Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
12Patch0:       gdb-@gdb_version@-rtems-base-@gdb_patch_version@.diff
13Patch1:       gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff
14Patch2:       gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff
15
16%if "%{_vendor}" == "redhat"
17BuildPreReq:    ncurses-devel
18%endif
19
20#
21# The original sources are not included in the source RPM.
22# If we included them, then the source RPMs for each target
23# would duplicate MBs of source unnecessarily.  This is
24# a duplication of over 30 MBs of source for each of
25# the more than 10 targets it is possible to build.
26#
27# You can get them yourself from the Internet and copy them to
28# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
29# Or you can try the ftp options of rpm :-)
30#
31NoSource:      0
32
33
34%description
35RTEMS is an open source operating system for embedded systems.
36
37This is the GNU gdb for RTEMS targetting @target_alias@.
38
39%prep
40# untar the sources inside @target_alias@-gdb
41%setup -c -n @target_alias@-gdb -a 0
42
43cd gdb-@gdb_version@
44%patch0 -p1
45%patch1 -p1
46%patch2 -p1
47
48%build
49test -d build || mkdir build
50  cd build
51  ../gdb-@gdb_version@/configure \
52    --build=%_build --host=%_host \
53    --target=@target_alias@ \
54    --verbose --prefix=%{_prefix} @extra_configure_arguments@ \
55    --disable-nls
56
57  make all
58  make info
59
60%install
61  cd build
62  make prefix=$RPM_BUILD_ROOT%{_prefix} install
63  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
64
65  # host files
66  rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h
67  rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a
68
69  # These come from other packages
70  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd*
71  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure*
72  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards*
73 
74  # gzip info files
75  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
76  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
77  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
Note: See TracBrowser for help on using the repository browser.