]> git.pld-linux.org Git - packages/crossmipsel-binutils.git/blob - crossmipsel-binutils.spec
- updated to 2.17.50.0.3 with updated mips-relocs patch
[packages/crossmipsel-binutils.git] / crossmipsel-binutils.spec
1 Summary:        Cross MIPSel GNU binary utility development utilities - binutils
2 Summary(es):    Utilitarios para desarrollo de binarios de la GNU - MIPSel binutils
3 Summary(fr):    Utilitaires de développement binaire de GNU - MIPSel binutils
4 Summary(pl):    Skro¶ne narzêdzia programistyczne GNU dla AVR MIPSel - binutils
5 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU - MIPSel binutils
6 Summary(tr):    GNU geliþtirme araçlarý - MIPSel binutils
7 Name:           crossmipsel-binutils
8 Version:        2.17.50.0.3
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:  684c535df0ff8ffaa11fe4aed14539e7
14 Patch0:         binutils-mips-relocs.patch
15 URL:            http://sources.redhat.com/binutils/
16 BuildRequires:  automake
17 BuildRequires:  bash
18 BuildRequires:  bison
19 BuildRequires:  flex
20 BuildRequires:  gettext-devel
21 %ifarch sparc sparc32
22 BuildRequires:  sparc32
23 %endif
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         target          mipsel-pld-linux
27 %define         arch            %{_prefix}/%{target}
28
29 %description
30 Binutils is a collection of binary utilities, including:
31 - ar - create, modify and extract from archives,
32 - nm - lists symbols from object files,
33 - objcopy - copy and translate object files,
34 - objdump - display information from object files,
35 - ranlib - generate an index for the contents of an archive,
36 - size - list the section sizes of an object or archive file,
37 - strings - list printable strings from files,
38 - strip - discard symbols,
39 - c++filt - a filter for demangling encoded C++ symbols,
40 - addr2line - convert addresses to file and line,
41 - nlmconv - convert object code into an NLM.
42
43 This package contains the cross version for MIPS Little Endian.
44
45 %description -l pl
46 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
47 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
48 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
49 programów i bibliotek.
50
51 Ten pakiet zawiera wersjê skro¶n± generuj±c± kod dla ostrokoñcej (ang.
52 Little Endian) architektury MIPS.
53
54 %prep
55 %setup -q -n binutils-%{version}
56 %patch0 -p0
57
58 %build
59 cp -f /usr/share/automake/config.sub .
60
61 # ldscripts won't be generated properly if SHELL is not bash...
62 CFLAGS="%{rpmcflags}" \
63 LDFLAGS="%{rpmldflags}" \
64 CONFIG_SHELL="/bin/bash" \
65 %ifarch sparc
66 sparc32 \
67 %endif
68 ./configure \
69         --disable-shared \
70         --prefix=%{_prefix} \
71         --libdir=%{_libdir} \
72         --mandir=%{_mandir} \
73         --infodir=%{_infodir} \
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 %{arch}/lib/ldscripts
106 %{_mandir}/man?/%{target}-*
This page took 0.229841 seconds and 4 git commands to generate.