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