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