source: rtems/scripts/gccnewlib/gccnewlib.spec.in @ 10629f7

4.104.114.84.95
Last change on this file since 10629f7 was 10629f7, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 20, 1999 at 3:29:12 PM

New version from Ralf.

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