source: rtems/scripts/cpukit/rtems-cpukit.add @ 06e70cd

4.104.114.84.95
Last change on this file since 06e70cd was 06e70cd, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/07/03 at 08:53:29

2003-10-07 Ralf Corsepius <corsepiu@…>

  • cpukit/target-cpukit.add: New.
  • cpukit/Makefile.am: Reflect having added target-cpukit.add. Acknowledge osversion.
  • cpukit/mkspec.in: Acknowledge osversion and rpmgroup.
  • cpukit/rtems-cpukit.add: Reflect new RTEMS spec conventions.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1%define rtems_version @rtems_version@
2%define rtems_target  @target_alias@
3%define rpmvers %{expand: %%(echo %rtems_version | tr - _ )}
4
5Name:         %{rpmprefix}@target_alias@-cpukit
6Release:      @Release@
7License:      Various, Open Source.
8Group:        %{rpmgroup}
9
10Autoreqprov:  on
11Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
12BuildPreReq:    %{rpmprefix}%{rtems_target}-binutils
13BuildPreReq:    %{rpmprefix}%{rtems_target}-gcc
14Requires:       %{rpmprefix}%{rtems_target}-binutils
15Requires:       %{rpmprefix}%{rtems_target}-gcc
16
17# These are target libs, arch doesn't matter for the host
18BuildArch:      noarch
19
20Version:      %{rpmvers}
21Summary:      A free operating system for embedded systems
22Source:       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#
35NoSource:      0
36# We claim to be relocatible, but in fact we are not
37Prefix:         %{_prefix}
38
39%description
40RTEMS is a free operating system for embedded systems.
41
42This package contains the cpukit for cpu %{rtems_target}.
43
44Authors:
45--------
46    Joel Sherrill (joel@oarcorp.com)
47    ...
48
49%prep
50%setup -c -T -n %{name}-%{version} -a0
51test -d build || mkdir build
52%build
53cd 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
63cd build
64  make RTEMS_BSP= DESTDIR=${RPM_BUILD_ROOT} install
65
Note: See TracBrowser for help on using the repository browser.