source: rtems/scripts/gccnewlib.spec.in @ 8c5e54b

4.104.114.84.95
Last change on this file since 8c5e54b was 8c5e54b, checked in by Joel Sherrill <joel.sherrill@…>, on 10/18/99 at 19:10:03

Working on being able to cut RPMs. It now appears that the process
is working mostly for sparc at least.

There is one major problem -- the current process generates a unique
source file per RPM when in fact all of the source files are nearly
the same -- it is only the spec part of the rpm which differs.
The new file mkbinutils_subpackage_version is an attempt to
address this. It does part of the job right -- one source file
produces multiple binary RPMs. BUT the end user can not produce
the resulting RPMS themselves from SRPMS unless they also
build all targets.

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[8c5e54b]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
11Vendor:       OAR Corporation
12Distribution: Linux
13Name:         @target_alias@-gcc-newlib
14Release:      @Release@
15Copyright:    1999 OARCorp
16Group:        unsorted
17Provides:     @target_alias@-gcc-newlib
18
19Autoreqprov:  on
20Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com
21
22Version:      @Version@
23Summary:      rtems gcc and newlib C Library for target @target_alias@
24Source0:        gcc-2.95.1.tar.gz
25Source1:        newlib-1.8.2.tar.gz
26Patch0:         gcc-2.95.1-rtems-19991015.diff
27Patch1:         newlib-1.8.2-rtems-19991015.diff
28
29Buildroot:    /tmp
30# Patch:
31%description
32RTEMS is an open source operating system for embedded systems.
33
34This is gcc and newlib C Library for @target_alias@.
35
36Authors:
37--------
38    Joel Sherrill (joel@oarcorp.com)
39    ...
40
41%prep
42# untar the sources inside @target_alias@-gcc-newlib -@Version@
43%setup -c -n @target_alias@-gcc-newlib -a 0 -a 1
44
45%patch0 -p0
46%patch1 -p0
47
48( cd gcc-2.95.1
49
50  # Now link the C library into the source tree
51  ln -s ../newlib-1.8.2/newlib .
52)
53
54%build
55test -d build || mkdir build
56( cd build
57  ../gcc-2.95.1/configure --target=@target_alias@ \
58    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
59    --prefix=/opt/rtems
60
61  test -d $RPM_BUILD_ROOT/opt \
62    || mkdir $RPM_BUILD_ROOT/opt
63  test -d $RPM_BUILD_ROOT/opt/rtems \
64    || mkdir $RPM_BUILD_ROOT/opt/rtems
65  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@ \
66    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@
67  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
68    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include
69  test -d $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include \
70    || mkdir $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
71
72  srclimits=../gcc-2.95.1/newlib/libc/sys/rtems/include/limits.h
73  for dir in $RPM_BUILD_ROOT/opt/rtems/@target_alias@/include \
74             $RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include
75  do
76    cp ${srclimits} ${dir}
77  done
78
79  #make LANGUAGES="c c++" all
80  make all
81  make info
82
83  cd gcc
84    rm -f stmp-multilib
85    find . -name "*.a" -print | xargs -e rm -f
86
87    make all
88  cd ..
89)
90
91%install
92( cd build
93  make prefix=$RPM_BUILD_ROOT/opt/rtems install
94  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
95)
96
97%files
98%doc /opt/rtems/info/chill.info*
99%doc /opt/rtems/info/cpp.info*
100%doc /opt/rtems/info/gcc.info*
101%doc /opt/rtems/info/g77.info*
102%doc /opt/rtems/info/libc.info*
103%doc /opt/rtems/info/libm.info*
104%doc /opt/rtems/man/man1/cccp.1
105%doc /opt/rtems/man/man1/@target_alias@-gcc.1
106%doc /opt/rtems/man/man1/@target_alias@-g++.1
107
108/opt/rtems/bin/cpp
109/opt/rtems/bin/@target_alias@-c++
110/opt/rtems/bin/@target_alias@-g++
111/opt/rtems/bin/@target_alias@-gcc
112/opt/rtems/bin/@target_alias@-gcj
113/opt/rtems/lib/gcc-lib/@target_alias@/2.95.1
114/opt/rtems/@target_alias@/include*
115/opt/rtems/@target_alias@/sys-include
116/opt/rtems/@target_alias@/lib*
Note: See TracBrowser for help on using the repository browser.