source: rtems/scripts/gccnewlib.spec.in @ ab25407c

4.104.114.84.95
Last change on this file since ab25407c was ab25407c, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 19, 1999 at 10:02:39 PM

Easier to insert tool version number.

  • Property mode set to 100644
File size: 3.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  @target_alias@-binutils @target_alias@-gcc
10
11Vendor:       OAR Corporation
12Distribution: Linux
13Name:         @target_alias@-gcc-newlib
14Release:      @Release@
15Copyright:    1999 OARCorp
16Group:        unsorted
17Provides:     @target_alias@-gcc-newlib
18
19Autoreqprov:  on
20Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21
22Version:      gcc-@gcc_version@-newlib-@newlib_version@
23Summary:      rtems gcc and newlib C Library for target @target_alias@
24Source0:        gcc-@gcc_version@.tar.gz
25Source1:        newlib-@newlib_version@.tar.gz
26Patch0:         gcc-@gcc_version@-rtems-@gcc_patch_version@.diff
27Patch1:         newlib-@newlib_version@-rtems-@newlib_patch_version@.diff
28
29Buildroot:    /tmp
30# Patch:
31%description
32RTEMS is an open source operating system for embedded systems.
33
34This is gcc and newlib C Library for @target_alias@.
35
36Authors:
37--------
38    Joel Sherrill (joel@oarcorp.com)
39    ...
40
41%prep
42# untar the sources inside @target_alias@-gcc-newlib
43%setup -c -n @target_alias@-gcc-newlib -a 0 -a 1
44
45%patch0 -p0
46%patch1 -p0
47
48( cd gcc-@gcc_version@
49
50  # Now link the C library into the source tree
51  ln -s ../newlib-@newlib_version@/newlib .
52)
53
54%build
55test -d build || mkdir build
56( cd build
57  ../gcc-@gcc_version@/configure --target=@target_alias@ \
58    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
59    --prefix=/opt/rtems
60
61  test -d $RPM_BUILD_ROOT/opt \
62    || mkdir $RPM_BUILD_ROOT/opt
63  test -d $RPM_BUILD_ROOT/opt/rtems \
64    || mkdir $RPM_BUILD_ROOT/opt/rtems
65  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@ \
66    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@
67  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
68    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include
69  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include \
70    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
71
72  srclimits=../gcc-@gcc_version@/newlib/libc/sys/rtems/include/limits.h
73  for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
74             $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
75  do
76    cp ${srclimits} ${dir}
77  done
78
79  #make LANGUAGES="c c++" all
80  make all
81  make info
82
83  cd gcc
84    rm -f stmp-multilib
85    find . -name "*.a" -print | xargs -e rm -f
86
87    make all
88  cd ..
89)
90
91%install
92( cd build
93  make prefix=$RPM_BUILD_ROOT/opt/rtems install
94  cd @target_alias@/newlib
95  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
96)
97
98%files
99%doc /opt/rtems/info/chill.info*
100%doc /opt/rtems/info/cpp.info*
101%doc /opt/rtems/info/gcc.info*
102%doc /opt/rtems/info/g77.info*
103%doc /opt/rtems/info/libc.info*
104%doc /opt/rtems/info/libm.info*
105%doc /opt/rtems/man/man1/cccp.1
106%doc /opt/rtems/man/man1/@target_alias@-gcc.1
107%doc /opt/rtems/man/man1/@target_alias@-g++.1
108
109/opt/rtems/bin/cpp
110/opt/rtems/bin/@target_alias@-c++
111/opt/rtems/bin/@target_alias@-g++
112/opt/rtems/bin/@target_alias@-gcc
113/opt/rtems/bin/@target_alias@-gcj
114/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@
115/opt/rtems/@target_alias@/include*
116/opt/rtems/@target_alias@/sys-include
117/opt/rtems/@target_alias@/lib*
Note: See TracBrowser for help on using the repository browser.