2 Summary: Cross NaCL GNU binary utility development utilities - binutils
3 Name: crossnacl-binutils
5 Release: 3.git%{gitver}.1
7 Group: Development/Tools
8 Source0: nacl-binutils-%{version}-git%{gitver}.tar.xz
9 # Source0-md5: b49c25e5cb1bbfb5333aa82bcbda12df
10 Source1: get-source.sh
11 URL: http://git.chromium.org/gitweb/?p=native_client/nacl-binutils.git
16 BuildRequires: python-modules
17 BuildRequires: tar >= 1:1.22
19 ExclusiveArch: %{ix86} %{x8664}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define target x86_64-nacl
23 %define arch %{_prefix}/%{target}
26 Binutils is a collection of binary utilities, including:
27 - ar - create, modify and extract from archives,
28 - nm - lists symbols from object files,
29 - objcopy - copy and translate object files,
30 - objdump - display information from object files,
31 - ranlib - generate an index for the contents of an archive,
32 - size - list the section sizes of an object or archive file,
33 - strings - list printable strings from files,
34 - strip - discard symbols,
35 - c++filt - a filter for demangling encoded C++ symbols,
36 - addr2line - convert addresses to file and line,
37 - nlmconv - convert object code into an NLM.
39 This package contains the cross version for NaCL.
41 %description -l pl.UTF-8
42 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
43 programów. Znajdują się tutaj między innymi assembler, konsolidator
44 (linker), a także inne narzędzia do manipulowania binarnymi plikami
45 programów i bibliotek.
47 Ten pakiet zawiera wersję skrośną generującą kod dla NaCl.
50 %setup -q -n nacl-binutils-%{version}-git%{gitver}
53 # ldscripts won't be generated properly if SHELL is not bash...
54 CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
55 LDFLAGS="%{rpmldflags}" \
56 CONFIG_SHELL="/bin/bash" \
58 --build=%{_target_platform} \
59 --host=%{_target_platform} \
61 --enable-targets=%{_host} \
63 --enable-targets=i386-linux \
66 --enable-targets=spu \
68 %ifarch %{ix86} sparc sparc64 ppc ppc64 s390 sh arm
77 --infodir=%{_infodir} \
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_prefix}
89 prefix=$RPM_BUILD_ROOT%{_prefix} \
90 mandir=$RPM_BUILD_ROOT%{_mandir} \
91 infodir=$RPM_BUILD_ROOT%{_infodir} \
92 libdir=$RPM_BUILD_ROOT%{_libdir}
94 # fix copies to be hardlinks (maybe should symlink in the future)
95 findup -m $RPM_BUILD_ROOT
97 # remove these man pages unless we cross-build for win*/netware platforms.
98 # however, this should be done in Makefiles.
99 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
101 # don't want this here
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiberty.a
104 # packaged in base binutils
105 %{__rm} -r $RPM_BUILD_ROOT%{_infodir}
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/%{target}-*
116 %attr(755,root,root) %{arch}/bin/*
119 %{arch}/lib/ldscripts/*
120 %{_mandir}/man?/%{target}-*