summaryrefslogtreecommitdiffstats
path: root/scripts/binutils.spec.in
blob: d89c2c441292d8970def39d66646a0ea45188fc5 (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# 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:         @target_alias@-binutils
Release:      @Release@
Copyright:    1999 OARCorp
Group:        unsorted
Provides:     @target_alias@-binutils

Autoreqprov:  on
Packager:     corsepiu@faw.uni-ulm.de and joel@OARcorp.com

Version:      binutils@binutils_version@
Summary:      binutils for target @target_alias@
Source0:      	binutils-@binutils_version@.tar.gz
Patch0:		binutils-@binutils_version@-rtems-@binutils_patch_version@.diff

Buildroot:    /tmp
# Patch:
%description
RTEMS is an open source operating system for embedded systems.

This is the GNU binutils for RTEMS targetting @target_alias@.

Authors:
--------
    Joel Sherrill (joel@oarcorp.com)
    ...

%prep
# untar the sources inside @target_alias@-binutils
%setup -c -n @target_alias@-binutils -a 0

%patch0 -p0

%build
test -d build || mkdir build
( cd build
  ../binutils-@binutils_version@/configure --target=@target_alias@ \
    --verbose --prefix=/opt/rtems 

  test -d $RPM_BUILD_ROOT/opt \
    || mkdir $RPM_BUILD_ROOT/opt
  test -d $RPM_BUILD_ROOT/opt/rtems \
    || mkdir $RPM_BUILD_ROOT/opt/rtems

  make all
  make info
)

%install
( cd build
  make prefix=$RPM_BUILD_ROOT/opt/rtems install
  make prefix=$RPM_BUILD_ROOT/opt/rtems install-info
)

%files
%dir /opt/rtems
%dir /opt/rtems/bin
%dir /opt/rtems/info
%dir /opt/rtems/lib
%dir /opt/rtems/@target_alias@
%dir /opt/rtems/@target_alias@/bin
%dir /opt/rtems/@target_alias@/include
%dir /opt/rtems/@target_alias@/sys-include
%dir /opt/rtems/@target_alias@/lib
%dir /opt/rtems/@target_alias@/lib/ldscripts
%dir /opt/rtems/man
%dir /opt/rtems/man/man1

%doc /opt/rtems/info/as.info*
%doc /opt/rtems/info/bfd.info*
%doc /opt/rtems/info/binutils.info*
%doc /opt/rtems/info/gasp.info*
%doc /opt/rtems/info/ld.info*
%doc /opt/rtems/info/standards.info*
%doc /opt/rtems/man/man1/@target_alias@-ar.1
%doc /opt/rtems/man/man1/@target_alias@-nm.1
%doc /opt/rtems/man/man1/@target_alias@-objdump.1
%doc /opt/rtems/man/man1/@target_alias@-ranlib.1
%doc /opt/rtems/man/man1/@target_alias@-size.1
%doc /opt/rtems/man/man1/@target_alias@-strings.1
%doc /opt/rtems/man/man1/@target_alias@-strip.1
%doc /opt/rtems/man/man1/@target_alias@-objcopy.1
%doc /opt/rtems/man/man1/@target_alias@-addr2line.1
%doc /opt/rtems/man/man1/@target_alias@-nlmconv.1
%doc /opt/rtems/man/man1/@target_alias@-c++filt.1
%doc /opt/rtems/man/man1/@target_alias@-as.1
%doc /opt/rtems/man/man1/@target_alias@-ld.1

/opt/rtems/bin/@target_alias@-addr2line
/opt/rtems/bin/@target_alias@-ar
/opt/rtems/bin/@target_alias@-as
/opt/rtems/bin/@target_alias@-c++filt
/opt/rtems/bin/@target_alias@-gasp
/opt/rtems/bin/@target_alias@-ld
/opt/rtems/bin/@target_alias@-nm
/opt/rtems/bin/@target_alias@-objcopy
/opt/rtems/bin/@target_alias@-objdump
/opt/rtems/bin/@target_alias@-ranlib
/opt/rtems/bin/@target_alias@-readelf
/opt/rtems/bin/@target_alias@-size
/opt/rtems/bin/@target_alias@-strings
/opt/rtems/bin/@target_alias@-strip
/opt/rtems/include/bfd.h
/opt/rtems/include/ansidecl.h
/opt/rtems/include/bfdlink.h
/opt/rtems/lib/libbfd*
/opt/rtems/lib/libiberty*
/opt/rtems/lib/libopcodes*
/opt/rtems/@target_alias@/bin/ar
/opt/rtems/@target_alias@/bin/as
/opt/rtems/@target_alias@/bin/ld
/opt/rtems/@target_alias@/bin/nm
/opt/rtems/@target_alias@/bin/ranlib
/opt/rtems/@target_alias@/bin/strip
/opt/rtems/@target_alias@/lib/ldscripts