]>
Commit | Line | Data |
---|---|---|
55a39ca0 | 1 | Summary: Cross Z80 GNU binary utility development utilities - binutils |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - Z80 binutils | |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - Z80 binutils | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla Z80 - binutils | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - Z80 binutils | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - Z80 binutils | |
7 | Name: crossz80-binutils | |
8 | Version: 2.22 | |
9 | Release: 1 | |
10 | License: GPL | |
11 | Group: Development/Tools | |
12 | Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2 | |
13 | # Source0-md5: ee0f10756c84979622b992a4a61ea3f5 | |
14 | Patch0: tc-z80.c.diff | |
15 | URL: http://sources.redhat.com/binutils/ | |
16 | BuildRequires: automake | |
17 | BuildRequires: bash | |
18 | BuildRequires: bison | |
19 | BuildRequires: flex | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: perl-tools-pod | |
22 | BuildRequires: texinfo | |
23 | %ifarch sparc sparc32 | |
24 | BuildRequires: sparc32 | |
25 | %endif | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define target z80-unknown-coff | |
29 | %define arch %{_prefix}/%{target} | |
30 | ||
31 | %description | |
32 | Binutils is a collection of binary utilities, including: | |
33 | - ar - create, modify and extract from archives, | |
34 | - nm - lists symbols from object files, | |
35 | - objcopy - copy and translate object files, | |
36 | - objdump - display information from object files, | |
37 | - ranlib - generate an index for the contents of an archive, | |
38 | - size - list the section sizes of an object or archive file, | |
39 | - strings - list printable strings from files, | |
40 | - strip - discard symbols, | |
41 | - c++filt - a filter for demangling encoded C++ symbols, | |
42 | - addr2line - convert addresses to file and line, | |
43 | - nlmconv - convert object code into an NLM. | |
44 | ||
45 | This package contains the cross version for Z80. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację | |
49 | programów. Znajdują się tutaj między innymi assembler, konsolidator | |
50 | (linker), a także inne narzędzia do manipulowania binarnymi plikami | |
51 | programów i bibliotek. | |
52 | ||
53 | Ten pakiet zawiera wersję skrośną generującą kod dla procesora Z80. | |
54 | ||
55 | %prep | |
56 | %setup -q -n binutils-%{version} | |
57 | %patch0 -p1 | |
58 | ||
59 | %build | |
60 | cp /usr/share/automake/config.sub . | |
61 | ||
62 | # ldscripts won't be generated properly if SHELL is not bash... | |
63 | CFLAGS="%{rpmcflags}" \ | |
64 | LDFLAGS="%{rpmldflags}" \ | |
65 | CONFIG_SHELL="/bin/bash" \ | |
66 | %ifarch sparc | |
67 | sparc32 \ | |
68 | %endif | |
69 | ./configure \ | |
70 | --disable-shared \ | |
71 | --prefix=%{_prefix} \ | |
72 | --libdir=%{_libdir} \ | |
73 | --mandir=%{_mandir} \ | |
74 | --infodir=%{_infodir} \ | |
75 | --host=%{_target_platform} \ | |
76 | --build=%{_target_platform} \ | |
77 | --target=%{target} \ | |
78 | --with-gnu-ld \ | |
79 | --with-gnu-as \ | |
80 | --enable-install-libbfd | |
81 | ||
82 | # We have to regenerate headers after patching. | |
83 | %{__make} configure-host \ | |
84 | tooldir=%{_prefix} \ | |
85 | EXEEXT="" | |
86 | ||
87 | %{__make} -C bfd headers \ | |
88 | tooldir=%{_prefix} \ | |
89 | EXEEXT="" | |
90 | ||
91 | %{__make} all \ | |
92 | tooldir=%{_prefix} \ | |
93 | EXEEXT="" | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | install -d $RPM_BUILD_ROOT%{_prefix} | |
98 | ||
99 | %{__make} install \ | |
100 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
101 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
102 | infodir=$RPM_BUILD_ROOT%{_infodir} \ | |
103 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
104 | ||
105 | # remove these man pages unless we cross-build for win*/netware platforms. | |
106 | # however, this should be done in Makefiles. | |
107 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1 | |
108 | ||
109 | rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo | |
110 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
111 | rm -rf $RPM_BUILD_ROOT%{_infodir} | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %doc README | |
119 | %attr(755,root,root) %{_bindir}/%{target}-* | |
120 | %dir %{arch} | |
121 | %dir %{arch}/bin | |
122 | %attr(755,root,root) %{arch}/bin/* | |
123 | %dir %{arch}/lib | |
124 | %dir %{arch}/lib/* | |
125 | %{arch}/lib/*/* | |
126 | %{_mandir}/man?/%{target}-* |