source: rtems/scripts/gccnewlib/gccnewlib.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: 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_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
41echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}
42# untar the sources inside @target_alias@-gcc-newlib -@Version@
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-1.8.2/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  ../gcc-@gcc_version@/mkinstalldirs \
61    $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include \
62    $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include
63
64  srclimits=../gcc-@gcc_version@/newlib/libc/sys/rtems/include/limits.h
65  for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
66             $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
67  do
68    cp ${srclimits} ${dir}
69  done
70
71  #make LANGUAGES="c c++" all
72  make all
73  make info
74
75  cd gcc
76    rm -f stmp-multilib
77    find . -name "*.a" -print | xargs -e rm -f
78
79    make all
80  cd ..
81)
82
83%install
84( cd build
85  make prefix=$RPM_BUILD_ROOT/opt/rtems install
86  cd @target_alias@/newlib
87  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
88# gzip info files
89  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null
90  gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null
91)
92
93%post
94  if test -d $RPM_INSTALL_PREFIX/rtems/info;
95  then
96    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
97    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
98    test -n "$f" && for i in $f; do
99      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
100    done
101  fi
102
103%postun
104  if test -d $RPM_INSTALL_PREFIX/rtems/info;
105  then
106    rm -f $RPM_INSTALL_PREFIX/rtems/info/dir
107    f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'`
108    test -n "$f" && for i in $f; do
109      install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir
110    done
111  fi
112
113%files
114%dir /opt/rtems/info
115%doc /opt/rtems/info/dir
116%doc /opt/rtems/info/chill.info*
117%doc /opt/rtems/info/cpp.info*
118%doc /opt/rtems/info/gcc.info*
119%doc /opt/rtems/info/g77.info*
120%doc /opt/rtems/info/libc.info*
121%doc /opt/rtems/info/libm.info*
122
123%dir /opt/rtems/man
124%dir /opt/rtems/man/man1
125%doc /opt/rtems/man/man1/cccp.1
126%doc /opt/rtems/man/man1/@target_alias@-gcc.1
127%doc /opt/rtems/man/man1/@target_alias@-g++.1
128
129%dir /opt/rtems/bin
130/opt/rtems/bin/cpp
131/opt/rtems/bin/@target_alias@-c++
132/opt/rtems/bin/@target_alias@-g++
133/opt/rtems/bin/@target_alias@-gcc
134/opt/rtems/bin/@target_alias@-gcj
135%dir /opt/rtems/lib
136%dir /opt/rtems/lib/gcc-lib
137%dir /opt/rtems/lib/gcc-lib/@target_alias@
138/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@
139/opt/rtems/@target_alias@/include
140/opt/rtems/@target_alias@/sys-include
141/opt/rtems/@target_alias@/lib
Note: See TracBrowser for help on using the repository browser.