source: rtems/scripts/gdb/gdb.spec.in @ 431c35d

4.104.114.84.95
Last change on this file since 431c35d was 431c35d, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 7:59:01 PM

Miscellaneous improvements and cleanups committed so I can merge
Ralf's end of day version.

  • Property mode set to 100644
File size: 2.3 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
14Release:      @Release@
15Copyright:    1999 OARCorp
16Group:        unsorted
17Provides:     @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:        gdb-@gdb_version@.tar.gz
25Patch0:         gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
26
27Buildroot:    /tmp
28# Patch:
29%description
30RTEMS is an open source operating system for embedded systems.
31
32This is the GNU gdb for RTEMS targetting @target_alias@.
33
34Authors:
35--------
36    Joel Sherrill (joel@oarcorp.com)
37    ...
38
39%prep
40echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
41# untar the sources inside @target_alias@-gdb
42%setup -c -n @target_alias@-gdb -a 0
43
44%patch0 -p0
45
46%build
47test -d build || mkdir build
48  cd build
49  ../gdb-@gdb_version@/configure --target=@target_alias@ \
50    --verbose --prefix=/opt/rtems
51
52  test -d $RPM_BUILD_ROOT/opt \
53    || mkdir $RPM_BUILD_ROOT/opt
54  test -d $RPM_BUILD_ROOT/opt/rtems \
55    || mkdir $RPM_BUILD_ROOT/opt/rtems
56
57  make all
58  make info
59
60%install
61  cd build
62  make prefix=$RPM_BUILD_ROOT/opt/rtems install
63  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
64
65%post
66  if test -d $RPM_INSTALL_PREFIX/rtems/info;
67  then
68    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
69    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
70    test -n "$f" && for i in $f; do
71      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
72    done
73  fi
74
75%postun
76  if test -d $RPM_INSTALL_PREFIX/rtems/info;
77  then
78    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
79    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
80    test -n "$f" && for i in $f; do
81      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
82    done
83  fi
84
85%files
86%dir /opt/rtems/info
87%doc /opt/rtems/info/gdb.info*
88%doc /opt/rtems/info/mmalloc.info*
89%doc /opt/rtems/info/readline.info*
90
91%dir /opt/rtems/man
92%dir /opt/rtems/man/man1
93%doc /opt/rtems/man/man1/@target_alias@-gdb.1
94
95%dir /opt/rtems/include
96/opt/rtems/include/bfd.h
97/opt/rtems/include/bfdlink.h
98
99%dir /opt/rtems/lib
100/opt/rtems/lib/libbfd*
101/opt/rtems/lib/libiberty*
102
103%dir /opt/rtems/bin
104/opt/rtems/bin/@target_alias@-gdb
105
Note: See TracBrowser for help on using the repository browser.