summaryrefslogtreecommitdiffstats
path: root/scripts/gdb.spec.in
blob: a3f9fef46208cdf106cc66b083d33bdb886d4fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# spec file for package rtems
# 
# Copyright  (c)  1999  OARCorp, Huntsville, AL
#
# please send bugfixes or comments to joel@OARcorp.com
#

# neededforbuild -- nothing

Vendor:       OAR Corporation
Distribution: Linux
Name:         @target_alias@-gdb
Release:      @Release@
Copyright:    1999 OARCorp
Group:        unsorted
Provides:     @target_alias@-gdb

Autoreqprov:  on
Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com

Version:      gdb@gdb_version@
Summary:      gdb for target @target_alias@
Source0:      	gdb-@gdb_version@.tar.gz
Patch0:		gdb-@gdb_version@-rtems-@gdb_patch_version@.diff

Buildroot:    /tmp
# Patch:
%description
RTEMS is an open source operating system for embedded systems.

This is the GNU gdb for RTEMS targetting @target_alias@.

Authors:
--------
    Joel Sherrill (joel@oarcorp.com)
    ...

%prep
# untar the sources inside @target_alias@-gdb
%setup -c -n @target_alias@-gdb -a 0

%patch0 -p0

%build
test -d build || mkdir build
( cd build
  ../gdb-@gdb_version@/configure --target=@target_alias@ \
    --verbose --prefix=/opt/rtems 

  test -d $RPM_BUILD_ROOT/opt \
    || mkdir $RPM_BUILD_ROOT/opt
  test -d $RPM_BUILD_ROOT/opt/rtems \
    || mkdir $RPM_BUILD_ROOT/opt/rtems

  make all
  make info
)

%install
( cd build
  make prefix=$RPM_BUILD_ROOT/opt/rtems install
  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
)

%files
%dir /opt/rtems
%dir /opt/rtems/bin
%dir /opt/rtems/include
%dir /opt/rtems/info
%dir /opt/rtems/lib
%dir /opt/rtems/man
%dir /opt/rtems/man/man1

%doc /opt/rtems/info/gdb.info*
%doc /opt/rtems/info/mmalloc.info*
%doc /opt/rtems/info/readline.info*
%doc /opt/rtems/man/man1/@target_alias@-gdb.1

/opt/rtems/bin/@target_alias@-gdb
/opt/rtems/include/bfd.h
/opt/rtems/include/bfdlink.h
/opt/rtems/lib/libbfd*
/opt/rtems/lib/libiberty*