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