1 | Name: @target_alias@-cpukit |
---|
2 | Release: @Release@ |
---|
3 | License: Various, Open Source. |
---|
4 | Group: rtems |
---|
5 | |
---|
6 | Autoreqprov: on |
---|
7 | Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com |
---|
8 | BuildPreReq: @target_alias@-binutils |
---|
9 | BuildPreReq: @target_alias@-gcc |
---|
10 | Requires: @target_alias@-binutils |
---|
11 | Requires: @target_alias@-gcc |
---|
12 | |
---|
13 | Version: @rpm_version@ |
---|
14 | Summary: A free operating system for embedded systems |
---|
15 | Source: rtems-@rtems_version@.tar.gz |
---|
16 | |
---|
17 | # |
---|
18 | # The original sources are not included in the source RPM. |
---|
19 | # If we included them, then the source RPMs for each target |
---|
20 | # would duplicate MBs of source unnecessarily. This is |
---|
21 | # a duplication of over 30 MBs of source for each of |
---|
22 | # the more than 10 targets it is possible to build. |
---|
23 | # |
---|
24 | # You can get them yourself from the Internet and copy them to |
---|
25 | # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR). |
---|
26 | # Or you can try the ftp options of rpm :-) |
---|
27 | # |
---|
28 | NoSource: 0 |
---|
29 | # We claim to be relocatible, but in fact we are not |
---|
30 | Prefix: %{_prefix} |
---|
31 | |
---|
32 | %description |
---|
33 | RTEMS is a free operating system for embedded systems. |
---|
34 | |
---|
35 | This package contains the cpukit for cpu @target_alias@. |
---|
36 | |
---|
37 | Authors: |
---|
38 | -------- |
---|
39 | Joel Sherrill (joel@oarcorp.com) |
---|
40 | ... |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -c -T -n %{name}-%{version} -a0 |
---|
44 | test -d build || mkdir build |
---|
45 | %build |
---|
46 | cd build |
---|
47 | # rtems does not support building inside the source tree |
---|
48 | ../rtems-@rtems_version@/cpukit/configure \ |
---|
49 | --build=`../rtems-@rtems_version@/config.guess` \ |
---|
50 | --prefix=%{_prefix} \ |
---|
51 | --host=@target_alias@ --target=@target_alias@ \ |
---|
52 | --exec-prefix=%{_prefix}/@target_alias@ \ |
---|
53 | --enable-multilib |
---|
54 | make RTEMS_BSP= |
---|
55 | %install |
---|
56 | cd build |
---|
57 | make RTEMS_BSP= DESTDIR=${RPM_BUILD_ROOT} install |
---|
58 | |
---|
59 | %files |
---|
60 | %{_prefix}/@target_alias@ |
---|
61 | # ignore |
---|
62 | # %{_mandir} |
---|