source: rtems/scripts/gdb/gdb.spec.in @ 1f339c2

4.104.114.84.95
Last change on this file since 1f339c2 was 1f339c2, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 3:50:27 PM

New file.

  • 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@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
40# untar the sources inside @target_alias@-gdb
41%setup -c -n @target_alias@-gdb -a 0
42
43%patch0 -p0
44
45%build
46test -d build || mkdir build
47  cd build
48  ../gdb-@gdb_version@/configure --target=@target_alias@ \
49    --verbose --prefix=/opt/rtems
50
51  test -d $RPM_BUILD_ROOT/opt \
52    || mkdir $RPM_BUILD_ROOT/opt
53  test -d $RPM_BUILD_ROOT/opt/rtems \
54    || mkdir $RPM_BUILD_ROOT/opt/rtems
55
56  make all
57  make info
58
59%install
60  cd build
61  make prefix=$RPM_BUILD_ROOT/opt/rtems install
62  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
63
64%post
65  if test -d $RPM_INSTALL_PREFIX/rtems/info;
66  then
67    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
68    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
69    test -n "$f" && for i in $f; do
70      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
71    done
72  fi
73
74%postun
75  if test -d $RPM_INSTALL_PREFIX/rtems/info;
76  then
77    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
78    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
79    test -n "$f" && for i in $f; do
80      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
81    done
82  fi
83
84%files
85%dir /opt/rtems/info
86%doc /opt/rtems/info/gdb.info*
87%doc /opt/rtems/info/mmalloc.info*
88%doc /opt/rtems/info/readline.info*
89
90%dir /opt/rtems/man
91%dir /opt/rtems/man/man1
92%doc /opt/rtems/man/man1/@target_alias@-gdb.1
93
94%dir /opt/rtems/include
95/opt/rtems/include/bfd.h
96/opt/rtems/include/bfdlink.h
97
98%dir /opt/rtems/lib
99/opt/rtems/lib/libbfd*
100/opt/rtems/lib/libiberty*
101
102%dir /opt/rtems/bin
103/opt/rtems/bin/@target_alias@-gdb
104
Note: See TracBrowser for help on using the repository browser.