source: rtems/scripts-ada/gdb/gdb.spec.in @ 1e3f463

4.104.114.84.95
Last change on this file since 1e3f463 was 1e3f463, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 13, 2001 at 4:35:55 PM

2001-09-13 Joel Sherrill <joel@…>

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