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