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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [scripts/] [gdb/] [gdb.add] - Blame information for rev 867

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

Line No. Rev Author Line
1 30 unneback
#
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-@gdb_patch_version@.diff
25
Buildroot:      /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
#
38
NoSource:      0
39
 
40
 
41
%description
42
RTEMS is an open source operating system for embedded systems.
43
 
44
This is the GNU gdb for RTEMS targetting @target_alias@.
45
 
46
%prep
47
echo 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
54
test -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

powered by: WebSVN 2.1.0

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