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