source: rtems/scripts/gdb/gdb.add @ 06908af6

4.104.114.84.95
Last change on this file since 06908af6 was ab591073, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/03 at 07:29:27

2003-01-31 Ralf Corsepius <corsepiu@…>

  • common/common.add.in: Add Vendor, Distribution, BuildRoot?.
  • binutils/Makefile.am: Fix path to clean.add.
  • binutils/binutils.add: Remove BuildRoot?.
  • cpukit/Makefile.am: Use $(top_builddir)/common/common.add, $(top_builddir)/common/clean.add, header.add. Generate rtems-cpukit.spec.in.
  • cpukit/header.add: New.
  • cpukit/rtems-cpukit.spec.in: Remove.
  • cpukit/rtems-cpukit.add: New.
  • gccnewlib/gccnewlib.add: Remove Buildroot.
  • gdb/gdb.add: Remove Buildroot.
  • rtemsdoc/rtemsdoc.add: Remove BuildRoot?.
  • Property mode set to 100644
File size: 2.1 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    --target=@target_alias@ \
53    --verbose --prefix=%{_prefix} @extra_configure_arguments@ \
54    --disable-nls
55
56  make all
57  make info
58
59%install
60  cd build
61  make prefix=$RPM_BUILD_ROOT%{_prefix} install
62  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
63
64  # host files
65  rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h
66  rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a
67
68  # These come from other packages
69  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd*
70  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure*
71  rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards*
72 
73  # gzip info files
74  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
75  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null
76  gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null
Note: See TracBrowser for help on using the repository browser.