[8c5e54b] | 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 | |
---|
| 11 | Vendor: OAR Corporation |
---|
| 12 | Distribution: Linux |
---|
| 13 | Name: @target_alias@-gcc-newlib |
---|
| 14 | Release: @Release@ |
---|
| 15 | Copyright: 1999 OARCorp |
---|
| 16 | Group: unsorted |
---|
| 17 | Provides: @target_alias@-gcc-newlib |
---|
| 18 | |
---|
| 19 | Autoreqprov: on |
---|
| 20 | Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com |
---|
| 21 | |
---|
| 22 | Version: @Version@ |
---|
| 23 | Summary: rtems gcc and newlib C Library for target @target_alias@ |
---|
| 24 | Source0: gcc-2.95.1.tar.gz |
---|
| 25 | Source1: newlib-1.8.2.tar.gz |
---|
| 26 | Patch0: gcc-2.95.1-rtems-19991015.diff |
---|
| 27 | Patch1: newlib-1.8.2-rtems-19991015.diff |
---|
| 28 | |
---|
| 29 | Buildroot: /tmp |
---|
| 30 | # Patch: |
---|
| 31 | %description |
---|
| 32 | RTEMS is an open source operating system for embedded systems. |
---|
| 33 | |
---|
| 34 | This is gcc and newlib C Library for @target_alias@. |
---|
| 35 | |
---|
| 36 | Authors: |
---|
| 37 | -------- |
---|
| 38 | Joel Sherrill (joel@oarcorp.com) |
---|
| 39 | ... |
---|
| 40 | |
---|
| 41 | %prep |
---|
| 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-2.95.1 |
---|
| 49 | |
---|
| 50 | # Now link the C library into the source tree |
---|
| 51 | ln -s ../newlib-1.8.2/newlib . |
---|
| 52 | ) |
---|
| 53 | |
---|
| 54 | %build |
---|
| 55 | test -d build || mkdir build |
---|
| 56 | ( cd build |
---|
| 57 | ../gcc-2.95.1/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-2.95.1/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 | make prefix=$RPM_BUILD_ROOT/opt/rtems install-info |
---|
| 95 | ) |
---|
| 96 | |
---|
| 97 | %files |
---|
| 98 | %doc /opt/rtems/info/chill.info* |
---|
| 99 | %doc /opt/rtems/info/cpp.info* |
---|
| 100 | %doc /opt/rtems/info/gcc.info* |
---|
| 101 | %doc /opt/rtems/info/g77.info* |
---|
| 102 | %doc /opt/rtems/info/libc.info* |
---|
| 103 | %doc /opt/rtems/info/libm.info* |
---|
| 104 | %doc /opt/rtems/man/man1/cccp.1 |
---|
| 105 | %doc /opt/rtems/man/man1/@target_alias@-gcc.1 |
---|
| 106 | %doc /opt/rtems/man/man1/@target_alias@-g++.1 |
---|
| 107 | |
---|
| 108 | /opt/rtems/bin/cpp |
---|
| 109 | /opt/rtems/bin/@target_alias@-c++ |
---|
| 110 | /opt/rtems/bin/@target_alias@-g++ |
---|
| 111 | /opt/rtems/bin/@target_alias@-gcc |
---|
| 112 | /opt/rtems/bin/@target_alias@-gcj |
---|
| 113 | /opt/rtems/lib/gcc-lib/@target_alias@/2.95.1 |
---|
| 114 | /opt/rtems/@target_alias@/include* |
---|
| 115 | /opt/rtems/@target_alias@/sys-include |
---|
| 116 | /opt/rtems/@target_alias@/lib* |
---|