OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [scripts-ada/] [gdb/] [gdb.spec.in] - Blame information for rev 605

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@-gnat-gdb-collection
14
Release:      @Release@
15
License:      GPL/LGPL
16
Group:        gnatrtems
17
Provides:     rtems-base-gnat-gdb @target_alias@-gnat-gdb
18
 
19
Autoreqprov:  on
20
Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21
 
22
Version:      @gdb_version@
23
Summary:      gdb for target @target_alias@
24
Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
25
Source1:        ftp://cs.nyu.edu/pub/gnat/gnat-@gnat_version@-src.tar.gz
26
Patch0:       gdb-@gdb_version@-rtems-gnat-@gnat_version@-@gdb_patch_version@.diff
27
Buildroot:      /tmp
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
%description
43
RTEMS is an open source operating system for embedded systems.
44
 
45
This is the GNU gdb for RTEMS targetting @target_alias@.
46
 
47
%package -n rtems-base-gnat-gdb
48
Summary:      base package for rtems gdb
49
Group: rtems
50
 
51
%description -n rtems-base-gnat-gdb
52
 
53
RTEMS is an open source operating system for embedded systems.
54
 
55
This is the base for gdb regardless of target CPU.
56
 
57
%package -n @target_alias@-gnat-gdb
58
Summary:      rtems gdb for @target_alias@
59
Group: rtems
60
Requires: rtems-base-gnat-gdb
61
 
62
%description -n @target_alias@-gnat-gdb
63
 
64
RTEMS is an open source operating system for embedded systems.
65
 
66
This is the GNU gdb for RTEMS targetting @target_alias@.
67
 
68
Authors:
69
--------
70
    Joel Sherrill (joel@oarcorp.com)
71
    ...
72
 
73
 
74
%prep
75
echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
76
# untar the sources inside @target_alias@-gnat-gdb
77
%setup -c -n @target_alias@-gnat-gdb -a 0 -a 1
78
 
79
  cd gdb-@gdb_version@
80
  patch -p0 <../gnat-@gnat_version@-src/src/gdb-@gdb_version@.gnat.diff
81
 
82
%patch0 -p1
83
 
84
%build
85
test -d build || mkdir build
86
  cd build
87
  ../gdb-@gdb_version@/configure --target=@target_alias@ \
88
    --verbose --prefix=/opt/gnatrtems @extra_configure_arguments@
89
 
90
  make CC=gcc CFLAGS="-O2 -g -DRTEMS_TARGET" all
91
  make info
92
 
93
%install
94
  cd build
95
  make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install
96
  make prefix=$RPM_BUILD_ROOT/opt/gnatrtems install-info
97
 
98
  # gzip info files
99
  find $RPM_BUILD_ROOT/opt/gnatrtems/info -name "*.info*" | \
100
    grep -v "\.gz$" | xargs -e gzip -f 2>/dev/null
101
  # gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info 2>/dev/null
102
  # gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info-? 2>/dev/null
103
  # gzip -f $RPM_BUILD_ROOT/opt/gnatrtems/info/*.info-?? 2>/dev/null
104
 
105
%post
106
  if test -d $RPM_INSTALL_PREFIX/rtems/info;
107
  then
108
    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
109
    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
110
    test -n "$f" && for i in $f; do
111
      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
112
    done
113
  fi
114
 
115
%postun
116
  if test -d $RPM_INSTALL_PREFIX/rtems/info;
117
  then
118
    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
119
    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
120
    test -n "$f" && for i in $f; do
121
      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
122
    done
123
  fi
124
 
125
%files -n rtems-base-gnat-gdb
126
 
127
%dir /opt/gnatrtems/info
128
%doc /opt/gnatrtems/info/gdb.info*
129
%doc /opt/gnatrtems/info/mmalloc.info*
130
# %doc /opt/gnatrtems/info/readline.info*
131
 
132
%dir /opt/gnatrtems/man
133
%dir /opt/gnatrtems/man/man1
134
 
135
%dir /opt/gnatrtems/include
136
# We install libbfd from binutils
137
# /opt/gnatrtems/include/bfd.h
138
# /opt/gnatrtems/include/bfdlink.h
139
 
140
%dir /opt/gnatrtems/lib
141
# We install libbfd from binutils
142
# /opt/gnatrtems/lib/libbfd*
143
# We use libiberty from gcc
144
# /opt/gnatrtems/lib/libiberty*
145
 
146
%files -n @target_alias@-gnat-gdb
147
%doc /opt/gnatrtems/man/man1/@target_alias@-gdb.1
148
 
149
%dir /opt/gnatrtems/bin
150
/opt/gnatrtems/bin/@target_alias@-gdb@exe_ext@
151
 

powered by: WebSVN 2.1.0

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