]> git.pld-linux.org Git - packages/crossx8664-binutils.git/blob - crossx8664-binutils.spec
- updated to 2.16.91.0.5.
[packages/crossx8664-binutils.git] / crossx8664-binutils.spec
1 Summary:        Cross x86-64 GNU binary utility development utilities - binutils
2 Summary(es):    Utilitarios para desarrollo de binarios de la GNU - x86-64 binutils
3 Summary(fr):    Utilitaires de développement binaire de GNU - x86-64 binutils
4 Summary(pl):    Skro¶ne narzêdzia programistyczne GNU dla x86-64 - binutils
5 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - x86-64 binutils
6 Summary(tr):    GNU geliþtirme araçlarý - x86-64 binutils
7 Name:           crossx8664-binutils
8 Version:        2.16.91.0.5
9 Release:        1
10 License:        GPL
11 Group:          Development/Tools
12 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
13 # Source0-md5:  29fdde06e229672daaaacbf52362520a
14 URL:            http://sources.redhat.com/binutils/
15 BuildRequires:  automake
16 BuildRequires:  bash
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  rpmbuild(macros) >= 1.211
20 Obsoletes:      crossamd64-binutils
21 ExcludeArch:    %{x8664}
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         target          x86_64-pld-linux
25 %define         arch            %{_prefix}/%{target}
26
27 %description
28 Binutils is a collection of binary utilities, including:
29 - ar - create, modify and extract from archives,
30 - nm - lists symbols from object files,
31 - objcopy - copy and translate object files,
32 - objdump - display information from object files,
33 - ranlib - generate an index for the contents of an archive,
34 - size - list the section sizes of an object or archive file,
35 - strings - list printable strings from files,
36 - strip - discard symbols,
37 - c++filt - a filter for demangling encoded C++ symbols,
38 - addr2line - convert addresses to file and line,
39 - nlmconv - convert object code into an NLM.
40
41 This package contains the cross version for x86-64.
42
43 %description -l pl
44 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
45 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
46 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
47 programów i bibliotek.
48
49 Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla x86-64.
50
51 %prep
52 %setup -q -n binutils-%{version}
53
54 %build
55 cp -f /usr/share/automake/config.sub .
56
57 # ldscripts won't be generated properly if SHELL is not bash...
58 CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
59 LDFLAGS="%{rpmldflags}" \
60 CONFIG_SHELL="/bin/bash" \
61 ./configure \
62         --disable-shared \
63         --disable-nls \
64         --prefix=%{_prefix} \
65         --libdir=%{_libdir} \
66         --mandir=%{_mandir} \
67         --infodir=%{_infodir} \
68         --enable-64-bit-bfd \
69         --target=%{target}
70
71 %{__make} all \
72         tooldir=%{_prefix} \
73         EXEEXT=""
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_prefix}
78
79 %{__make} install \
80         prefix=$RPM_BUILD_ROOT%{_prefix} \
81         mandir=$RPM_BUILD_ROOT%{_mandir} \
82         infodir=$RPM_BUILD_ROOT%{_infodir} \
83         libdir=$RPM_BUILD_ROOT%{_libdir}
84
85 # remove these man pages unless we cross-build for win*/netware platforms.
86 # however, this should be done in Makefiles.
87 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %doc README
95 %attr(755,root,root) %{_bindir}/%{target}-*
96 %dir %{arch}
97 %dir %{arch}/bin
98 %attr(755,root,root) %{arch}/bin/*
99 %dir %{arch}/lib
100 %dir %{arch}/lib/*
101 %{arch}/lib/ldscripts/*
102 %{_mandir}/man?/%{target}-*
This page took 0.066428 seconds and 3 git commands to generate.