OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [scripts/] [gdb/] [gdb.add] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#
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
 
11
Vendor:       OAR Corporation
12
Distribution: Linux
13
Name:         @target_alias@-gdb-collection
14
Release:      @Release@
15
License:      GPL/LGPL
16
Group:        rtems
17
 
18
Autoreqprov:  on
19
Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
20
 
21
Version:      @gdb_version@
22
Summary:      gdb for target @target_alias@
23
Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
24
Patch0:       gdb-@gdb_version@-rtems-base-@gdb_patch_version@.diff
25
Patch1:       gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff
26
Patch2:       gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff
27
Buildroot:      /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
#
40
NoSource:      0
41
 
42
 
43
%description
44
RTEMS is an open source operating system for embedded systems.
45
 
46
This is the GNU gdb for RTEMS targetting @target_alias@.
47
 
48
%prep
49
echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
50
# untar the sources inside @target_alias@-gdb
51
%setup -c -n @target_alias@-gdb -a 0
52
 
53
cd gdb-@gdb_version@
54
%patch0 -p1
55
%patch1 -p1
56
%patch2 -p1
57
 
58
%build
59
test -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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.