source: rtems/scripts-ada/gdb/gdb.spec.in @ 64ab2e9

4.104.114.84.9
Last change on this file since 64ab2e9 was 64ab2e9, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 26, 2000 at 7:56:54 PM

First cut at adding RPM scripts for building GNAT/RTEMS RPMs.

  • Property mode set to 100644
File size: 3.6 KB
Line 
1#
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
11Vendor:       OAR Corporation
12Distribution: Linux
13Name:         @target_alias@-gdb-collection
14Release:      @Release@
15Copyright:    1999 OARCorp
16Group:        rtems
17Provides:     rtems-base-gdb @target_alias@-gdb
18
19Autoreqprov:  on
20Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21
22Version:      @gdb_version@
23Summary:      gdb for target @target_alias@
24Source0:      ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz
25Patch0:       gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
26#
27# The original sources are not included in the source RPM.
28# If we included them, then the source RPMs for each target
29# would duplicate MBs of source unnecessarily.  This is
30# a duplication of over 30 MBs of source for each of
31# the more than 10 targets it is possible to build.
32#
33# You can get them yourself from the Internet and copy them to
34# your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
35# Or you can try the ftp options of rpm :-)
36#
37NoSource:      0
38
39
40%description
41RTEMS is an open source operating system for embedded systems.
42
43This is the GNU gdb for RTEMS targetting @target_alias@.
44
45%package -n rtems-base-gdb
46Summary:      base package for rtems gdb
47Group: rtems
48
49%description -n rtems-base-gdb
50
51RTEMS is an open source operating system for embedded systems.
52
53This is the base for gdb regardless of target CPU.
54
55%package -n @target_alias@-gdb
56Summary:      rtems gdb for @target_alias@
57Group: rtems
58Requires: rtems-base-gdb
59
60%description -n @target_alias@-gdb
61
62RTEMS is an open source operating system for embedded systems.
63
64This is the GNU gdb for RTEMS targetting @target_alias@.
65
66Authors:
67--------
68    Joel Sherrill (joel@oarcorp.com)
69    ...
70
71
72%prep
73echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
74# untar the sources inside @target_alias@-gdb
75%setup -c -n @target_alias@-gdb -a 0
76
77%patch0 -p0
78
79%build
80test -d build || mkdir build
81  cd build
82  ../gdb-@gdb_version@/configure --target=@target_alias@ \
83    --verbose --prefix=/opt/rtems @extra_configure_arguments@
84
85  make all
86  make info
87
88%install
89  cd build
90  make prefix=$RPM_BUILD_ROOT/opt/rtems install
91  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
92
93  # gzip info files
94  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
95  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
96  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null
97
98%post
99  if test -d $RPM_INSTALL_PREFIX/rtems/info;
100  then
101    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
102    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
103    test -n "$f" && for i in $f; do
104      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
105    done
106  fi
107
108%postun
109  if test -d $RPM_INSTALL_PREFIX/rtems/info;
110  then
111    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
112    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
113    test -n "$f" && for i in $f; do
114      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
115    done
116  fi
117
118%files -n rtems-base-gdb
119
120%dir /opt/rtems/info
121%doc /opt/rtems/info/gdb.info*
122%doc /opt/rtems/info/mmalloc.info*
123%doc /opt/rtems/info/readline.info*
124
125%dir /opt/rtems/man
126%dir /opt/rtems/man/man1
127
128%dir /opt/rtems/include
129# We install libbfd from binutils
130# /opt/rtems/include/bfd.h
131# /opt/rtems/include/bfdlink.h
132
133%dir /opt/rtems/lib
134# We install libbfd from binutils
135# /opt/rtems/lib/libbfd*
136# We use libiberty from gcc
137# /opt/rtems/lib/libiberty*
138
139%files -n @target_alias@-gdb
140%doc /opt/rtems/man/man1/@target_alias@-gdb.1
141
142%dir /opt/rtems/bin
143/opt/rtems/bin/@target_alias@-gdb@exe_ext@
144
Note: See TracBrowser for help on using the repository browser.