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: rtems-@target_alias@-@bsp@ |
---|
14 | Release: @Release@ |
---|
15 | Copyright: 1999 OARCorp |
---|
16 | Group: unsorted |
---|
17 | Provides: rtems-@target_alias@-@bsp@ |
---|
18 | |
---|
19 | Autoreqprov: on |
---|
20 | Packager: corsepiu@faw.uni-ulm.de |
---|
21 | |
---|
22 | Version: @Version@ |
---|
23 | Summary: A free operating system for embedded systems |
---|
24 | Source: rtems-@Version@.tar.gz |
---|
25 | # We claim to be relocatible, but in fact we are not |
---|
26 | Prefix: /opt |
---|
27 | Buildroot: /tmp |
---|
28 | # Patch: |
---|
29 | %description |
---|
30 | RTEMS is a free operating system for embedded systems. |
---|
31 | |
---|
32 | Authors: |
---|
33 | -------- |
---|
34 | Joel Sherrill (joel@oarcorp.com) |
---|
35 | ... |
---|
36 | |
---|
37 | %prep |
---|
38 | # untar the sources inside rtems-@target_alias@-@bsp@-@Version@ |
---|
39 | %setup -c -n rtems-@target_alias@-@bsp@-@Version@ |
---|
40 | # no patch needed |
---|
41 | # %patch |
---|
42 | %build |
---|
43 | # rtems does not support building inside the source tree |
---|
44 | if test ! -f rtems-@Version@/configure; |
---|
45 | then |
---|
46 | ( cd rtems-@Version@; ./autogen ) |
---|
47 | fi |
---|
48 | ./rtems-@Version@/configure \ |
---|
49 | --target=@target_alias@ \ |
---|
50 | --prefix=/opt/rtems/@target_alias@ \ |
---|
51 | --enable-networking \ |
---|
52 | --enable-posix \ |
---|
53 | --enable-cxx \ |
---|
54 | --disable-tests \ |
---|
55 | --enable-rdbg \ |
---|
56 | --disable-multiprocessing |
---|
57 | make RTEMS_BSP=@bsp@ |
---|
58 | %install |
---|
59 | make RTEMS_BSP=@bsp@ prefix=$RPM_BUILD_ROOT/opt/rtems/@target_alias@ install |
---|
60 | %files |
---|
61 | %dir /opt/rtems/@target_alias@/@bsp@ |
---|
62 | /opt/rtems/@target_alias@/@bsp@/* |
---|
63 | /opt/rtems/@target_alias@/make/* |
---|
64 | /opt/rtems/@target_alias@/bin/install-if-change |
---|
65 | /opt/rtems/@target_alias@/bin/packhex |
---|
66 | /opt/rtems/@target_alias@/bin/unhex |
---|
67 | /opt/rtems/@target_alias@/bin/lock-directory |
---|
68 | /opt/rtems/@target_alias@/bin/unlock-directory |
---|
69 | /opt/rtems/@target_alias@/bin/eolstrip |
---|
70 | /opt/rtems/@target_alias@/bin/cklength |
---|